diff options
| author | Ben Hutchings <[email protected]> | 2011-12-15 13:55:01 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2011-12-16 18:52:47 +0000 |
| commit | 7850f63f1620512631445b901ae11cd149e7375c (patch) | |
| tree | d26a5f049dcf3634c4bf9e1b86915d201fab3836 /scripts/unifdef.c | |
| parent | ethtool: Clarify use of size field for ETHTOOL_GRXFHINDIR (diff) | |
| download | kernel-7850f63f1620512631445b901ae11cd149e7375c.tar.gz kernel-7850f63f1620512631445b901ae11cd149e7375c.zip | |
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 <[email protected]>
Acked-by: Dimitris Michailidis <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/unifdef.c')
0 files changed, 0 insertions, 0 deletions
