]> 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)
commit7736a189d762f8a9e672586163d92aa31b35153b
tree2fa19024bd1afefcc0fc4a09ea7ae1b6c095edcd
parentc69616c8f653cc2c158b3fddcdb65780d07c85ee
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