Ben Hutchings 7850f63f16 ethtool: Centralise validation of ETHTOOL_{G, S}RXFHINDIR parameters
Add a new ethtool operation (get_rxfh_indir_size) to get the
indirectional table size.  Use this to validate the user buffer size
before calling get_rxfh_indir or set_rxfh_indir.  Use get_rxnfc to get
the number of RX rings, and validate the contents of the new
indirection table before calling set_rxfh_indir.  Remove this
validation from drivers.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-12-16 13:52:47 -05:00
..
2011-10-19 03:10:46 -04:00
2011-10-17 19:18:42 -04:00
2010-07-12 12:57:55 -07:00
2011-12-05 18:30:03 -05:00
2010-11-28 18:24:14 -08:00
2011-12-11 18:25:16 -05:00
2011-12-04 13:20:39 -05:00
2011-12-12 19:04:10 -05:00