Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16e00c25 authored by Avinash Dayanand's avatar Avinash Dayanand Committed by Jeff Kirsher
Browse files

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: default avatarAvinash Dayanand <avinash.dayanand@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent f0a48fb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -983,7 +983,7 @@ void iavf_enable_channels(struct iavf_adapter *adapter)
		return;
		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);
	       sizeof(struct virtchnl_tc_info);


	vti = kzalloc(len, GFP_KERNEL);
	vti = kzalloc(len, GFP_KERNEL);