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)
commit60f8e67d980a5c4d3520378141f4d422f5f7231b
treebba73848cdd1ee9a6fafaff7986dc561959f5f77
parentb7ec45a868af36d0aaffbfed9de4ce53b5eecb22
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