]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnxt_en: export a common switchdev PARENT_ID for all reps of an adapter
authorSathya Perla <sathya.perla@broadcom.com>
Wed, 17 Jan 2018 08:21:16 +0000 (03:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:48:27 +0000 (14:48 -0500)
commitdd4ea1da12495e1b3c400a28df11528892199f68
tree446ca2ddda30292c928de253112aee3e74f21f02
parentc3480a603773cfc5d8aa44dbbee6c96e0f9d4d9d
bnxt_en: export a common switchdev PARENT_ID for all reps of an adapter

Currently the driver exports different switchdev PARENT_IDs for
representors belonging to different SR-IOV PF-pools of an adapter.
This is not correct as the adapter can switch across all vports
of an adapter. This patch fixes this by exporting a common switchdev
PARENT_ID for all reps of an adapter. The PCIE DSN is used as the id.

Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h