]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: cls: Only select applicable flows of classification offload
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 18 Jun 2019 14:55:17 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2019 02:26:04 +0000 (22:26 -0400)
commitf4e201c1fb8a9ee9d83625e7ed6a6a9e6e48ac31
tree6808533e2d6230c6fa61002e0b2aefef5d41ad8c
parent1cd346dd92eda92ddf437abfe9425b22d5b81572
net: mvpp2: cls: Only select applicable flows of classification offload

The way we currently handle classification offload and RSS is by having
dedicated lookup sequences in the flow table, each being selected
depending on several fields being present in the packet header.

We need to make sure the classification operation we want to perform can
be done in each flow we want to insert it into. As an example,
classifying on VLAN tag can only be done on flows used for tagged
traffic.

This commit makes sure we don't insert rules in flows we aren't
compatible with.

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