]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: fix the frame extraction into the skb
authorAntoine Tenart <antoine.tenart@bootlin.com>
Thu, 20 Sep 2018 10:08:54 +0000 (12:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2018 16:07:50 +0000 (09:07 -0700)
commit136a5570de47d4b41c20473bb63e8df6644fb259
tree66ace22a719b17ce6d287e311d107e7621987b97
parent7aab25cb62711d6d4c56265d1c9b06e0310e36b8
net: mscc: fix the frame extraction into the skb

When extracting frames from the Ocelot switch, the frame check sequence
(FCS) is present at the end of the data extracted. The FCS was put into
the sk buffer which introduced some issues (as length related ones), as
the FCS shouldn't be part of an Rx sk buffer.

This patch fixes the Ocelot switch extraction behaviour by discarding
the FCS.

Fixes: 99c1e05296dd ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_board.c