Skip to content

Commit 134120b

Browse files
pieterj-xilinxdavem330
authored andcommitted
sfc: disable RXFCS and RXALL features by default
By default we would not want RXFCS and RXALL features enabled as they are mainly intended for debugging purposes. This does not stop users from enabling them later on as needed. Fixes: 8e57daf ("sfc_ef100: RX path for EF100") Signed-off-by: Pieter Jansen van Vuuren <[email protected]> Co-developed-by: Edward Cree <[email protected]> Signed-off-by: Edward Cree <[email protected]> Reviewed-by: Martin Habets <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9113302 commit 134120b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/sfc/ef100_netdev.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ int ef100_probe_netdev(struct efx_probe_data *probe_data)
378378
efx->net_dev = net_dev;
379379
SET_NETDEV_DEV(net_dev, &efx->pci_dev->dev);
380380

381-
net_dev->features |= efx->type->offload_features;
381+
/* enable all supported features except rx-fcs and rx-all */
382+
net_dev->features |= efx->type->offload_features &
383+
~(NETIF_F_RXFCS | NETIF_F_RXALL);
382384
net_dev->hw_features |= efx->type->offload_features;
383385
net_dev->hw_enc_features |= efx->type->offload_features;
384386
net_dev->vlan_features |= NETIF_F_HW_CSUM | NETIF_F_SG |

0 commit comments

Comments
 (0)