Commit 5f6857e8 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

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: 0d087093 ("nfp: implement ethtool FEC mode settings")
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Reviewed-by: default avatarSimon Horman <simon.horman@netronome.com>
Reviewed-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ce000c61
...@@ -829,8 +829,8 @@ nfp_port_get_fecparam(struct net_device *netdev, ...@@ -829,8 +829,8 @@ nfp_port_get_fecparam(struct net_device *netdev,
struct nfp_eth_table_port *eth_port; struct nfp_eth_table_port *eth_port;
struct nfp_port *port; struct nfp_port *port;
param->active_fec = ETHTOOL_FEC_NONE_BIT; param->active_fec = ETHTOOL_FEC_NONE;
param->fec = ETHTOOL_FEC_NONE_BIT; param->fec = ETHTOOL_FEC_NONE;
port = nfp_port_from_netdev(netdev); port = nfp_port_from_netdev(netdev);
eth_port = nfp_port_get_eth_port(port); eth_port = nfp_port_get_eth_port(port);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment