]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: allow extracting the FCS into the skb
authorAntoine Tenart <antoine.tenart@bootlin.com>
Thu, 11 Oct 2018 07:12:24 +0000 (09:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:00:27 +0000 (10:00 -0700)
commitaa94568974f3365cdf2c04ac2b032e32e1354dbe
treebba73848cdd1ee9a6fafaff7986dc561959f5f77
parent7c6462a7b477774d44ef0b38481f872ef5ed87ed
net: mscc: allow extracting the FCS into the skb

This patch adds support for the NETIF_F_RXFCS feature in the Mscc
Ethernet driver. This feature is disabled by default and allow a user
to request the driver not to drop the FCS and to extract it into the skb
for debugging purposes.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_board.c