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:
35b42da
)
cxgb4: when disabling dcb set txq dcb priority to 0
author
Ganesh Goudar
<
[email protected]
>
Sat, 23 Jun 2018 14:58:26 +0000
(20:28 +0530)
committer
David S. Miller
<
[email protected]
>
Sun, 24 Jun 2018 02:43:16 +0000
(11:43 +0900)
When we are disabling DCB, store "0" in txq->dcb_prio
since that's used for future TX Work Request "OVLAN_IDX"
values. Setting non zero priority upon disabling DCB
would halt the traffic.
Reported-by: AMG Zollner Robert <
[email protected]
>
CC: David Ahern <
[email protected]
>
Signed-off-by: Casey Leedom <
[email protected]
>
Signed-off-by: Ganesh Goudar <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index dd04a2f89ce62db6ea9bca433023d9aac4b10e23..bc03c175a3cdf1440aca2269b4483f59cdb3a9dc 100644
(file)
--- a/
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@
-263,7
+263,7
@@
static void dcb_tx_queue_prio_enable(struct net_device *dev, int enable)
"Can't %s DCB Priority on port %d, TX Queue %d: err=%d\n",
enable ? "set" : "unset", pi->port_id, i, -err);
else
- txq->dcb_prio =
value
;
+ txq->dcb_prio =
enable ? value : 0
;
}
}