OpenCloudOS-Kernel/drivers/net
Vladimir Oltean 1397a2eb52 net: mscc: ocelot: create TCAM skeleton from tc filter chains
For Ocelot switches, there are 2 ingress pipelines for flow offload
rules: VCAP IS1 (Ingress Classification) and IS2 (Security Enforcement).
IS1 and IS2 support different sets of actions. The pipeline order for a
packet on ingress is:

Basic classification -> VCAP IS1 -> VCAP IS2

Furthermore, IS1 is looked up 3 times, and IS2 is looked up twice (each
TCAM entry can be configured to match only on the first lookup, or only
on the second, or on both etc).

Because the TCAMs are completely independent in hardware, and because of
the fixed pipeline, we actually have very limited options when it comes
to offloading complex rules to them while still maintaining the same
semantics with the software data path.

This patch maps flow offload rules to ingress TCAMs according to a
predefined chain index number. There is going to be a script in
selftests that clarifies the usage model.

There is also an egress TCAM (VCAP ES0, the Egress Rewriter), which is
modeled on top of the default chain 0 of the egress qdisc, because it
doesn't have multiple lookups.

Suggested-by: Allan W. Nielsen <allan.nielsen@microchip.com>
Co-developed-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-10-02 15:40:30 -07:00
..
appletalk net/appletalk: Supply missing net/Space.h include file 2020-09-18 14:53:40 -07:00
arcnet
bonding
caif caif_virtio: Remove redundant initialization of variable err 2020-10-01 18:46:16 -07:00
can can: flexcan: disable runtime PM if register flexcandev failed 2020-09-30 21:56:58 +02:00
dsa net: mscc: ocelot: introduce conversion helpers between port and netdev 2020-10-02 15:40:30 -07:00
ethernet net: mscc: ocelot: create TCAM skeleton from tc filter chains 2020-10-02 15:40:30 -07:00
fddi fddi/skfp: Avoid the use of one-element array 2020-09-29 13:27:43 -07:00
fjes
hamradio
hippi hippi: switch from 'pci_' to 'dma_' API 2020-09-08 20:15:57 -07:00
hyperv hv_netvsc: Add validation for untrusted Hyper-V values 2020-09-17 16:21:26 -07:00
ieee802154
ipa net: ipa: fix two comments 2020-09-28 18:34:56 -07:00
ipvlan
mdio net: mdio-ipq4019: add Clause 45 support 2020-09-23 17:41:15 -07:00
netdevsim netdevsim: support the static IANA VXLAN port flag 2020-09-28 12:50:12 -07:00
pcs net: pcs-lynx: add support for 10GBASER 2020-09-24 19:49:36 -07:00
phy net: phy: realtek: Modify 2.5G PHY name to RTL8226 2020-10-01 18:49:47 -07:00
plip
ppp
slip
team
usb net/smscx5xx: change to of_get_mac_address() eth_platform_get_mac_address() 2020-10-02 15:21:17 -07:00
vmxnet3
wan drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values 2020-10-01 18:38:18 -07:00
wimax net: wimax: i2400m: fix 'msg_skb' kernel-doc warning in i2400m_msg_to_dev() 2020-09-08 20:04:27 -07:00
wireguard Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-09-22 16:45:34 -07:00
wireless Another set of changes, this time with: 2020-10-02 15:33:13 -07:00
xen-netback
Kconfig net: mdio: Move MDIO drivers into a new subdirectory 2020-08-27 06:55:50 -07:00
LICENSE.SRC
Makefile net: mdio: Move MDIO drivers into a new subdirectory 2020-08-27 06:55:50 -07:00
Space.c
bareudp.c
dummy.c
eql.c
geneve.c geneve: add transport ports in route lookup for geneve 2020-09-16 17:41:38 -07:00
gtp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-09-04 21:28:59 -07:00
ifb.c
loopback.c
macsec.c
macvlan.c
macvtap.c
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-09-04 21:28:59 -07:00
veth.c net: remove napi_hash_del() from driver-facing API 2020-09-10 13:08:46 -07:00
virtio_net.c net: remove napi_hash_del() from driver-facing API 2020-09-10 13:08:46 -07:00
vrf.c
vsockmon.c
vxlan.c Revert "vxlan: move encapsulation warning" 2020-09-26 12:34:47 -07:00
xen-netfront.c