diff options
author | David S. Miller <davem@davemloft.net> | 2019-05-01 23:13:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-01 23:13:14 +0200 |
commit | f76c4b571feea8eb03184d8ba0ee45f98fff47ff (patch) | |
tree | dc28c02b3d457355d77f8a89a9a5c679e89022ac /Documentation/networking/ip-sysctl.txt | |
parent | Merge branch 'net-ll_temac-x86_64-support' (diff) | |
parent | net: mvpp2: cls: Allow dropping packets with classification offload (diff) | |
download | linux-f76c4b571feea8eb03184d8ba0ee45f98fff47ff.tar.xz 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 'Documentation/networking/ip-sysctl.txt')
0 files changed, 0 insertions, 0 deletions