[dpdk-dev] net/i40e: fix wrong TC bitmap of VEB

Message ID 1487215757-78543-1-git-send-email-wenzhuo.lu@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Wenzhuo Lu Feb. 16, 2017, 3:29 a.m. UTC
  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

Ferruh Yigit Feb. 20, 2017, 2:36 p.m. UTC | #1
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.
  

Patch

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 3ecf14d..82c1fd2 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -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,