From: Wenzhuo Lu Date: Thu, 16 Feb 2017 03:29:17 +0000 (+0800) Subject: net/i40e: fix TC bitmap of VEB X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a58d3e3b8e060279453a265557b42b9630c104bb;p=dpdk.git net/i40e: fix TC bitmap of VEB When setting up the VEB, default TC bitmap is used. But after setting the default TC bitmap, it's not stored. So when we're trying to get the enabled TCs on the VEB, it's always wrong. Fixes: 5135f3ca49a7 ("i40e: enable DCB in VMDQ VSIs") Cc: stable@dpdk.org Signed-off-by: Wenzhuo Lu --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 8b5fd54e71..f54a1587be 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -4341,6 +4341,7 @@ i40e_veb_setup(struct i40e_pf *pf, struct i40e_vsi *vsi) hw->aq.asq_last_status); goto fail; } + veb->enabled_tc = I40E_DEFAULT_TCMAP; /* get statistics index */ ret = i40e_aq_get_veb_parameters(hw, veb->seid, NULL, NULL,