Skip to content

Commit 5f6857e

Browse files
kuba-moodavem330
authored andcommitted
nfp: use correct define to return NONE fec
struct ethtool_fecparam carries bitmasks not bit numbers. We want to return 1 (NONE), not 0. Fixes: 0d08709 ("nfp: implement ethtool FEC mode settings") Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Jesse Brandeburg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ce000c6 commit 5f6857e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ nfp_port_get_fecparam(struct net_device *netdev,
829829
struct nfp_eth_table_port *eth_port;
830830
struct nfp_port *port;
831831

832-
param->active_fec = ETHTOOL_FEC_NONE_BIT;
833-
param->fec = ETHTOOL_FEC_NONE_BIT;
832+
param->active_fec = ETHTOOL_FEC_NONE;
833+
param->fec = ETHTOOL_FEC_NONE;
834834

835835
port = nfp_port_from_netdev(netdev);
836836
eth_port = nfp_port_get_eth_port(port);

0 commit comments

Comments
 (0)