projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62289ba
)
qed: Fix issue in populating the PFC config paramters.
author
[email protected]
<
[email protected]
>
Wed, 19 Apr 2017 10:19:55 +0000
(
03:19
-0700)
committer
David S. Miller
<
[email protected]
>
Thu, 20 Apr 2017 20:29:40 +0000
(16:29 -0400)
Change ieee_setpfc() callback implementation to populate traffic class
count with the user provided value.
Signed-off-by: Sudarsana Reddy Kalluru <
[email protected]
>
Signed-off-by: Yuval Mintz <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qed/qed_dcbx.c
b/drivers/net/ethernet/qlogic/qed/qed_dcbx.c
index 8f0783a62953f063b99a693c5232405250d9a79c..a6e2bbe629bd1842c4f2a2563427de5e58f76f36 100644
(file)
--- a/
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
+++ b/
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
@@
-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;