aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ethtool.h
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2014-05-18 20:29:42 -0400
committerBen Hutchings <ben@decadent.org.uk>2014-05-18 20:29:42 -0400
commit61d88c6811f216de4ec26aafe24e650dc1aeb00e (patch)
tree4d5816d6ff92cecad8e3019d9d9653913970b6e9 /include/linux/ethtool.h
parent678e30df2e5664619e06fcfea5490a476826d8fe (diff)
ethtool: Disallow ETHTOOL_SRSSH with both indir table and hash key unchanged
This would be a no-op, so there is no reason to request it. This also allows conversion of the current implementations of ethtool_ops::{get,set}_rxfh_indir to ethtool_ops::{get,set}_rxfh with no change other than their parameters. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/ethtool.h')
-rw-r--r--include/linux/ethtool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 886e127d51a6..de687a97c6e7 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -168,8 +168,8 @@ static inline u32 ethtool_rxfh_indir_default(u32 index, u32 n_rx_rings)
168 * @set_rxfh_indir: Set the contents of the RX flow hash indirection table. 168 * @set_rxfh_indir: Set the contents of the RX flow hash indirection table.
169 * Will not be called if @get_rxfh_indir_size returns zero. 169 * Will not be called if @get_rxfh_indir_size returns zero.
170 * @set_rxfh: Set the contents of the RX flow hash indirection table and/or 170 * @set_rxfh: Set the contents of the RX flow hash indirection table and/or
171 * hash key. Either or both arguments may be %NULL if that attribute 171 * hash key. In case only the indirection table or hash key is to be
172 * is not to be changed. 172 * changed, the other argument will be %NULL.
173 * Will only be called if one or both of @get_rxfh_indir_size and 173 * Will only be called if one or both of @get_rxfh_indir_size and
174 * @get_rxfh_key_size are implemented and return non-zero. 174 * @get_rxfh_key_size are implemented and return non-zero.
175 * Returns a negative error code or zero. 175 * Returns a negative error code or zero.