]> 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)
commit397645a5e0de709bd7771d7e9126e745d5eb35c5
treedda7578b53493824c60557946c930cb6c55523ba
parent7d887f1c58c5b9e5968f831d78a68d2601c6d1b5
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