]> git.baikalelectronics.ru Git - kernel.git/commit
net: add ndo to get id of physical port of the device
authorJiri Pirko <jiri@resnulli.us>
Mon, 29 Jul 2013 16:16:49 +0000 (18:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2013 00:31:24 +0000 (17:31 -0700)
commitec83ea4d7c471527622d326a018882e09f4310bf
tree2fa19024bd1afefcc0fc4a09ea7ae1b6c095edcd
parent5e40ebb173fb06254386eca3ff1f487e3877afbe
net: add ndo to get id of physical port of the device

This patch adds a ndo for getting physical port of the device. Driver
which is aware of being virtual function of some physical port should
implement this ndo. This is applicable not only for IOV, but for other
solutions (NPAR, multichannel) as well. Basically if there is possible
to have multiple netdevs on the single hw port.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c