sfc: fix field-spanning memcpy in selftest
authorEdward Cree <ecree.xilinx@gmail.com>
Fri, 28 Jul 2023 16:55:28 +0000 (17:55 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 31 Jul 2023 21:27:53 +0000 (14:27 -0700)
commit55c1528f9b97ff3b7efad73e8f79627fc2efb298
tree117d4e6d7f09b53a2a6ae816736dac774c40d7c9
parentd4480c9bb9258db9ddf2e632f6ef81e96b41089c
sfc: fix field-spanning memcpy in selftest

Add a struct_group for the whole packet body so we can copy it in one
 go without triggering FORTIFY_SOURCE complaints.

Fixes: cf60ed469629 ("sfc: use padding to fix alignment in loopback test")
Fixes: 30c24dd87f3f ("sfc: siena: use padding to fix alignment in loopback test")
Fixes: 1186c6b31ee1 ("sfc: falcon: use padding to fix alignment in loopback test")
Reviewed-by: Andy Moreton <andy.moreton@amd.com>
Tested-by: Andy Moreton <andy.moreton@amd.com>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230728165528.59070-1-edward.cree@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/falcon/selftest.c
drivers/net/ethernet/sfc/selftest.c
drivers/net/ethernet/sfc/siena/selftest.c