Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52865/?format=api
http://patches.dpdk.org/api/patches/52865/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190417134946.1250-3-xiaolong.ye@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": "<20190417134946.1250-3-xiaolong.ye@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190417134946.1250-3-xiaolong.ye@intel.com", "date": "2019-04-17T13:49:44", "name": "[v4,2/4] net/af_xdp: specify minimal and maximal MTU", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "1def55beee7d0cc9b992a4d661551c789b06ba31", "submitter": { "id": 1120, "url": "http://patches.dpdk.org/api/people/1120/?format=api", "name": "Xiaolong Ye", "email": "xiaolong.ye@intel.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190417134946.1250-3-xiaolong.ye@intel.com/mbox/", "series": [ { "id": 4351, "url": "http://patches.dpdk.org/api/series/4351/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4351", "date": "2019-04-17T13:49:42", "name": "some fixes for AF_XDP pmd", "version": 4, "mbox": "http://patches.dpdk.org/series/4351/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/52865/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/52865/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 604C71B698;\n\tWed, 17 Apr 2019 15:55:43 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id D7FB81B642\n\tfor <dev@dpdk.org>; Wed, 17 Apr 2019 15:55:38 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t17 Apr 2019 06:55:38 -0700", "from yexl-server.sh.intel.com ([10.67.110.206])\n\tby orsmga002.jf.intel.com with ESMTP; 17 Apr 2019 06:55:37 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.60,362,1549958400\"; d=\"scan'208\";a=\"151639766\"", "From": "Xiaolong Ye <xiaolong.ye@intel.com>", "To": "dev@dpdk.org, Ferruh Yigit <ferruh.yigit@intel.com>,\n\tDavid Marchand <david.marchand@redhat.com>", "Cc": "Qi Zhang <qi.z.zhang@intel.com>,\n\tKarlsson Magnus <magnus.karlsson@intel.com>,\n\tTopel Bjorn <bjorn.topel@intel.com>, Xiaolong Ye <xiaolong.ye@intel.com>", "Date": "Wed, 17 Apr 2019 21:49:44 +0800", "Message-Id": "<20190417134946.1250-3-xiaolong.ye@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190417134946.1250-1-xiaolong.ye@intel.com>", "References": "<CAJFAV8y=fHuFWrbuH7fHB3kAHxiQMexmPSKvN+4v1nKVv3QAcg@mail.gmail.com>\n\t<20190417134946.1250-1-xiaolong.ye@intel.com>", "Subject": "[dpdk-dev] [PATCH v4 2/4] net/af_xdp: specify minimal and maximal\n\tMTU", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Properly report mtu capability in port device info.\n\nReported-by: David Marchand <david.marchand@redhat.com>\nReviewed-by: David Marchand <david.marchand@redhat.com>\nSigned-off-by: Xiaolong Ye <xiaolong.ye@intel.com>\n---\n drivers/net/af_xdp/rte_eth_af_xdp.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c\nindex 5cc643ce2..c46916bbe 100644\n--- a/drivers/net/af_xdp/rte_eth_af_xdp.c\n+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c\n@@ -351,6 +351,9 @@ eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \tdev_info->max_rx_queues = 1;\n \tdev_info->max_tx_queues = 1;\n \n+\tdev_info->min_mtu = ETHER_MIN_MTU;\n+\tdev_info->max_mtu = ETH_AF_XDP_FRAME_SIZE - ETH_AF_XDP_DATA_HEADROOM;\n+\n \tdev_info->default_rxportconf.nb_queues = 1;\n \tdev_info->default_txportconf.nb_queues = 1;\n \tdev_info->default_rxportconf.ring_size = ETH_AF_XDP_DFLT_NUM_DESCS;\n", "prefixes": [ "v4", "2/4" ] }{ "id": 52865, "url": "