Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110463/?format=api
http://patches.dpdk.org/api/patches/110463/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220429091958.3103384-5-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": "<20220429091958.3103384-5-kevinx.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220429091958.3103384-5-kevinx.liu@intel.com", "date": "2022-04-29T09:19:50", "name": "[v7,04/12] net/ice: support for MTU configure in DCF mode", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "9dc3a37dd2343332ff059c6f7a864ca9b510aaee", "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/20220429091958.3103384-5-kevinx.liu@intel.com/mbox/", "series": [ { "id": 22721, "url": "http://patches.dpdk.org/api/series/22721/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22721", "date": "2022-04-29T09:19:46", "name": "complete common VF features for DCF", "version": 7, "mbox": "http://patches.dpdk.org/series/22721/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/110463/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/110463/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 9677FA0093;\n\tFri, 29 Apr 2022 03:22:46 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 118B742833;\n\tFri, 29 Apr 2022 03:22:36 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 7D8FD42824\n for <dev@dpdk.org>; Fri, 29 Apr 2022 03:22:29 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Apr 2022 18:22:29 -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 28 Apr 2022 18:22:26 -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=1651195349; x=1682731349;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=HfXaZqLdVExQqbVcF/5HisiK3yEnonzQidoM0GkTRaw=;\n b=NETt3yapTbxdXtDwo9IncinPFhhNOXXsdiXW1wE+lRlTQh7xCjZ1Nm40\n WatuHsPlUyksQIKmYnUeyF11Y1oASHJU4+6YgMYqxZ3dTyBp5v43SNyI/\n aXYKpx2wEDem9wCCKPxuufVNFk+lA7a3Y3n8r6ysS9pllb4bkl4G/YQo2\n SgEA1mR2tKpyhVt2qkD9Nd84u+WDTxn06IDaBGI7KpRALnYlPex/6kQoV\n SWyV2+CZijQaIN+UHHyi3LO1nPmqXF8F8EfeKnfmBF7tM1tgTZ/4qieEw\n Gg7NlZZdQ93Rvc+YTxne0UQAmdo9rZtDjtxj5T325T1bEPh+I7pBs0JL1 A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10331\"; a=\"266013691\"", "E=Sophos;i=\"5.91,296,1647327600\"; d=\"scan'208\";a=\"266013691\"", "E=Sophos;i=\"5.91,296,1647327600\"; d=\"scan'208\";a=\"581767833\"" ], "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 v7 04/12] net/ice: support for MTU configure in DCF mode", "Date": "Fri, 29 Apr 2022 09:19:50 +0000", "Message-Id": "<20220429091958.3103384-5-kevinx.liu@intel.com>", "X-Mailer": "git-send-email 2.33.1", "In-Reply-To": "<20220429091958.3103384-1-kevinx.liu@intel.com>", "References": "<20220427181301.1414196-1-kevinx.liu@intel.com>\n <20220429091958.3103384-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 \"mtu_set\" to dcf, and it can configure the port mtu through\ncmdline.\n\nSigned-off-by: Jie Wang <jie1x.wang@intel.com>\nSigned-off-by: Kevin Liu <kevinx.liu@intel.com>\n---\n doc/guides/nics/features/ice_dcf.ini | 1 +\n doc/guides/rel_notes/release_22_07.rst | 1 +\n drivers/net/ice/ice_dcf_ethdev.c | 14 ++++++++++++++\n drivers/net/ice/ice_dcf_ethdev.h | 6 ++++++\n 4 files changed, 22 insertions(+)", "diff": "diff --git a/doc/guides/nics/features/ice_dcf.ini b/doc/guides/nics/features/ice_dcf.ini\nindex d9c1b25407..be34ab4692 100644\n--- a/doc/guides/nics/features/ice_dcf.ini\n+++ b/doc/guides/nics/features/ice_dcf.ini\n@@ -17,6 +17,7 @@ Inner L3 checksum = P\n Inner L4 checksum = P\n RSS reta update = Y\n RSS key update = Y\n+MTU update = Y\n Basic stats = Y\n Linux = Y\n x86-32 = Y\ndiff --git a/doc/guides/rel_notes/release_22_07.rst b/doc/guides/rel_notes/release_22_07.rst\nindex 866af8c0b3..3c8412c82e 100644\n--- a/doc/guides/rel_notes/release_22_07.rst\n+++ b/doc/guides/rel_notes/release_22_07.rst\n@@ -64,6 +64,7 @@ New Features\n \n * Added support for RSS RETA configure in DCF mode.\n * Added support for RSS HASH configure in DCF mode.\n+ * Added support for MTU configure in DCF mode.\n \n Removed Items\n -------------\ndiff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c\nindex d8b5961514..06d752fd61 100644\n--- a/drivers/net/ice/ice_dcf_ethdev.c\n+++ b/drivers/net/ice/ice_dcf_ethdev.c\n@@ -1081,6 +1081,19 @@ ice_dcf_link_update(struct rte_eth_dev *dev,\n \treturn rte_eth_linkstatus_set(dev, &new_link);\n }\n \n+static int\n+ice_dcf_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu __rte_unused)\n+{\n+\t/* mtu setting is forbidden if port is start */\n+\tif (dev->data->dev_started != 0) {\n+\t\tPMD_DRV_LOG(ERR, \"port %d must be stopped before configuration\",\n+\t\t\t dev->data->port_id);\n+\t\treturn -EBUSY;\n+\t}\n+\n+\treturn 0;\n+}\n+\n bool\n ice_dcf_adminq_need_retry(struct ice_adapter *ad)\n {\n@@ -1236,6 +1249,7 @@ static const struct eth_dev_ops ice_dcf_eth_dev_ops = {\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\ndiff --git a/drivers/net/ice/ice_dcf_ethdev.h b/drivers/net/ice/ice_dcf_ethdev.h\nindex 11a1305038..f2faf26f58 100644\n--- a/drivers/net/ice/ice_dcf_ethdev.h\n+++ b/drivers/net/ice/ice_dcf_ethdev.h\n@@ -15,6 +15,12 @@\n \n #define ICE_DCF_MAX_RINGS 1\n \n+#define ICE_DCF_FRAME_SIZE_MAX 9728\n+#define ICE_DCF_VLAN_TAG_SIZE 4\n+#define ICE_DCF_ETH_OVERHEAD \\\n+\t(RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + ICE_DCF_VLAN_TAG_SIZE * 2)\n+#define ICE_DCF_ETH_MAX_LEN (RTE_ETHER_MTU + ICE_DCF_ETH_OVERHEAD)\n+\n struct ice_dcf_queue {\n \tuint64_t dummy;\n };\n", "prefixes": [ "v7", "04/12" ] }{ "id": 110463, "url": "