mirror_ubuntu-kernels/drivers/net/ethernet/sfc/falcon
Edward Cree 1186c6b31e sfc: falcon: use padding to fix alignment in loopback test
Add two bytes of padding to the start of struct ef4_loopback_payload,
 which are not sent on the wire.  This ensures the 'ip' member is
 4-byte aligned, preventing the following W=1 warning:
net/ethernet/sfc/falcon/selftest.c:43:15: error: field ip within 'struct ef4_loopback_payload' is less aligned than 'struct iphdr' and is usually due to 'struct ef4_loopback_payload' being packed, which can lead to unaligned accesses [-Werror,-Wunaligned-access]
        struct iphdr ip;

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-06-26 10:36:48 +01:00
..
bitfield.h sfc:falcon: fix repeated words in comments 2022-06-27 11:59:54 +01:00
efx.c sfc: falcon: Drop redundant pci_enable_pcie_error_reporting() 2023-03-08 23:34:39 -08:00
efx.h
enum.h
ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
falcon_boards.c sfc: falcon: use DEVICE_ATTR_*() macro 2021-05-23 17:18:42 -07:00
falcon.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
farch_regs.h
farch.c sfc: falcon: Use the bitmap API to allocate bitmaps 2022-07-06 19:54:42 -07:00
filter.h
io.h
Kconfig
Makefile
mdio_10g.c
mdio_10g.h
mtd.c
net_driver.h sfc/falcon: fix repeated words in comments 2022-07-26 12:35:37 +02:00
nic.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
nic.h
phy.h
qt202x_phy.c
rx.c sfc: Stop using iommu_present() 2022-04-07 21:04:10 -07:00
selftest.c sfc: falcon: use padding to fix alignment in loopback test 2023-06-26 10:36:48 +01:00
selftest.h
tenxpress.c
tx.c net: allow gso_max_size to exceed 65536 2022-05-16 10:18:55 +01:00
tx.h
txc43128_phy.c
workarounds.h