]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: fix tx vlan priority mapping
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Thu, 19 Apr 2018 19:49:09 +0000 (22:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Apr 2018 18:55:43 +0000 (14:55 -0400)
commit5cf0b6988b41b3722510cd8be93d06fef3b2f2d6
treef43e14fbf19c1b30cad6e76198097b8dfffd40dc
parentbfe3571fb8f0931218637efe6e42aa10aa1f5d72
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: 54a89033c801 ("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>
drivers/net/ethernet/ti/cpsw.c