This patch set adds offload support for sFlow. Psample is a genetlink channel for packet sampling. TC action act_sample uses psample to send sampled packets to userspace.
When offloading sample action to TC, userspace creates a unique ID to map sFlow action and tunnel info and passes this ID to kernel instead of the sFlow info. psample will send this ID and sampled packet to userspace. Using the ID, userspace can recover the sFlow info and send sampled packet to the right sFlow monitoring host. v2-v1: - Fix robot errors. Chris Mi (8): ovs-kmod-ctl: Load kernel module psample dpif-netlink: Create psample netlink socket netdev-offload: Introduce sFlow attributes query by group ID API dpif: Introduce psample offload API dpif-netlink: Implement psample offload API ofproto: Add psample receive handler netdev-offload-tc: Introduce group ID management API netdev-offload-tc: Add offload support for sFlow lib/dpif-netdev.c | 3 + lib/dpif-netlink.c | 178 ++++++++++++++++ lib/dpif-provider.h | 11 + lib/dpif.c | 24 +++ lib/dpif.h | 32 +++ lib/netdev-offload-provider.h | 5 + lib/netdev-offload-tc.c | 390 +++++++++++++++++++++++++++++++++- lib/netdev-offload.c | 11 + lib/netdev-offload.h | 1 + lib/tc.c | 59 +++++ lib/tc.h | 10 +- ofproto/ofproto-dpif-upcall.c | 78 +++++++ utilities/ovs-kmod-ctl.in | 9 + 13 files changed, 801 insertions(+), 10 deletions(-) -- 2.21.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
