tsnep: Remove FCS for XDP data path
authorGerhard Engleder <gerhard@engleder-embedded.com>
Tue, 23 Jan 2024 20:09:17 +0000 (21:09 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 25 Jan 2024 10:59:42 +0000 (11:59 +0100)
commit50bad6f797d4d501c5ef416a6f92e1912ab5aa8b
tree63d1658ab59e005cc93a2a488da3f9a3ba195d67
parent5da4597163562689033ed5728511782708e667f2
tsnep: Remove FCS for XDP data path

The RX data buffer includes the FCS. The FCS is already stripped for the
normal data path. But for the XDP data path the FCS is included and
acts like additional/useless data.

Remove the FCS from the RX data buffer also for XDP.

Fixes: 65b28c810035 ("tsnep: Add XDP RX support")
Fixes: 3fc2333933fd ("tsnep: Add XDP socket zero-copy RX support")
Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/engleder/tsnep_main.c