[dpdk-dev] net/i40e: fix wrong TC bitmap of VEB
Checks
Commit Message
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 <wenzhuo.lu@intel.com>
---
drivers/net/i40e/i40e_ethdev.c | 1 +
1 file changed, 1 insertion(+)
Comments
On 2/16/2017 3:29 AM, Wenzhuo Lu wrote:
> 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 <wenzhuo.lu@intel.com>
Applied to dpdk-next-net/master, thanks.
@@ -4348,6 +4348,7 @@ enum i40e_status_code
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,