Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/109357/?format=api
https://patches.dpdk.org/api/patches/109357/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220407105706.18889-6-kevinx.liu@intel.com/", "project": { "id": 1, "url": "https://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": "<20220407105706.18889-6-kevinx.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220407105706.18889-6-kevinx.liu@intel.com", "date": "2022-04-07T10:56:32", "name": "[05/39] 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": "https://patches.dpdk.org/api/people/2440/?format=api", "name": "Kevin Liu", "email": "kevinx.liu@intel.com" }, "delegate": { "id": 1540, "url": "https://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220407105706.18889-6-kevinx.liu@intel.com/mbox/", "series": [ { "id": 22387, "url": "https://patches.dpdk.org/api/series/22387/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=22387", "date": "2022-04-07T10:56:27", "name": "support full function of DCF", "version": 1, "mbox": "https://patches.dpdk.org/series/22387/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/109357/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/109357/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 75206A0508;\n\tThu, 7 Apr 2022 04:58:37 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 19FC7427EB;\n\tThu, 7 Apr 2022 04:58:27 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id DB53D4286D\n for <dev@dpdk.org>; Thu, 7 Apr 2022 04:58:24 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Apr 2022 19:58:24 -0700", "from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Apr 2022 19:58:22 -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=1649300305; x=1680836305;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=HAg21Ie7KGkUTfzVHs6REN3QEDKJCuyvy8CYzTL9F7A=;\n b=AkxkhWh5rQyECR92QFBadI43OoFgJv1hCs3g52/4rs9982nU0ukSLr5s\n oddmlnttRyGBaGW10ZUZmAN6RC9ShMPD5kQWSt2ndt0kVYWnc2tWOdEu/\n cav/bU5+SZlABlrCK3qm7WqHaI1FwQkROHlQI3QmmW8WrlPPesAS/3GHU\n 28RAQEI+gKze4v8RRoIIWfQ2X1wCUc92B06mTAJiGz3NpgYZ8T+jAA52M\n Z3umAEUc7c55UTNsThn6Wo2XWeb2ksD3xSpfoeXHVTre2+iUldQkNjnr9\n LOT1Sch2my+8aZggRqx/Iy0RB5mgJtoIDwSx6TCaQRRJvgJt0VpyeOylA A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10309\"; a=\"248738319\"", "E=Sophos;i=\"5.90,241,1643702400\"; d=\"scan'208\";a=\"248738319\"", "E=Sophos;i=\"5.90,241,1643702400\"; d=\"scan'208\";a=\"570850473\"" ], "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 05/39] net/ice: add ops dev-supported-ptypes-get to dcf", "Date": "Thu, 7 Apr 2022 10:56:32 +0000", "Message-Id": "<20220407105706.18889-6-kevinx.liu@intel.com>", "X-Mailer": "git-send-email 2.33.1", "In-Reply-To": "<20220407105706.18889-1-kevinx.liu@intel.com>", "References": "<20220407105706.18889-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": [ "05/39" ] }{ "id": 109357, "url": "