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:
80cbfd3
)
net/mlx4_en: Fix UP limit in ieee_ets->prio_tc
author
Amir Vadai
<amirv@mellanox.com>
Sun, 2 Mar 2014 08:24:57 +0000
(10:24 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 3 Mar 2014 01:04:00 +0000
(20:04 -0500)
User priority limit has to be less than MLX4_EN_NUM_UP.
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
index b4881b6861590c16c55644fd2752abfcf569ad8e..c95ca252187c333719fe4141225cea020909c723 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
@@
-62,7
+62,7
@@
static int mlx4_en_ets_validate(struct mlx4_en_priv *priv, struct ieee_ets *ets)
int has_ets_tc = 0;
for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) {
- if (ets->prio_tc[i] > MLX4_EN_NUM_UP) {
+ if (ets->prio_tc[i] >
=
MLX4_EN_NUM_UP) {
en_err(priv, "Bad priority in UP <=> TC mapping. TC: %d, UP: %d\n",
i, ets->prio_tc[i]);
return -EINVAL;