OSDN Git Service

Merge branch 'dsa-flow-dissection'
authorDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:51:47 +0000 (22:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:53:40 +0000 (22:53 -0700)
commit7e1ecbcf79b2fdc7349da1bb90d6dadad1f9ac89
tree1ad4d07ef9a12ae6fcccde731365c127e6b23ba3
parent098b8d7e50736f959e8b76aea09105a86a71a58b
parent43e665287f931a167cd2eea3387efda901bff0ce
Merge branch 'dsa-flow-dissection'

John Crispin says:

====================
net-next: dsa: fix flow dissection

RPS and probably other kernel features are currently broken on some if not
all DSA devices. The root cause of this is that skb_hash will call the
flow_dissector. At this point the skb still contains the magic switch
header and the skb->protocol field is not set up to the correct 802.3
value yet. By the time the tag specific code is called, removing the header
and properly setting the protocol an invalid hash is already set. In the
case of the mt7530 this will result in all flows always having the same
hash.

Changes since RFC:
* use a callback instead of static values
* add cover letter
====================

Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>