Skip to content

Commit 5e391dc

Browse files
ikhorndavem330
authored andcommitted
net: ethernet: ti: cpsw: fix tx vlan priority mapping
The CPDMA_TX_PRIORITY_MAP in real is vlan pcp field priority mapping register and basically replaces vlan pcp field for tagged packets. So, set it to be 1:1 mapping. Otherwise, it will cause unexpected change of egress vlan tagged packets, like prio 2 -> prio 5. Fixes: e05107e ("net: ethernet: ti: cpsw: add multi queue support") Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b905ef9 commit 5e391dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/cpsw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ do { \
129129

130130
#define RX_PRIORITY_MAPPING 0x76543210
131131
#define TX_PRIORITY_MAPPING 0x33221100
132-
#define CPDMA_TX_PRIORITY_MAP 0x01234567
132+
#define CPDMA_TX_PRIORITY_MAP 0x76543210
133133

134134
#define CPSW_VLAN_AWARE BIT(1)
135135
#define CPSW_RX_VLAN_ENCAP BIT(2)

0 commit comments

Comments
 (0)