]> 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)
commit956bcc7e9369407a7e15319a6caec5f6092f23b1
tree80498895d24efe11ff26d800400e56f5ea37a092
parent52355c34d0a8d665e8d87dd14325c19b7d07077e
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