]> git.baikalelectronics.ru Git - kernel.git/commit
net: flow_dissector: fix RPS on DSA masters
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 14 Jun 2021 13:58:19 +0000 (16:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 20:15:22 +0000 (13:15 -0700)
commit2eb59a335c0f9dbbd6d3e860da91cba9c5ea3aba
treed05483563d9e6bf0efad2442cac26a54dc754ef6
parentb58ac7658039b64a2e607875d592ff9fdc0d2a3c
net: flow_dissector: fix RPS on DSA masters

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: 7c68d0a66330 ("net: dsa: generalize overhead for taggers that use both headers and trailers")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c