mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
qed: Fix issue in populating the PFC config paramters.
Change ieee_setpfc() callback implementation to populate traffic class count with the user provided value. Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
62289ba275
commit
c0c5dbe711
1 changed files with 2 additions and 0 deletions
|
@ -2082,6 +2082,8 @@ static int qed_dcbnl_ieee_setpfc(struct qed_dev *cdev, struct ieee_pfc *pfc)
|
|||
for (i = 0; i < QED_MAX_PFC_PRIORITIES; i++)
|
||||
dcbx_set.config.params.pfc.prio[i] = !!(pfc->pfc_en & BIT(i));
|
||||
|
||||
dcbx_set.config.params.pfc.max_tc = pfc->pfc_cap;
|
||||
|
||||
ptt = qed_ptt_acquire(hwfn);
|
||||
if (!ptt)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in a new issue