]> asedeno.scripts.mit.edu Git - linux.git/commit
net: mvpp2: cls: Use a bitfield to represent the flow_type
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 30 Apr 2019 13:14:27 +0000 (15:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 21:13:14 +0000 (17:13 -0400)
commit84e90b0b51aabb5cb73a366368b956df37d7cedc
treeac54f44039a24b8e6c03c53e3115efcae4fd7277
parent6f16a4652262c2a27a241b30039c11ae01586641
net: mvpp2: cls: Use a bitfield to represent the flow_type

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>
drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c
drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h