]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dpaa2-switch-tc-hw-offload'
authorDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2021 22:12:19 +0000 (15:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2021 22:12:19 +0000 (15:12 -0700)
commit687b8f7d68e7e2f4e3f9bd592f07e140d57dc9f5
tree7ce14e236812c9800b0c49bab001ccb0ee5500ca
parent2c10a9f1f4d010fc5d63a700aa1aed09b30fef8e
parent0056bbcc34e11459243e847259b3cff8dfec3599
Merge branch 'dpaa2-switch-tc-hw-offload'

Ioana Ciornei says:

====================
dpaa2-switch: add tc hardware offload on ingress traffic

This patch set adds tc hardware offload on ingress traffic in
dpaa2-switch. The cls flower and matchall classifiers are supported
using the same ACL infrastructure supported by the dpaa2-switch.

The first patch creates a new structure to hold all the necessary
information related to an ACL table. This structure is used in the next
patches to create a link between each switch port and the table used.
Multiple ports can share the same ACL table when they also share the
ingress tc block. Also, some small changes in the priority of the
default STP trap is done in the second patch.

The support for cls flower is added in the 3rd patch, while the 4th
one builds on top of the infrastructure put in place and adds cls
matchall support.

The following flow keys are supported:
 - Ethernet: dst_mac/src_mac
 - IPv4: dst_ip/src_ip/ip_proto/tos
 - VLAN: vlan_id/vlan_prio/vlan_tpid/vlan_dei
 - L4: dst_port/src_port

Each filter can support only one action from the following list:
 - drop
 - mirred egress redirect
 - trap

With the last patch, we reuse the dpaa2_switch_acl_entry_add() function
added previously instead of open-coding the install of a new ACL entry
into the table.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>