* [PATCH net-next] net: flow_dissector: fix RPS on DSA masters
@ 2021-06-14 13:58 Vladimir Oltean
2021-06-14 20:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Oltean @ 2021-06-14 13:58 UTC (permalink / raw)
To: Jakub Kicinski, David S. Miller, netdev
Cc: Florian Fainelli, Andrew Lunn, Vivien Didelot, Vladimir Oltean
From: Vladimir Oltean <vladimir.oltean@nxp.com>
After the blamed patch, __skb_flow_dissect() on the DSA master stopped
adjusting for the length of the DSA headers. This is because it was told
to adjust only if the needed_headroom is zero, aka if there is no DSA
header. Of course, the adjustment should be done only if there _is_ a
DSA header.
Modify the comment too so it is clearer.
Fixes: 4e50025129ef ("net: dsa: generalize overhead for taggers that use both headers and trailers")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
net/core/flow_dissector.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c
index c04455981c1e..2aadbfc5193b 100644
--- a/net/core/flow_dissector.c
+++ b/net/core/flow_dissector.c
@@ -943,8 +943,8 @@ bool __skb_flow_dissect(const struct net *net,
int offset = 0;
ops = skb->dev->dsa_ptr->tag_ops;
- /* Tail taggers don't break flow dissection */
- if (!ops->needed_headroom) {
+ /* Only DSA header taggers break flow dissection */
+ if (ops->needed_headroom) {
if (ops->flow_dissect)
ops->flow_dissect(skb, &proto, &offset);
else
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: flow_dissector: fix RPS on DSA masters
2021-06-14 13:58 [PATCH net-next] net: flow_dissector: fix RPS on DSA masters Vladimir Oltean
@ 2021-06-14 20:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-14 20:20 UTC (permalink / raw)
To: Vladimir Oltean
Cc: kuba, davem, netdev, f.fainelli, andrew, vivien.didelot,
vladimir.oltean
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Mon, 14 Jun 2021 16:58:19 +0300 you wrote:
> From: Vladimir Oltean <vladimir.oltean@nxp.com>
>
> After the blamed patch, __skb_flow_dissect() on the DSA master stopped
> adjusting for the length of the DSA headers. This is because it was told
> to adjust only if the needed_headroom is zero, aka if there is no DSA
> header. Of course, the adjustment should be done only if there _is_ a
> DSA header.
>
> [...]
Here is the summary with links:
- [net-next] net: flow_dissector: fix RPS on DSA masters
https://git.kernel.org/netdev/net-next/c/ec13357263fb
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-14 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-14 13:58 [PATCH net-next] net: flow_dissector: fix RPS on DSA masters Vladimir Oltean
2021-06-14 20:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).