aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-02-06 13:30:18 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-06 13:40:08 -0800
commitdeedf1feb255c7a390309f615e50de37cb82fb61 (patch)
tree6bd19596f8d8862ae28b99259db0c62ae7f24ab2 /drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h
parentr8169: Load MAC address from device tree if present (diff)
downloadlinux-dev-deedf1feb255c7a390309f615e50de37cb82fb61.tar.xz
linux-dev-deedf1feb255c7a390309f615e50de37cb82fb61.zip
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>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h')
0 files changed, 0 insertions, 0 deletions