git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd6eadd
)
net/mlx5: fix VLAN matching on switch flow rules
author
Adrien Mazarguil
<adrien.mazarguil@6wind.com>
Thu, 2 Aug 2018 09:25:08 +0000
(11:25 +0200)
committer
Shahaf Shuler
<shahafs@mellanox.com>
Thu, 2 Aug 2018 11:46:39 +0000
(13:46 +0200)
VLAN ID is not properly translated to TC due to swapped byte order.
Fixes:
7ac6778d50e0
("net/mlx5: add VLAN item and actions to switch flow rules")
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_nl_flow.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx5/mlx5_nl_flow.c
b/drivers/net/mlx5/mlx5_nl_flow.c
index
9bad1a4
..
8803ffc
100644
(file)
--- a/
drivers/net/mlx5/mlx5_nl_flow.c
+++ b/
drivers/net/mlx5/mlx5_nl_flow.c
@@
-662,7
+662,7
@@
trans:
(mask.vlan->tci & RTE_BE16(0x0fff) &&
!mnl_attr_put_u16_check
(buf, size, TCA_FLOWER_KEY_VLAN_ID,
-
spec.vlan->tci & RTE_BE16(0x0fff
))))
+
rte_be_to_cpu_16(spec.vlan->tci & RTE_BE16(0x0fff)
))))
goto error_nobufs;
++item;
break;