From: Ben Hutchings Date: Thu, 15 Dec 2011 13:55:01 +0000 (+0000) Subject: ethtool: Centralise validation of ETHTOOL_{G, S}RXFHINDIR parameters X-Git-Tag: v3.3-rc1~182^2~192 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7850f63f1620512631445b901ae11cd149e7375c;p=pandora-kernel.git 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 Acked-by: Dimitris Michailidis Signed-off-by: David S. Miller --- Reading git-diff-tree failed