]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Allow drivers to select RX NFC rule locations
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 3 Jan 2012 12:04:51 +0000 (12:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2012 19:09:10 +0000 (14:09 -0500)
commitce54096697c6e28574407c41fa25dff82e5da685
treea1859e049a47b3bb207882e4b9db126987f2ead9
parent802fe2e562c67ee0176a412b9dfcf50b0f26ae11
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 <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/core/ethtool.c
net/socket.c