]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: add support for NIC driver ioctls
authorDavid Decotigny <decot@googlers.com>
Mon, 21 Mar 2016 17:15:35 +0000 (10:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 19:45:44 +0000 (15:45 -0400)
commite25c97859f0ef8d130b14d3d3395a99c3623c664
treeabebdafd3eab9e09bf7b0188ad6cddd84cef5b2e
parentb669052c1e946e234867cf6c5e5087d08cb4c6d4
netlink: add support for NIC driver ioctls

By returning -ENOIOCTLCMD, sock_do_ioctl() falls back to calling
dev_ioctl(), which provides support for NIC driver ioctls, which
includes ethtool support. This is similar to the way ioctls are handled
in udp.c or tcp.c.

This removes the requirement that ethtool for example be tied to the
support of a specific L3 protocol (ethtool uses an AF_INET socket
today).

Signed-off-by: David Decotigny <decot@googlers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c