]> git.baikalelectronics.ru Git - kernel.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)
commitbae0ff402e1c42d92717e3ac59e5e27364aa1499
treeb5741260664b1bbf5b547bde7cb3d2d65002ce14
parentbc6e7f32257a0abc7c0c9a0a313158dcbd2934e9
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