net/ixgbe: fix PF DCB info
authorWei Dai <wei.dai@intel.com>
Mon, 23 Oct 2017 06:43:57 +0000 (14:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commit9be9050134aaf09089f0cfb7723159eecc4a15e5
tree7c7e77b058b03e187c0ae0221705773f17061bc0
parentc063a2a8ad55ba9aefde49fd968af3c77aec42da
net/ixgbe: fix PF DCB info

When SRIOV is active, the function ixgbe_dev_get_dcb_info( )
should return the DCB traffic class info of its own queues,
not including any DCB info of the queues of any its VF.

When VMDQ is active, all queues are belonged to the PF,
the function ixgbe_dev_get_dcb_info can return DCB info
of all queues.

Fixes: 89d6728c7837 ("ethdev: get DCB information")
Cc: stable@dpdk.org
Signed-off-by: Wei Dai <wei.dai@intel.com>
Reviewed-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c