mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 08:31:37 +00:00
iavf: Fix the math for valid length for ADq enable
There was a calculation error in virtchnl regarding the valid length which was fixed recently and a corresponding change needs to go into the code while we enable ADq. Signed-off-by: Avinash Dayanand <avinash.dayanand@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
f0a48fb441
commit
16e00c25ac
@ -983,7 +983,7 @@ void iavf_enable_channels(struct iavf_adapter *adapter)
|
||||
return;
|
||||
}
|
||||
|
||||
len = (adapter->num_tc * sizeof(struct virtchnl_channel_info)) +
|
||||
len = ((adapter->num_tc - 1) * sizeof(struct virtchnl_channel_info)) +
|
||||
sizeof(struct virtchnl_tc_info);
|
||||
|
||||
vti = kzalloc(len, GFP_KERNEL);
|
||||
|
Loading…
Reference in New Issue
Block a user