]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'net-dsa-mv88e6xxx-add-partial-support-for-tcam-entries'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 17 Mar 2026 09:35:22 +0000 (10:35 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 Mar 2026 09:35:22 +0000 (10:35 +0100)
commita2efb1b80f36320c67622245e661fd980aa0c344
tree732d20075093c38e87dd46445e74a16e9325f398
parent348baefbb635cbb448e154f38c93657d4cf23936
parent639f1dcfde5540a8fafa8458d3e6be05207a68db
Merge branch 'net-dsa-mv88e6xxx-add-partial-support-for-tcam-entries'

Cedric Jehasse says:

====================
net: dsa: mv88e6xxx: Add partial support for TCAM entries

This series adds partial Ternary Content Addressable Memory (TCAM) for
the mv88e6390 and mv88e6393 family of switches. TCAM entries allow the
switch to match the first 48 or 96 bytes of a frame and take actions on
matched frames.

This patch introduces a subset of the available TCAM functionality.
Matching on ip addresses/protocol and trapping to the cpu.

Eg. to trap traffic with destination ip 224.0.1.129 to the cpu:

tc qdisc add dev p1 clsact
tc filter add dev p1 ingress protocol ip flower skip_sw \
    dst_ip 224.0.1.129 action trap

Review of the mv88e6xxx changes have brought to light something in
cls_flower:
When adding a classifier with an ipv4 address both
FLOW_DISSECTOR_KEY_IPV4_ADDRS and FLOW_DISSECTOR_KEY_IPV6_ADDRS bits are
set in dissector->used_keys.
A change was made to address this.

Signed-off-by: Cedric Jehasse <cedric.jehasse@luminex.be>
====================

Link: https://patch.msgid.link/20260311-net-next-mv88e6xxx-tcam-v8-0-32dd5ba30002@luminex.be
Signed-off-by: Paolo Abeni <pabeni@redhat.com>