get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/44579/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 44579,
    "url": "http://patchwork.dpdk.org/api/patches/44579/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1536675645-10105-12-git-send-email-reshma.pattan@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1536675645-10105-12-git-send-email-reshma.pattan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1536675645-10105-12-git-send-email-reshma.pattan@intel.com",
    "date": "2018-09-11T14:20:41",
    "name": "[v2,11/15] net/softnic: validate and map flow action with table action",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "60aebfa44b834d7232b0bfc3caa15bf278d1bd36",
    "submitter": {
        "id": 70,
        "url": "http://patchwork.dpdk.org/api/people/70/?format=api",
        "name": "Pattan, Reshma",
        "email": "reshma.pattan@intel.com"
    },
    "delegate": {
        "id": 10018,
        "url": "http://patchwork.dpdk.org/api/users/10018/?format=api",
        "username": "cristian_dumitrescu",
        "first_name": "Cristian",
        "last_name": "Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1536675645-10105-12-git-send-email-reshma.pattan@intel.com/mbox/",
    "series": [
        {
            "id": 1277,
            "url": "http://patchwork.dpdk.org/api/series/1277/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=1277",
            "date": "2018-09-11T14:20:41",
            "name": null,
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/1277/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/44579/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/44579/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A017C5F19;\n\tTue, 11 Sep 2018 16:21:11 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 4842858C4\n\tfor <dev@dpdk.org>; Tue, 11 Sep 2018 16:21:01 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Sep 2018 07:21:00 -0700",
            "from sivswdev02.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.46])\n\tby fmsmga007.fm.intel.com with ESMTP; 11 Sep 2018 07:21:00 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.53,360,1531810800\"; d=\"scan'208\";a=\"69156906\"",
        "From": "Reshma Pattan <reshma.pattan@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>,\n\tReshma Pattan <reshma.pattan@intel.com>",
        "Date": "Tue, 11 Sep 2018 15:20:41 +0100",
        "Message-Id": "<1536675645-10105-12-git-send-email-reshma.pattan@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": "<1536251222-17275-1-git-send-email-reshma.pattan@intel.com>",
        "References": "<1536251222-17275-1-git-send-email-reshma.pattan@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 11/15] net/softnic: validate and map flow\n\taction with table action",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Added validation and mapping of flow rule action\nwith table action profile.\n\nAdded flow_rule_action_get() to do the same.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Reshma Pattan <reshma.pattan@intel.com>\n---\n drivers/net/softnic/rte_eth_softnic_flow.c | 350 +++++++++++++++++++++++++++++\n 1 file changed, 350 insertions(+)",
    "diff": "diff --git a/drivers/net/softnic/rte_eth_softnic_flow.c b/drivers/net/softnic/rte_eth_softnic_flow.c\nindex dc3dd493b..16f1e4730 100644\n--- a/drivers/net/softnic/rte_eth_softnic_flow.c\n+++ b/drivers/net/softnic/rte_eth_softnic_flow.c\n@@ -1009,6 +1009,8 @@ flow_rule_match_get(struct pmd_internals *softnic,\n \t\t\trule_match,\n \t\t\terror);\n \n+\t\t/* FALLTHROUGH */\n+\n \tdefault:\n \t\treturn rte_flow_error_set(error,\n \t\t\tENOTSUP,\n@@ -1018,6 +1020,341 @@ flow_rule_match_get(struct pmd_internals *softnic,\n \t}\n }\n \n+static int\n+flow_rule_action_get(struct pmd_internals *softnic,\n+\tstruct pipeline *pipeline,\n+\tstruct softnic_table *table,\n+\tconst struct rte_flow_attr *attr,\n+\tconst struct rte_flow_action *action,\n+\tstruct softnic_table_rule_action *rule_action,\n+\tstruct rte_flow_error *error __rte_unused)\n+{\n+\tstruct softnic_table_action_profile *profile;\n+\tstruct softnic_table_action_profile_params *params;\n+\tint n_jump_queue_rss_drop = 0;\n+\tint n_count = 0;\n+\n+\tprofile = softnic_table_action_profile_find(softnic,\n+\t\ttable->params.action_profile_name);\n+\tif (profile == NULL)\n+\t\treturn rte_flow_error_set(error,\n+\t\t\tEINVAL,\n+\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\taction,\n+\t\t\t\"JUMP: Table action profile\");\n+\n+\tparams = &profile->params;\n+\n+\tfor ( ; action->type != RTE_FLOW_ACTION_TYPE_END; action++) {\n+\t\tif (action->type == RTE_FLOW_ACTION_TYPE_VOID)\n+\t\t\tcontinue;\n+\n+\t\tswitch (action->type) {\n+\t\tcase RTE_FLOW_ACTION_TYPE_JUMP:\n+\t\t{\n+\t\t\tconst struct rte_flow_action_jump *conf = action->conf;\n+\t\t\tstruct flow_attr_map *map;\n+\n+\t\t\tif (conf == NULL)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"JUMP: Null configuration\");\n+\n+\t\t\tif (n_jump_queue_rss_drop)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"Only one termination action is\"\n+\t\t\t\t\t\" allowed per flow\");\n+\n+\t\t\tif ((params->action_mask &\n+\t\t\t\t(1LLU << RTE_TABLE_ACTION_FWD)) == 0)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\tNULL,\n+\t\t\t\t\t\"JUMP action not enabled for this table\");\n+\n+\t\t\tn_jump_queue_rss_drop = 1;\n+\n+\t\t\tmap = flow_attr_map_get(softnic,\n+\t\t\t\tconf->group,\n+\t\t\t\tattr->ingress);\n+\t\t\tif (map == NULL || map->valid == 0)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\tNULL,\n+\t\t\t\t\t\"JUMP: Invalid group mapping\");\n+\n+\t\t\tif (strcmp(pipeline->name, map->pipeline_name) != 0)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tENOTSUP,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\tNULL,\n+\t\t\t\t\t\"JUMP: Jump to table in different pipeline\");\n+\n+\t\t\t/* RTE_TABLE_ACTION_FWD */\n+\t\t\trule_action->fwd.action = RTE_PIPELINE_ACTION_TABLE;\n+\t\t\trule_action->fwd.id = map->table_id;\n+\t\t\trule_action->action_mask |= 1 << RTE_TABLE_ACTION_FWD;\n+\t\t\tbreak;\n+\t\t} /* RTE_FLOW_ACTION_TYPE_JUMP */\n+\n+\t\tcase RTE_FLOW_ACTION_TYPE_QUEUE:\n+\t\t{\n+\t\t\tchar name[NAME_SIZE];\n+\t\t\tstruct rte_eth_dev *dev;\n+\t\t\tconst struct rte_flow_action_queue *conf = action->conf;\n+\t\t\tuint32_t port_id;\n+\t\t\tint status;\n+\n+\t\t\tif (conf == NULL)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"QUEUE: Null configuration\");\n+\n+\t\t\tif (n_jump_queue_rss_drop)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"Only one termination action is allowed\"\n+\t\t\t\t\t\" per flow\");\n+\n+\t\t\tif ((params->action_mask &\n+\t\t\t\t(1LLU << RTE_TABLE_ACTION_FWD)) == 0)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\tNULL,\n+\t\t\t\t\t\"QUEUE action not enabled for this table\");\n+\n+\t\t\tn_jump_queue_rss_drop = 1;\n+\n+\t\t\tdev = ETHDEV(softnic);\n+\t\t\tif (dev == NULL ||\n+\t\t\t\tconf->index >= dev->data->nb_rx_queues)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"QUEUE: Invalid RX queue ID\");\n+\n+\t\t\tsprintf(name, \"RXQ%u\", (uint32_t)conf->index);\n+\n+\t\t\tstatus = softnic_pipeline_port_out_find(softnic,\n+\t\t\t\tpipeline->name,\n+\t\t\t\tname,\n+\t\t\t\t&port_id);\n+\t\t\tif (status)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tENOTSUP,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"QUEUE: RX queue not accessible from this pipeline\");\n+\n+\t\t\t/* RTE_TABLE_ACTION_FWD */\n+\t\t\trule_action->fwd.action = RTE_PIPELINE_ACTION_PORT;\n+\t\t\trule_action->fwd.id = port_id;\n+\t\t\trule_action->action_mask |= 1 << RTE_TABLE_ACTION_FWD;\n+\t\t\tbreak;\n+\t\t} /*RTE_FLOW_ACTION_TYPE_QUEUE */\n+\n+\t\tcase RTE_FLOW_ACTION_TYPE_RSS:\n+\t\t{\n+\t\t\tconst struct rte_flow_action_rss *conf = action->conf;\n+\t\t\tuint32_t i;\n+\n+\t\t\tif (conf == NULL)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"RSS: Null configuration\");\n+\n+\t\t\tif (!rte_is_power_of_2(conf->queue_num))\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION_CONF,\n+\t\t\t\t\tconf,\n+\t\t\t\t\t\"RSS: Number of queues must be a power of 2\");\n+\n+\t\t\tif (conf->queue_num > RTE_DIM(rule_action->lb.out))\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION_CONF,\n+\t\t\t\t\tconf,\n+\t\t\t\t\t\"RSS: Number of queues too big\");\n+\n+\t\t\tif (n_jump_queue_rss_drop)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"Only one termination action is allowed per flow\");\n+\n+\t\t\tif (((params->action_mask &\n+\t\t\t\t(1LLU << RTE_TABLE_ACTION_FWD)) == 0) ||\n+\t\t\t\t((params->action_mask &\n+\t\t\t\t(1LLU << RTE_TABLE_ACTION_LB)) == 0))\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tENOTSUP,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\tNULL,\n+\t\t\t\t\t\"RSS action not supported by this table\");\n+\n+\t\t\tif (params->lb.out_offset !=\n+\t\t\t\tpipeline->params.offset_port_id)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\tNULL,\n+\t\t\t\t\t\"RSS action not supported by this pipeline\");\n+\n+\t\t\tn_jump_queue_rss_drop = 1;\n+\n+\t\t\t/* RTE_TABLE_ACTION_LB */\n+\t\t\tfor (i = 0; i < conf->queue_num; i++) {\n+\t\t\t\tchar name[NAME_SIZE];\n+\t\t\t\tstruct rte_eth_dev *dev;\n+\t\t\t\tuint32_t port_id;\n+\t\t\t\tint status;\n+\n+\t\t\t\tdev = ETHDEV(softnic);\n+\t\t\t\tif (dev == NULL ||\n+\t\t\t\t\tconf->queue[i] >=\n+\t\t\t\t\t\tdev->data->nb_rx_queues)\n+\t\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\t\tEINVAL,\n+\t\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t\taction,\n+\t\t\t\t\t\t\"RSS: Invalid RX queue ID\");\n+\n+\t\t\t\tsprintf(name, \"RXQ%u\",\n+\t\t\t\t\t(uint32_t)conf->queue[i]);\n+\n+\t\t\t\tstatus = softnic_pipeline_port_out_find(softnic,\n+\t\t\t\t\tpipeline->name,\n+\t\t\t\t\tname,\n+\t\t\t\t\t&port_id);\n+\t\t\t\tif (status)\n+\t\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\t\tENOTSUP,\n+\t\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t\taction,\n+\t\t\t\t\t\t\"RSS: RX queue not accessible from this pipeline\");\n+\n+\t\t\t\trule_action->lb.out[i] = port_id;\n+\t\t\t}\n+\n+\t\t\tfor ( ; i < RTE_DIM(rule_action->lb.out); i++)\n+\t\t\t\trule_action->lb.out[i] =\n+\t\t\t\trule_action->lb.out[i % conf->queue_num];\n+\n+\t\t\trule_action->action_mask |= 1 << RTE_TABLE_ACTION_LB;\n+\n+\t\t\t/* RTE_TABLE_ACTION_FWD */\n+\t\t\trule_action->fwd.action = RTE_PIPELINE_ACTION_PORT_META;\n+\t\t\trule_action->action_mask |= 1 << RTE_TABLE_ACTION_FWD;\n+\t\t\tbreak;\n+\t\t} /* RTE_FLOW_ACTION_TYPE_RSS */\n+\n+\t\tcase RTE_FLOW_ACTION_TYPE_DROP:\n+\t\t{\n+\t\t\tconst void *conf = action->conf;\n+\n+\t\t\tif (conf != NULL)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"DROP: No configuration required\");\n+\n+\t\t\tif (n_jump_queue_rss_drop)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"Only one termination action is allowed per flow\");\n+\t\t\tif ((params->action_mask &\n+\t\t\t\t(1LLU << RTE_TABLE_ACTION_FWD)) == 0)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tENOTSUP,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\tNULL,\n+\t\t\t\t\t\"DROP action not supported by this table\");\n+\n+\t\t\tn_jump_queue_rss_drop = 1;\n+\n+\t\t\t/* RTE_TABLE_ACTION_FWD */\n+\t\t\trule_action->fwd.action = RTE_PIPELINE_ACTION_DROP;\n+\t\t\trule_action->action_mask |= 1 << RTE_TABLE_ACTION_FWD;\n+\t\t\tbreak;\n+\t\t} /* RTE_FLOW_ACTION_TYPE_DROP */\n+\n+\t\tcase RTE_FLOW_ACTION_TYPE_COUNT:\n+\t\t{\n+\t\t\tconst struct rte_flow_action_count *conf = action->conf;\n+\n+\t\t\tif (conf == NULL)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tEINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"COUNT: Null configuration\");\n+\n+\t\t\tif (conf->shared)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tENOTSUP,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION_CONF,\n+\t\t\t\t\tconf,\n+\t\t\t\t\t\"COUNT: Shared counters not supported\");\n+\n+\t\t\tif (n_count)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tENOTSUP,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\taction,\n+\t\t\t\t\t\"Only one COUNT action per flow\");\n+\n+\t\t\tif ((params->action_mask &\n+\t\t\t\t(1LLU << RTE_TABLE_ACTION_STATS)) == 0)\n+\t\t\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\tENOTSUP,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\tNULL,\n+\t\t\t\t\t\"COUNT action not supported by this table\");\n+\n+\t\t\tn_count = 1;\n+\n+\t\t\t/* RTE_TABLE_ACTION_STATS */\n+\t\t\trule_action->stats.n_packets = 0;\n+\t\t\trule_action->stats.n_bytes = 0;\n+\t\t\trule_action->action_mask |= 1 << RTE_TABLE_ACTION_STATS;\n+\t\t\tbreak;\n+\t\t} /* RTE_FLOW_ACTION_TYPE_COUNT */\n+\n+\t\tdefault:\n+\t\t\treturn -ENOTSUP;\n+\t\t}\n+\t}\n+\n+\tif (n_jump_queue_rss_drop == 0)\n+\t\treturn rte_flow_error_set(error,\n+\t\t\tEINVAL,\n+\t\t\tRTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\taction,\n+\t\t\t\"Flow does not have any terminating action\");\n+\n+\treturn 0;\n+}\n+\n static int\n pmd_flow_validate(struct rte_eth_dev *dev,\n \t\tconst struct rte_flow_attr *attr,\n@@ -1026,6 +1363,7 @@ pmd_flow_validate(struct rte_eth_dev *dev,\n \t\tstruct rte_flow_error *error)\n {\n \tstruct softnic_table_rule_match rule_match;\n+\tstruct softnic_table_rule_action rule_action;\n \n \tstruct pmd_internals *softnic = dev->data->dev_private;\n \tstruct pipeline *pipeline;\n@@ -1090,6 +1428,18 @@ pmd_flow_validate(struct rte_eth_dev *dev,\n \tif (status)\n \t\treturn status;\n \n+\t/* Rule action. */\n+\tmemset(&rule_action, 0, sizeof(rule_action));\n+\tstatus = flow_rule_action_get(softnic,\n+\t\tpipeline,\n+\t\ttable,\n+\t\tattr,\n+\t\taction,\n+\t\t&rule_action,\n+\t\terror);\n+\tif (status)\n+\t\treturn status;\n+\n \treturn 0;\n }\n \n",
    "prefixes": [
        "v2",
        "11/15"
    ]
}