]> git.proxmox.com Git - mirror_ovs.git/commit - lib/tc.c
netdev-offload-tc: Add recirculation support via tc chains
authorPaul Blakey <paulb@mellanox.com>
Sun, 22 Dec 2019 10:16:40 +0000 (12:16 +0200)
committerSimon Horman <simon.horman@netronome.com>
Sun, 22 Dec 2019 10:54:40 +0000 (11:54 +0100)
commitb2ae40690ed7925518619039c5d1e885f7d0acdf
tree16cdf7292af118f42200046de728a45c1322c04b
parent7c53bd7839d839f8650c1c0298e5fb42271fc1ea
netdev-offload-tc: Add recirculation support via tc chains

Each recirculation id will create a tc chain, and we translate
the recirculation action to a tc goto chain action.

We check for kernel support for this by probing OvS Datapath for the
tc recirc id sharing feature. If supported, we can offload rules
that match on recirc_id, and recirculation action safely.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/dpif-netlink.c
lib/netdev-offload-tc.c
lib/netdev-offload.h
lib/tc.c
lib/tc.h