]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt: move bp->switch_id initialization to PF probe
authorJiri Pirko <jiri@mellanox.com>
Wed, 3 Apr 2019 12:24:20 +0000 (14:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:42:36 +0000 (17:42 -0700)
commit7091aef9334d6b6e8aa1b5256e287d90aa325dba
treedda7578b53493824c60557946c930cb6c55523ba
parent1e67866dee56ee1300678fa67014ec9af0d3c102
bnxt: move bp->switch_id initialization to PF probe

Currently the switch_id is being only initialized when switching eswitch
mode from "legacy" to "switchdev". However, nothing prevents the id to
be initialized from the very beginning. Physical ports can show it even
in "legacy" mode.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c