app/testpmd: remove indirect RSS action query
authorMichael Baum <michaelba@nvidia.com>
Thu, 29 Apr 2021 09:55:39 +0000 (12:55 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Apr 2021 10:41:07 +0000 (12:41 +0200)
The port_action_handle_query function supports query operation for
indirect RSS action.

No driver currently supports this operation, and this support is
unnecessary.

Remove it.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
app/test-pmd/config.c

index fc057e5..803d982 100644 (file)
@@ -1626,7 +1626,6 @@ port_action_handle_query(portid_t port_id, uint32_t id)
        if (!pia)
                return -EINVAL;
        switch (pia->type) {
-       case RTE_FLOW_ACTION_TYPE_RSS:
        case RTE_FLOW_ACTION_TYPE_AGE:
                data = &default_data;
                break;
@@ -1638,12 +1637,6 @@ port_action_handle_query(portid_t port_id, uint32_t id)
        if (rte_flow_action_handle_query(port_id, pia->handle, data, &error))
                ret = port_flow_complain(&error);
        switch (pia->type) {
-       case RTE_FLOW_ACTION_TYPE_RSS:
-               if (!ret)
-                       printf("Shared RSS action:\n\trefs:%u\n",
-                              *((uint32_t *)data));
-               data = NULL;
-               break;
        case RTE_FLOW_ACTION_TYPE_AGE:
                if (!ret) {
                        struct rte_flow_query_age *resp = data;