diff options
author | Volodymyr Mytnyk <vmytnyk@marvell.com> | 2021-12-15 11:07:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-16 11:52:53 +0100 |
commit | 604ba230902d23c6e85c7dba9cfcb6a37661cb12 (patch) | |
tree | 502615009b513064045b88055796a71a5a3a5d6e /security/bpf | |
parent | net: dsa: rtl8365mb: add GMII as user port mode (diff) | |
download | linux-604ba230902d23c6e85c7dba9cfcb6a37661cb12.tar.xz linux-604ba230902d23c6e85c7dba9cfcb6a37661cb12.zip |
net: prestera: flower template support
Add user template explicit support. At this moment, max
TCAM rule size is utilized for all rules, doesn't matter
which and how much flower matches are provided by user. It
means that some of TCAM space is wasted, which impacts
the number of filters that can be offloaded.
Introducing the template, allows to have more HW offloaded
filters by specifying the template explicitly.
Example:
tc qd add dev PORT clsact
tc chain add dev PORT ingress protocol ip \
flower dst_ip 0.0.0.0/16
tc filter add dev PORT ingress protocol ip \
flower skip_sw dst_ip 1.2.3.4/16 action drop
NOTE: chain 0 is the default chain id for "tc chain" & "tc filter"
command, so it is omitted in the example above.
This patch adds only template support for default chain 0 suppoerted
by prestera driver at this moment. Chains are not supported yet,
and will be added later.
Signed-off-by: Volodymyr Mytnyk <vmytnyk@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/bpf')
0 files changed, 0 insertions, 0 deletions