]> Git Repo - linux.git/commit
sfc: fix field-spanning memcpy in selftest
authorEdward Cree <[email protected]>
Fri, 28 Jul 2023 16:55:28 +0000 (17:55 +0100)
committerJakub Kicinski <[email protected]>
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 <[email protected]>
Tested-by: Andy Moreton <[email protected]>
Signed-off-by: Edward Cree <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/ethernet/sfc/falcon/selftest.c
drivers/net/ethernet/sfc/selftest.c
drivers/net/ethernet/sfc/siena/selftest.c
This page took 0.06421 seconds and 4 git commands to generate.