net/bnxt: provide switch info if VFR are configured
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Fri, 11 Sep 2020 01:55:59 +0000 (18:55 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:12 +0000 (18:55 +0200)
commit9b842a93e21afb16226577c8bb2a7a5bca60c2e0
treeac448ac7a06be71aa56be3944cfd94a9c2949a65
parent7ecfe8521fbb6a845f08a6b178676d1d6c5a7802
net/bnxt: provide switch info if VFR are configured

Some applications need switch_info of the device to be returned
as a part of eth_dev_info_get(). The offload logic in such
applications could use this info. Pass this info to the when VF
representors are configured.

Fixes: 322bd6e70272 ("net/bnxt: add port representor infrastructure")
Cc: stable@dpdk.org
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_reps.c
drivers/net/bnxt/bnxt_reps.h