Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/126071/?format=api
http://patches.dpdk.org/api/patches/126071/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230414054744.1399735-6-wenjun1.wu@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": "<20230414054744.1399735-6-wenjun1.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230414054744.1399735-6-wenjun1.wu@intel.com", "date": "2023-04-14T05:47:44", "name": "[v2,5/5] net/cpfl: fix Rx data buffer size", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "77035c277559a1a309a5ac0269f9e45f3b8744c3", "submitter": { "id": 2083, "url": "http://patches.dpdk.org/api/people/2083/?format=api", "name": "Wenjun Wu", "email": "wenjun1.wu@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/20230414054744.1399735-6-wenjun1.wu@intel.com/mbox/", "series": [ { "id": 27706, "url": "http://patches.dpdk.org/api/series/27706/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27706", "date": "2023-04-14T05:47:39", "name": "fix Rx data buffer size", "version": 2, "mbox": "http://patches.dpdk.org/series/27706/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/126071/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/126071/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 F1BFD4293B;\n\tFri, 14 Apr 2023 07:48:24 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 106BC42D46;\n\tFri, 14 Apr 2023 07:48:13 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id F2B6F42D63;\n Fri, 14 Apr 2023 07:48:10 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2023 22:48:10 -0700", "from dpdk-wuwenjun-icelake-ii.sh.intel.com ([10.67.110.157])\n by FMSMGA003.fm.intel.com with ESMTP; 13 Apr 2023 22:48:08 -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=1681451290; x=1712987290;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=UaxuG/FWmt1NJZZLb3P1e+166VwJSRISFD01OkjbpFg=;\n b=Xp1iOEG0QbjEul3FNzyu4odhYWmc56yU5nDqHPCIB5A9VnzlaW31wvEK\n aILG1ioo208/LFCzonOqdfOMSjF3XWQIwM9NUFsfsOMgAMj7dd5jU//ol\n amwh6NInRA/cKFZvCXwLAcodEo4s7Uenv0M8GptQotXqiMMJJU+yXAcV3\n Ur5a+N3G09qC5mZcPl9ZHXfdIRgsZjEZ9RxqRAmVeLCmwkmKDh70Dmfz0\n rrx5DJMSHek0t6glia+TJ4o6i8Mk3Gsab67OoyYp1IHZTd9mSSTZHmaQ9\n 2OWBwcHgmAlEVUzA/ttCAvXY/ebCvDN+/w5In1DVBYoU7UdLF90Mm72JR Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10679\"; a=\"343150159\"", "E=Sophos;i=\"5.99,195,1677571200\"; d=\"scan'208\";a=\"343150159\"", "E=McAfee;i=\"6600,9927,10679\"; a=\"779060383\"", "E=Sophos;i=\"5.99,195,1677571200\"; d=\"scan'208\";a=\"779060383\"" ], "X-ExtLoop1": "1", "From": "Wenjun Wu <wenjun1.wu@intel.com>", "To": "dev@dpdk.org, Yuying.Zhang@intel.com, beilei.xing@intel.com,\n jingjing.wu@intel.com, qiming.yang@intel.com, qi.z.zhang@intel.com", "Cc": "Wenjun Wu <wenjun1.wu@intel.com>,\n\tstable@dpdk.org", "Subject": "[PATCH v2 5/5] net/cpfl: fix Rx data buffer size", "Date": "Fri, 14 Apr 2023 13:47:44 +0800", "Message-Id": "<20230414054744.1399735-6-wenjun1.wu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230414054744.1399735-1-wenjun1.wu@intel.com>", "References": "<20230414035151.1377726-1-wenjun1.wu@intel.com>\n <20230414054744.1399735-1-wenjun1.wu@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": "This patch does two fixes.\n\n1. No matter what the mbuf size is, the data buffer size should not\nbe greater than 16K - 128.\n\n2. Align data buffer size to 128.\n\nFixes: 119834846e93 (\"net/cpfl: support Rx queue setup\")\nCc: stable@dpdk.org\n\nSigned-off-by: Wenjun Wu <wenjun1.wu@intel.com>\n---\n drivers/net/cpfl/cpfl_rxtx.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c\nindex de59b31b3d..75021c3c54 100644\n--- a/drivers/net/cpfl/cpfl_rxtx.c\n+++ b/drivers/net/cpfl/cpfl_rxtx.c\n@@ -155,7 +155,8 @@ cpfl_rx_split_bufq_setup(struct rte_eth_dev *dev, struct idpf_rx_queue *rxq,\n \tbufq->adapter = base;\n \n \tlen = rte_pktmbuf_data_room_size(bufq->mp) - RTE_PKTMBUF_HEADROOM;\n-\tbufq->rx_buf_len = len;\n+\tbufq->rx_buf_len = RTE_ALIGN_FLOOR(len, (1 << IDPF_RLAN_CTX_DBUF_S));\n+\tbufq->rx_buf_len = RTE_MIN(bufq->rx_buf_len, IDPF_RX_MAX_DATA_BUF_SIZE);\n \n \t/* Allocate a little more to support bulk allocate. */\n \tlen = nb_desc + IDPF_RX_MAX_BURST;\n", "prefixes": [ "v2", "5/5" ] }{ "id": 126071, "url": "