]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: support ndo_get_phys_port_id()
authorSriharsha Basavapatna <sriharsha.basavapatna@avagotech.com>
Wed, 22 Jul 2015 05:45:12 +0000 (11:15 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2015 05:41:22 +0000 (22:41 -0700)
commitc122b8c9a25619e347e054c044851cdca06a06ba
tree80498895d24efe11ff26d800400e56f5ea37a092
parent2e425fadd49a017fd592e546bd1a3d2dcc528e49
be2net: support ndo_get_phys_port_id()

Add be_get_phys_port_id() function to report physical port id. The port id
should be unique across different be2net devices in the system. We use the
chip serial number along with the physical port number for this.

Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c