]> git.proxmox.com Git - ovs.git/commit
ovs-tc: offload datapath rules matching on internal ports
authorJohn Hurley <john.hurley@netronome.com>
Tue, 9 Apr 2019 14:36:14 +0000 (15:36 +0100)
committerSimon Horman <simon.horman@netronome.com>
Wed, 10 Apr 2019 11:55:59 +0000 (13:55 +0200)
commit608ff46aaf0dd4330c2488c260ee42992e17a6fd
tree622a7dcc2375d1d0f5667db6858fa7e8dad7f038
parent95255018a83ee460a5e2e4833e3f444a502c5804
ovs-tc: offload datapath rules matching on internal ports

Rules applied to OvS internal ports are not represented in TC datapaths.
However, it is possible to support rules matching on internal ports in TC.
The start_xmit ndo of OvS internal ports directs packets back into the OvS
kernel datapath where they are rematched with the ingress port now being
that of the internal port. Due to this, rules matching on an internal port
can be added as TC filters to an egress qdisc for these ports.

Allow rules applied to internal ports to be offloaded to TC as egress
filters. Rules redirecting to an internal port are also offloaded. These
are supported by the redirect ingress functionality applied in an earlier
patch.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/dpif.c
lib/netdev-linux.c
lib/netdev-tc-offloads.c