sfc: support rx-fcs and rx-all
authorEdward Cree <ecree@solarflare.com>
Tue, 31 Oct 2017 14:29:47 +0000 (14:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 12:26:35 +0000 (21:26 +0900)
commit6978729fbd02ced7060f15b9f7e1ba5b39d9bbf3
tree50dea9f2c2b317692565a9349465389b5321fad5
parente0337f92f6f36040ba91215bbe47203c410f472f
sfc: support rx-fcs and rx-all

Ethernet FCS inclusion (rx-fcs) is supported on EF10 NICs, conditional on
 a firmware capability bit (MC_CMD_GET_CAPABILITIES_OUT_RX_INCLUDE_FCS).
To receive frames with bad FCS (rx-all) we just don't return the discard
 flag EFX_RX_PKT_DISCARD from efx_ef10_handle_rx_event_errors() or
 efx_farch_handle_rx_not_ok().

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/farch.c
drivers/net/ethernet/sfc/mcdi_port.c