From: Ben Hutchings Date: Tue, 3 Jan 2012 12:04:51 +0000 (+0000) Subject: ethtool: Allow drivers to select RX NFC rule locations X-Git-Tag: v3.3-rc1~182^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55664f324c2a1a6386dc88492c5c94aa3d336b93;p=pandora-kernel.git ethtool: Allow drivers to select RX NFC rule locations Define special location values for RX NFC that request the driver to select the actual rule location. This allows for implementation on devices that use hash-based filter lookup, whereas currently the API is more suited to devices with TCAM lookup or linear search. In ethtool_set_rxnfc() and the compat wrapper ethtool_ioctl(), copy the structure back to user-space after insertion so that the actual location is returned. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed