app/testpmd: fix build with clang 15 in flow code

This variable is not used and has been copy/pasted in a lot of other
code.

Fixes: 938a184a18 ("app/testpmd: implement basic support for flow API")
Fixes: 55509e3a49 ("app/testpmd: support shared flow action")
Fixes: 04cc665fab ("app/testpmd: add flow template management")
Fixes: c4b3887334 ("app/testpmd: add flow table management")
Fixes: ecdc927b99 ("app/testpmd: add async flow create/destroy operations")
Fixes: d906fff518 ("app/testpmd: add async indirect actions operations")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
This commit is contained in:
David Marchand 2022-11-18 09:53:10 +01:00
parent ff3cc86575
commit 2809981e85

View File

@ -1787,7 +1787,6 @@ port_action_handle_destroy(portid_t port_id,
{
struct rte_port *port;
struct port_indirect_action **tmp;
uint32_t c = 0;
int ret = 0;
if (port_id_is_invalid(port_id, ENABLED_WARN) ||
@ -1822,7 +1821,6 @@ port_action_handle_destroy(portid_t port_id,
}
if (i == n)
tmp = &(*tmp)->next;
++c;
}
return ret;
}
@ -2251,7 +2249,6 @@ port_flow_pattern_template_destroy(portid_t port_id, uint32_t n,
{
struct rte_port *port;
struct port_template **tmp;
uint32_t c = 0;
int ret = 0;
if (port_id_is_invalid(port_id, ENABLED_WARN) ||
@ -2288,7 +2285,6 @@ port_flow_pattern_template_destroy(portid_t port_id, uint32_t n,
}
if (i == n)
tmp = &(*tmp)->next;
++c;
}
return ret;
}
@ -2368,7 +2364,6 @@ port_flow_actions_template_destroy(portid_t port_id, uint32_t n,
{
struct rte_port *port;
struct port_template **tmp;
uint32_t c = 0;
int ret = 0;
if (port_id_is_invalid(port_id, ENABLED_WARN) ||
@ -2404,7 +2399,6 @@ port_flow_actions_template_destroy(portid_t port_id, uint32_t n,
}
if (i == n)
tmp = &(*tmp)->next;
++c;
}
return ret;
}
@ -2534,7 +2528,6 @@ port_flow_template_table_destroy(portid_t port_id,
{
struct rte_port *port;
struct port_table **tmp;
uint32_t c = 0;
int ret = 0;
if (port_id_is_invalid(port_id, ENABLED_WARN) ||
@ -2571,7 +2564,6 @@ port_flow_template_table_destroy(portid_t port_id,
}
if (i == n)
tmp = &(*tmp)->next;
++c;
}
return ret;
}
@ -2719,7 +2711,6 @@ port_queue_flow_destroy(portid_t port_id, queueid_t queue_id,
struct rte_flow_op_attr op_attr = { .postpone = postpone };
struct rte_port *port;
struct port_flow **tmp;
uint32_t c = 0;
int ret = 0;
struct queue_job *job;
@ -2768,7 +2759,6 @@ port_queue_flow_destroy(portid_t port_id, queueid_t queue_id,
}
if (i == n)
tmp = &(*tmp)->next;
++c;
}
return ret;
}
@ -2836,7 +2826,6 @@ port_queue_action_handle_destroy(portid_t port_id,
const struct rte_flow_op_attr attr = { .postpone = postpone};
struct rte_port *port;
struct port_indirect_action **tmp;
uint32_t c = 0;
int ret = 0;
struct queue_job *job;
@ -2886,7 +2875,6 @@ port_queue_action_handle_destroy(portid_t port_id,
}
if (i == n)
tmp = &(*tmp)->next;
++c;
}
return ret;
}
@ -3304,7 +3292,6 @@ port_flow_destroy(portid_t port_id, uint32_t n, const uint32_t *rule)
{
struct rte_port *port;
struct port_flow **tmp;
uint32_t c = 0;
int ret = 0;
if (port_id_is_invalid(port_id, ENABLED_WARN) ||
@ -3337,7 +3324,6 @@ port_flow_destroy(portid_t port_id, uint32_t n, const uint32_t *rule)
}
if (i == n)
tmp = &(*tmp)->next;
++c;
}
return ret;
}