From patchwork Fri Oct 27 09:17:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenjing Qiao X-Patchwork-Id: 133482 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E104543214; Fri, 27 Oct 2023 11:18:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D014D40A6F; Fri, 27 Oct 2023 11:18:14 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id B94A4402CE for ; Fri, 27 Oct 2023 11:18:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698398292; x=1729934292; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=yKHuXOzw7Xqy9koSg/WXZmtjffEWmzh8wDridse+Zxo=; b=dSb1YKlTljB3i2iZb2vJG+sd0XRSzHOmSgAfkXwHkw0OjnLzd1LRbOyV PnnlQu990Q9dZN0/OYo5Zopy/zFcewOKZhMS02VMmfmZMq8vmJlErsKBN SIqFVJJR3iIBOP6Ilt60OrvoPed9LvIxEpRrIjeAYOOhQA5trPPCSkQlr dYn/O6hozTrw6NAFhQH29XjsBD4fXqpjo4LRC0NQxbTxn8QpDQ3ShXDB+ Kk+eZ/FVIhPAhk2KujRTM2F2gyy0xpcsQ6mrBzyujqbdIbdc0iN7ShInR FfQUfET3UViJQb2C5WwZESdgVC4Gaau7AGxK/4EggnUeN0tNMd5jBzj7i A==; X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="387555253" X-IronPort-AV: E=Sophos;i="6.03,255,1694761200"; d="scan'208";a="387555253" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2023 02:18:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="883136225" X-IronPort-AV: E=Sophos;i="6.03,255,1694761200"; d="scan'208";a="883136225" Received: from dpdk-wenjing-02.sh.intel.com ([10.67.119.3]) by orsmga004.jf.intel.com with ESMTP; 27 Oct 2023 02:18:10 -0700 From: wenjing.qiao@intel.com To: orika@nvidia.com Cc: qi.z.zhang@intel.com, dev@dpdk.org, cristian.dumitrescu@intel.com, Wenjing Qiao Subject: [PATCH] ethdev: fix flow API support for P4-programmable devices Date: Fri, 27 Oct 2023 09:17:43 +0000 Message-Id: <20231027091742.3755532-1-wenjing.qiao@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Wenjing Qiao "program" action should also be added in structure rte_flow_desc_action. Fixes: 8f1953f1914d ("ethdev: add flow API for P4-programmable devices") Signed-off-by: Wenjing Qiao Acked-by: Ori Kam --- lib/ethdev/rte_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c index 3a67f1aaba..4d6c28ee0e 100644 --- a/lib/ethdev/rte_flow.c +++ b/lib/ethdev/rte_flow.c @@ -267,6 +267,8 @@ static const struct rte_flow_desc_data rte_flow_desc_action[] = { MK_FLOW_ACTION(IPV6_EXT_REMOVE, sizeof(struct rte_flow_action_ipv6_ext_remove)), MK_FLOW_ACTION(INDIRECT_LIST, sizeof(struct rte_flow_action_indirect_list)), + MK_FLOW_ACTION(PROG, + sizeof(struct rte_flow_action_prog)), }; int