diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-05-13 21:35:25 -0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2011-05-13 21:35:25 -0400 |
commit | 47a8467cc0907e2fd3e6f4d02465dfb64494133e (patch) | |
tree | bd0b4caa510658a6ed3e1eaacac31f0866b8641e /drivers/net/sfc/ethtool.c | |
parent | 7be799a70ba3dd90a59e8d2c72bbe06020005b3f (diff) |
sfc: Fix return value from efx_ethtool_set_rx_ntuple()
ethtool_ops::set_rx_ntuple is supposed to return 0 on success, but it
currently returns the filter ID when it inserts or modifies a filter.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
-rw-r--r-- | drivers/net/sfc/ethtool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index 8c5e0052c44a..348437a8117e 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -955,8 +955,9 @@ static int efx_ethtool_set_rx_ntuple(struct net_device *net_dev, | |||
955 | 955 | ||
956 | if (ntuple->fs.action == ETHTOOL_RXNTUPLE_ACTION_CLEAR) | 956 | if (ntuple->fs.action == ETHTOOL_RXNTUPLE_ACTION_CLEAR) |
957 | return efx_filter_remove_filter(efx, &filter); | 957 | return efx_filter_remove_filter(efx, &filter); |
958 | else | 958 | |
959 | return efx_filter_insert_filter(efx, &filter, true); | 959 | rc = efx_filter_insert_filter(efx, &filter, true); |
960 | return rc < 0 ? rc : 0; | ||
960 | } | 961 | } |
961 | 962 | ||
962 | static int efx_ethtool_get_rxfh_indir(struct net_device *net_dev, | 963 | static int efx_ethtool_get_rxfh_indir(struct net_device *net_dev, |