[ovs-dev] [PATCH dpdk-latest v3 2/5] netdev-dpdk: Remove unused attribute from rte_flow rule.

David Marchand david.marchand at redhat.com
Tue Nov 9 16:02:08 UTC 2021


The shared attribute has been deprecated some time ago and is removed
in 21.11 [1].
Since its value was 0, let's rely on implicit init by not mentionning it.

1: https://git.dpdk.org/dpdk/commit/?id=92ef4b8f1688

Signed-off-by: David Marchand <david.marchand at redhat.com>
---
 lib/netdev-dpdk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 27b1b953f8..2130787da5 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -5277,7 +5277,7 @@ netdev_dpdk_rte_flow_query_count(struct netdev *netdev,
                                  struct rte_flow_query_count *query,
                                  struct rte_flow_error *error)
 {
-    struct rte_flow_action_count count = { .shared = 0, .id = 0 };
+    struct rte_flow_action_count count = { .id = 0, };
     const struct rte_flow_action actions[] = {
         {
             .type = RTE_FLOW_ACTION_TYPE_COUNT,
-- 
2.23.0



More information about the dev mailing list