Re: [ovs-dev] [PATCH v27 7/8] netdev-offload-tc: Add offload support for sFlow

2023-06-19 Thread Eelco Chaudron
On 19 Jun 2023, at 7:01, Chris Mi wrote: > >>> +if (err) { >>> +VLOG_ERR_RL(&error_rl, "No OVS_ACTION_ATTR_USERSPACE attribute"); >>> +} >>> +return err; >>> +} >>> + >>> +static void >>> +offload_sample_init(struct offload_sample *sample, >>> +const stru

Re: [ovs-dev] [PATCH v27 7/8] netdev-offload-tc: Add offload support for sFlow

2023-06-18 Thread Chris Mi via dev
+if (err) { +VLOG_ERR_RL(&error_rl, "No OVS_ACTION_ATTR_USERSPACE attribute"); +} +return err; +} + +static void +offload_sample_init(struct offload_sample *sample, +const struct nlattr *next_actions, +size_t next_actions_len, +

Re: [ovs-dev] [PATCH v27 7/8] netdev-offload-tc: Add offload support for sFlow

2023-06-16 Thread Eelco Chaudron
On 1 Jun 2023, at 13:16, Chris Mi wrote: > Create a unique group ID to map the sFlow info when offloading sample > action to TC. When showing the offloaded datapath flows, translate the > group ID from TC sample action to sFlow info using the mapping. > > Signed-off-by: Chris Mi > Reviewed-by: Ro

[ovs-dev] [PATCH v27 7/8] netdev-offload-tc: Add offload support for sFlow

2023-06-01 Thread Chris Mi via dev
Create a unique group ID to map the sFlow info when offloading sample action to TC. When showing the offloaded datapath flows, translate the group ID from TC sample action to sFlow info using the mapping. Signed-off-by: Chris Mi Reviewed-by: Roi Dayan --- lib/netdev-offload-tc.c | 288 +