Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/109673/?format=api
http://patches.dpdk.org/api/patches/109673/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220413171030.2231163-6-kevinx.liu@intel.com/", "project": { "id": 1, "url": "http://patches.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": "<20220413171030.2231163-6-kevinx.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220413171030.2231163-6-kevinx.liu@intel.com", "date": "2022-04-13T17:10:13", "name": "[v3,05/22] net/ice: add ops dev-supported-ptypes-get to dcf", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a58ede0c173a6ea8dbf7baa313dcf979994ab8aa", "submitter": { "id": 2440, "url": "http://patches.dpdk.org/api/people/2440/?format=api", "name": "Kevin Liu", "email": "kevinx.liu@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220413171030.2231163-6-kevinx.liu@intel.com/mbox/", "series": [ { "id": 22498, "url": "http://patches.dpdk.org/api/series/22498/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22498", "date": "2022-04-13T17:10:08", "name": "support full function of DCF", "version": 3, "mbox": "http://patches.dpdk.org/series/22498/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/109673/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/109673/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A46CAA0508;\n\tWed, 13 Apr 2022 11:12:18 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 92B4242801;\n\tWed, 13 Apr 2022 11:12:16 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id A05304068B\n for <dev@dpdk.org>; Wed, 13 Apr 2022 11:12:14 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2022 02:11:56 -0700", "from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195])\n by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2022 02:11:54 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1649841134; x=1681377134;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=HAg21Ie7KGkUTfzVHs6REN3QEDKJCuyvy8CYzTL9F7A=;\n b=WX6avxznukgpDspROmKFjCjLJcwYRVNi0pShAhbk8GPqqO74Gcks2hBm\n HXqO7UPxAbKz9aqtDh1h5WqJN9HYwd1mUH5WL5aa9QzqT8M3MiBqBMHiR\n mdEVkfQELuJiX7QrBcChG2rm/jubdi/+tiPcMBFVqg7m0C0tvwULVUqel\n hGz3DKYs0nwvGM/U15FiMNt9Ud8+KuIPC8E8+ghDW5X1A1EVL/91ok6vj\n SkBf1vsHHnhot8Cx57T/Of91mVHNODxFOO+dFUDh4u8TMUDMsyVbnMFJs\n uCAGNwFUDhp5AMkGzuCjgLnojZQ1YSJ97g5NdsmlK9Yt2mmn3iStpCFn7 Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10315\"; a=\"262058353\"", "E=Sophos;i=\"5.90,256,1643702400\"; d=\"scan'208\";a=\"262058353\"", "E=Sophos;i=\"5.90,256,1643702400\"; d=\"scan'208\";a=\"552122744\"" ], "From": "Kevin Liu <kevinx.liu@intel.com>", "To": "dev@dpdk.org", "Cc": "qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com,\n Jie Wang <jie1x.wang@intel.com>, Kevin Liu <kevinx.liu@intel.com>", "Subject": "[PATCH v3 05/22] net/ice: add ops dev-supported-ptypes-get to dcf", "Date": "Wed, 13 Apr 2022 17:10:13 +0000", "Message-Id": "<20220413171030.2231163-6-kevinx.liu@intel.com>", "X-Mailer": "git-send-email 2.33.1", "In-Reply-To": "<20220413171030.2231163-1-kevinx.liu@intel.com>", "References": "<20220413160932.2074781-1-kevinx.liu@intel.com>\n <20220413171030.2231163-1-kevinx.liu@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Jie Wang <jie1x.wang@intel.com>\n\nadd API \"dev_supported_ptypes_get\" to dcf, that dcf pmd can get\nptypes through the new API.\n\nSigned-off-by: Jie Wang <jie1x.wang@intel.com>\nSigned-off-by: Kevin Liu <kevinx.liu@intel.com>\n---\n drivers/net/ice/ice_dcf_ethdev.c | 80 +++++++++++++++++++-------------\n 1 file changed, 49 insertions(+), 31 deletions(-)", "diff": "diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c\nindex 06d752fd61..6a577a6582 100644\n--- a/drivers/net/ice/ice_dcf_ethdev.c\n+++ b/drivers/net/ice/ice_dcf_ethdev.c\n@@ -1218,38 +1218,56 @@ ice_dcf_dev_reset(struct rte_eth_dev *dev)\n \treturn ret;\n }\n \n+static const uint32_t *\n+ice_dcf_dev_supported_ptypes_get(struct rte_eth_dev *dev __rte_unused)\n+{\n+\tstatic const uint32_t ptypes[] = {\n+\t\tRTE_PTYPE_L2_ETHER,\n+\t\tRTE_PTYPE_L3_IPV4_EXT_UNKNOWN,\n+\t\tRTE_PTYPE_L4_FRAG,\n+\t\tRTE_PTYPE_L4_ICMP,\n+\t\tRTE_PTYPE_L4_NONFRAG,\n+\t\tRTE_PTYPE_L4_SCTP,\n+\t\tRTE_PTYPE_L4_TCP,\n+\t\tRTE_PTYPE_L4_UDP,\n+\t\tRTE_PTYPE_UNKNOWN\n+\t};\n+\treturn ptypes;\n+}\n+\n static const struct eth_dev_ops ice_dcf_eth_dev_ops = {\n-\t.dev_start = ice_dcf_dev_start,\n-\t.dev_stop = ice_dcf_dev_stop,\n-\t.dev_close = ice_dcf_dev_close,\n-\t.dev_reset = ice_dcf_dev_reset,\n-\t.dev_configure = ice_dcf_dev_configure,\n-\t.dev_infos_get = ice_dcf_dev_info_get,\n-\t.rx_queue_setup = ice_rx_queue_setup,\n-\t.tx_queue_setup = ice_tx_queue_setup,\n-\t.rx_queue_release = ice_dev_rx_queue_release,\n-\t.tx_queue_release = ice_dev_tx_queue_release,\n-\t.rx_queue_start = ice_dcf_rx_queue_start,\n-\t.tx_queue_start = ice_dcf_tx_queue_start,\n-\t.rx_queue_stop = ice_dcf_rx_queue_stop,\n-\t.tx_queue_stop = ice_dcf_tx_queue_stop,\n-\t.link_update = ice_dcf_link_update,\n-\t.stats_get = ice_dcf_stats_get,\n-\t.stats_reset = ice_dcf_stats_reset,\n-\t.promiscuous_enable = ice_dcf_dev_promiscuous_enable,\n-\t.promiscuous_disable = ice_dcf_dev_promiscuous_disable,\n-\t.allmulticast_enable = ice_dcf_dev_allmulticast_enable,\n-\t.allmulticast_disable = ice_dcf_dev_allmulticast_disable,\n-\t.flow_ops_get = ice_dcf_dev_flow_ops_get,\n-\t.udp_tunnel_port_add\t = ice_dcf_dev_udp_tunnel_port_add,\n-\t.udp_tunnel_port_del\t = ice_dcf_dev_udp_tunnel_port_del,\n-\t.tm_ops_get = ice_dcf_tm_ops_get,\n-\t.reta_update = ice_dcf_dev_rss_reta_update,\n-\t.reta_query = ice_dcf_dev_rss_reta_query,\n-\t.rss_hash_update = ice_dcf_dev_rss_hash_update,\n-\t.rss_hash_conf_get = ice_dcf_dev_rss_hash_conf_get,\n-\t.tx_done_cleanup = ice_tx_done_cleanup,\n-\t.mtu_set = ice_dcf_dev_mtu_set,\n+\t.dev_start = ice_dcf_dev_start,\n+\t.dev_stop = ice_dcf_dev_stop,\n+\t.dev_close = ice_dcf_dev_close,\n+\t.dev_reset = ice_dcf_dev_reset,\n+\t.dev_configure = ice_dcf_dev_configure,\n+\t.dev_infos_get = ice_dcf_dev_info_get,\n+\t.dev_supported_ptypes_get = ice_dcf_dev_supported_ptypes_get,\n+\t.rx_queue_setup = ice_rx_queue_setup,\n+\t.tx_queue_setup = ice_tx_queue_setup,\n+\t.rx_queue_release = ice_dev_rx_queue_release,\n+\t.tx_queue_release = ice_dev_tx_queue_release,\n+\t.rx_queue_start = ice_dcf_rx_queue_start,\n+\t.tx_queue_start = ice_dcf_tx_queue_start,\n+\t.rx_queue_stop = ice_dcf_rx_queue_stop,\n+\t.tx_queue_stop = ice_dcf_tx_queue_stop,\n+\t.link_update = ice_dcf_link_update,\n+\t.stats_get = ice_dcf_stats_get,\n+\t.stats_reset = ice_dcf_stats_reset,\n+\t.promiscuous_enable = ice_dcf_dev_promiscuous_enable,\n+\t.promiscuous_disable = ice_dcf_dev_promiscuous_disable,\n+\t.allmulticast_enable = ice_dcf_dev_allmulticast_enable,\n+\t.allmulticast_disable = ice_dcf_dev_allmulticast_disable,\n+\t.flow_ops_get = ice_dcf_dev_flow_ops_get,\n+\t.udp_tunnel_port_add\t = ice_dcf_dev_udp_tunnel_port_add,\n+\t.udp_tunnel_port_del\t = ice_dcf_dev_udp_tunnel_port_del,\n+\t.tm_ops_get = ice_dcf_tm_ops_get,\n+\t.reta_update = ice_dcf_dev_rss_reta_update,\n+\t.reta_query = ice_dcf_dev_rss_reta_query,\n+\t.rss_hash_update = ice_dcf_dev_rss_hash_update,\n+\t.rss_hash_conf_get = ice_dcf_dev_rss_hash_conf_get,\n+\t.tx_done_cleanup = ice_tx_done_cleanup,\n+\t.mtu_set = ice_dcf_dev_mtu_set,\n };\n \n static int\n", "prefixes": [ "v3", "05/22" ] }{ "id": 109673, "url": "