On 6/24/2023 4:18 AM, Ilya Maximets wrote:
On 6/19/23 07:05, 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 <c...@nvidia.com>
Reviewed-by: Roi Dayan <r...@nvidia.com>
---
  lib/netdev-offload-tc.c | 288 ++++++++++++++++++++++++++++++++++++----
  lib/tc.c                |  63 ++++++++-
  lib/tc.h                |   6 +
  3 files changed, 331 insertions(+), 26 deletions(-)

This patch needs a NEWS entry.

Done.


enum tc_action_type type;
@@ -380,6 +385,7 @@ struct tc_flower {
      enum tc_offloaded_state offloaded_state;
      /* Used to force skip_hw when probing tc features. */
      enum tc_offload_policy tc_policy;
+    uint16_t ifindex;
  };
int tc_replace_flower(struct tcf_id *id, struct tc_flower *flower);

No need for variable names.


It's not part of this patch. Didn't change it.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to