Skip to content

Commit

Permalink
net: mvpp2: cls: Use a bitfield to represent the flow_type
Browse files Browse the repository at this point in the history
As of today, the classification code is used only for RSS. We split the
incoming traffic into multiple flows, that correspond to the ethtool
flow_type parameter.

We don't want to use the ethtool flow definitions such as TCP_V4_FLOW,
for several reason :

 - We want to decorrelate the driver code from ethtool as much as
   possible, so that we can easily use other interfaces such as tc flower,

 - We want the flow_type to be a bitfield, so that we can match flows
   embedded into each other, such as TCP4 which is a subset of IP4.

This commit does the conversion to the newer type.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Maxime Chevallier authored and David S. Miller committed May 1, 2019
1 parent 6f16a46 commit 84e90b0
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 69 deletions.
Loading

0 comments on commit 84e90b0

Please sign in to comment.