Repository navigation
Commit deedf1f
r8169: Avoid pointer aliasing
Read MAC address 32-bit at a time and manually extract the individual
bytes. This avoids pointer aliasing and gives the compiler a better
chance of optimizing the operation.
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 04c7788 commit deedf1f
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7113 | 7113 | | |
7114 | 7114 | | |
7115 | 7115 | | |
| 7116 | + | |
| 7117 | + | |
7116 | 7118 | | |
7117 | 7119 | | |
7118 | 7120 | | |
7119 | 7121 | | |
7120 | | - | |
7121 | | - | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
7122 | 7131 | | |
7123 | 7132 | | |
7124 | 7133 | | |
| |||
7316 | 7325 | | |
7317 | 7326 | | |
7318 | 7327 | | |
7319 | | - | |
| 7328 | + | |
| 7329 | + | |
7320 | 7330 | | |
7321 | 7331 | | |
7322 | 7332 | | |
| |||
0 commit comments