]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4vf: configure ports accessible by the VF
authorNirranjan Kirubaharan <nirranjan@chelsio.com>
Mon, 29 Jun 2020 11:55:13 +0000 (17:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 22:54:25 +0000 (15:54 -0700)
commitf7a9bfc4757e6a5aac16b603d42b2ecf2c3132c0
tree9c72bd237840b8df202896b814d352fa2bafffec
parentcd030c07eda243b0ba18ffeee3274eb84775fe55
cxgb4vf: configure ports accessible by the VF

Find ports accessible by the VF, based on the index of the
mac address stored for the VF in the adapter. If no mac address
is stored for the VF, use the port mask provided by firmware.

Signed-off-by: Nirranjan Kirubaharan <nirranjan@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c