summaryrefslogtreecommitdiff
path: root/ethtool.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-01-03 20:21:45 +0000
committerBen Hutchings <bhutchings@solarflare.com>2012-01-12 16:33:35 +0000
commit578e6a51ad8b778794409974cfd4b3d12fe6f297 (patch)
tree6c04f6de3013158e61a11ea1a957741cb3ac4a45 /ethtool.c
parent674bdece3d95cc20f25e9bd38c1692fa342109fb (diff)
downloadethtool-578e6a51ad8b778794409974cfd4b3d12fe6f297.tar.gz
rxclass: Use RX_CLS_LOC_{ANY,SPECIAL} in place of RX_CLS_LOC_UNSPEC
The macro RX_CLS_LOC_ANY is now defined in ethtool(-copy).h with the same intended semantics and same value as RX_CLS_LOC_UNSPEC. Change some equality tests to check for the flag RX_CLS_LOC_SPECIAL, to allow for future support of other special location value. Remove the special case for RX_CLS_LOC_UNSPEC in rxclass_print_nfc_rule(), since it is dead code. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'ethtool.c')
-rw-r--r--ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethtool.c b/ethtool.c
index d21eaea..d0cc7d4 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -2719,7 +2719,7 @@ static int flow_spec_to_ntuple(struct ethtool_rx_flow_spec *fsp,
size_t i;
/* verify location is not specified */
- if (fsp->location != RX_CLS_LOC_UNSPEC)
+ if (fsp->location != RX_CLS_LOC_ANY)
return -1;
/* verify ring cookie can transfer to action */