diff options
author | David S. Miller <davem@davemloft.net> | 2019-05-01 17:13:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-01 17:13:14 -0400 |
commit | f76c4b571feea8eb03184d8ba0ee45f98fff47ff (patch) | |
tree | dc28c02b3d457355d77f8a89a9a5c679e89022ac /net/packet | |
parent | 2a369ae003881612ef5c2f03adcfc0ddc4ea817e (diff) | |
parent | bec2d46d143d467f92d7d1b54d1e7c1e3a25a7b9 (diff) | |
download | linux-f76c4b571feea8eb03184d8ba0ee45f98fff47ff.tar.gz linux-f76c4b571feea8eb03184d8ba0ee45f98fff47ff.tar.bz2 linux-f76c4b571feea8eb03184d8ba0ee45f98fff47ff.zip |
Merge branch 'net-mvpp2-cls-Add-classification'
Maxime Chevallier says:
====================
net: mvpp2: cls: Add classification
This series is a rework of the previously standalone patch adding
classification support for mvpp2 :
https://lore.kernel.org/netdev/20190423075031.26074-1-maxime.chevallier@bootlin.com/
This patch has been reworked according to Saeed's review, to make sure
that the location of the rule is always respected and serves as a way to
prioritize rules between each other. This the 3rd iteration of this
submission, but since it's now a series, I reset the revision numbering.
This series implements that in a limited configuration for now, since we
limit the total number of rules per port to 4.
The main factors for this limitation are that :
- We share the classification tables between all ports (4 max, although
one is only used for internal loopback), hence we have to perform a
logical separation between rules, which is done today by dedicated
ranges for each port in each table
- The "Flow table", which dictates which lookups operations are
performed for an ingress packet, in subdivided into 22 "sub flows",
each corresponding to a traffic type based on the L3 proto, L4
proto, the presence or not of a VLAN tag and the L3 fragmentation.
This makes so that when adding a rule, it has to be added into each
of these subflows, introducing duplications of entries and limiting
our max number of entries.
These limitations can be overcomed in several ways, but for readability
sake, I'd rather submit basic classification offload support for now,
and improve it gradually.
This series also adds a small cosmetic cleanup patch (1), and also adds
support for the "Drop" action compared to the first submission of this
feature. It is simple enough to be added with this basic support.
Compared to the first submissions, the NETIF_F_NTUPLE flag was also
removed, following Saeed's comment.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions