]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: Implement flow_dissect callback for tag_dsa.
authorRundong Ge <rdong.ge@gmail.com>
Sat, 16 Feb 2019 08:35:24 +0000 (08:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2019 00:35:41 +0000 (16:35 -0800)
commit57fd967838c665544f425c4a66ead1259a9ad0dc
treeb5741260664b1bbf5b547bde7cb3d2d65002ce14
parent6e07902f56fae81036ebc5a0b61d5ffdd739e4bc
net: dsa: Implement flow_dissect callback for tag_dsa.

RPS not work for DSA devices since the 'skb_get_hash'
will always get the invalid hash for dsa tagged packets.

"[PATCH] tag_mtk: add flow_dissect callback to the ops struct"
introduced the flow_dissect callback to get the right hash for
MTK tagged packet. Tag_dsa and tag_edsa  also need to implement
the callback.

Signed-off-by: Rundong Ge <rdong.ge@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_dsa.c
net/dsa/tag_edsa.c