net: ethernet: ti: cpsw: fix tx vlan priority mapping
[ Upstream commit 5e391dc5a8d801a2410d0032ad4a428d1d61800c ] 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: e05107e6b747 ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7814c479de
commit
16c36a2c76
@ -124,7 +124,7 @@ do { \
|
||||
|
||||
#define RX_PRIORITY_MAPPING 0x76543210
|
||||
#define TX_PRIORITY_MAPPING 0x33221100
|
||||
#define CPDMA_TX_PRIORITY_MAP 0x01234567
|
||||
#define CPDMA_TX_PRIORITY_MAP 0x76543210
|
||||
|
||||
#define CPSW_VLAN_AWARE BIT(1)
|
||||
#define CPSW_ALE_VLAN_AWARE 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user