aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@bootlin.com>2019-03-27 09:44:21 +0100
committerDavid S. Miller <davem@davemloft.net>2019-03-27 11:10:58 -0700
commit693131db1d5f2c1d97a6eaa58cf291984737f63b (patch)
tree59227e89c4d898fd3d3bf2596f3126a0cf386db4 /drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h
parentnet: mvpp2: cls: Invalidate all C2 entries except the ones we use (diff)
downloadlinux-dev-693131db1d5f2c1d97a6eaa58cf291984737f63b.tar.xz
linux-dev-693131db1d5f2c1d97a6eaa58cf291984737f63b.zip
net: mvpp2: cls: Initialize lookup priorities for all entries in the flow
When classifying a packet pertaining to a given flow, the classifier will issue multiple lookup commands until it finds one with the 'last' bit set. It expects all prorities to be assign continuously (although not necessarily in an ordered fashion) from 0 to the number of lookups. We can initialize this once, and make sure unused lookups are given an empty port map. This avoids having to maintain priorities and the information of which lookup is the last. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions