]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Add code to export port_num in netdev->dev_port
authorShradha Shah <sshah@solarflare.com>
Tue, 2 Jun 2015 10:37:25 +0000 (11:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2015 19:57:24 +0000 (12:57 -0700)
commit480c408d4e507c095eff4e39706d4b52b89263cb
tree47664b378472dcaae50a2cc460e306e7e0275731
parent9ee518c8826418f19f3660acc8123ad40febeb4f
sfc: Add code to export port_num in netdev->dev_port

In the case where we have multiple functions (PFs and VFs), this
sysfs entry is useful to identify the physical port corresponding
to the function we are interested in.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c