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)
commit03213a996531e507e03c085d411a313e34357498
treedda7578b53493824c60557946c930cb6c55523ba
parentaef36b88229a6e5ea4f23d19e8b5c72cf1261f18
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