net/i40e: fix TC bandwidth definition
The range of TC bandwidth is 0 ~ 800, it's 16bits not 8bits. Fixes: c8b9a3e3fe1b ("i40e: support DCB mode") Cc: stable@dpdk.org Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
This commit is contained in:
parent
37192bf2b4
commit
e8a165d588
@ -290,7 +290,7 @@ struct i40e_bw_info {
|
|||||||
/* Relative credits within same TC with respect to other VSIs or Comps */
|
/* Relative credits within same TC with respect to other VSIs or Comps */
|
||||||
uint8_t bw_ets_share_credits[I40E_MAX_TRAFFIC_CLASS];
|
uint8_t bw_ets_share_credits[I40E_MAX_TRAFFIC_CLASS];
|
||||||
/* Bandwidth limit per TC */
|
/* Bandwidth limit per TC */
|
||||||
uint8_t bw_ets_credits[I40E_MAX_TRAFFIC_CLASS];
|
uint16_t bw_ets_credits[I40E_MAX_TRAFFIC_CLASS];
|
||||||
/* Max bandwidth limit per TC */
|
/* Max bandwidth limit per TC */
|
||||||
uint8_t bw_ets_max[I40E_MAX_TRAFFIC_CLASS];
|
uint8_t bw_ets_max[I40E_MAX_TRAFFIC_CLASS];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user