Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/104871/?format=api
http://patchwork.dpdk.org/api/patches/104871/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20211205053041.2156629-1-baymaxhuang@gmail.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20211205053041.2156629-1-baymaxhuang@gmail.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211205053041.2156629-1-baymaxhuang@gmail.com", "date": "2021-12-05T05:30:41", "name": "[v3] net/kni: reset rte_kni_conf struct before initialization", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4a544209d21c195df84fe92ef0246290bd6dd235", "submitter": { "id": 2435, "url": "http://patchwork.dpdk.org/api/people/2435/?format=api", "name": "Harold Huang", "email": "baymaxhuang@gmail.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20211205053041.2156629-1-baymaxhuang@gmail.com/mbox/", "series": [ { "id": 20858, "url": "http://patchwork.dpdk.org/api/series/20858/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20858", "date": "2021-12-05T05:30:41", "name": "[v3] net/kni: reset rte_kni_conf struct before initialization", "version": 3, "mbox": "http://patchwork.dpdk.org/series/20858/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/104871/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/104871/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 F1103A0C47;\n\tSun, 5 Dec 2021 06:30:58 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C377B40040;\n\tSun, 5 Dec 2021 06:30:58 +0100 (CET)", "from mail-pj1-f52.google.com (mail-pj1-f52.google.com\n [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTP id 213504003C\n for <dev@dpdk.org>; Sun, 5 Dec 2021 06:30:57 +0100 (CET)", "by mail-pj1-f52.google.com with SMTP id iq11so5327504pjb.3\n for <dev@dpdk.org>; Sat, 04 Dec 2021 21:30:57 -0800 (PST)", "from localhost.localdomain ([157.255.44.217])\n by smtp.gmail.com with ESMTPSA id ms15sm6057946pjb.26.2021.12.04.21.30.55\n for <dev@dpdk.org>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 04 Dec 2021 21:30:55 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;\n h=from:to:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=yQOQ1iOf8bwFS1PFL7d8ekWAjErzsK0TMi/4PPkqVCA=;\n b=fKwyjgBXy3+VWTOohBdldRWjEjI5hftEVC4aNkEWDQAysaszBofQK6ljwFVBfxZBB4\n jke6aJspTKRiilcbdRJxzwFCU71A0KmUCauKfpUnzp8DkU5QiE3VT431oLsNCJMRnD7N\n 1NKOdc3KP61FHhZptvaLgmWWfwmuOHlaC2HE972uI0J2pSJFBCRlyFyjpjhhu/bFE+z1\n ydl5FlTPng37qnmOd1BPT78IHxJFV3Ph084T2OxpqBQNzCYCAT+VJD7KnOkMw5OIJiCZ\n 2Ww3NvLa1i/dX+Xpyy20YiIkckmQm0cditnO5pHAF0EvYTLQntMV5SXYbLfigYJDZWNX\n 00yw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=yQOQ1iOf8bwFS1PFL7d8ekWAjErzsK0TMi/4PPkqVCA=;\n b=oNu9RvVgCFWxJ+CvYy2PaG8vkNsLiYQemSNEoBjI8u4fTdBgP43d9wLBwnn8HgggmU\n A0amFYlh8H+FfS5dldoXZ85hhiFA+EvO1CeLETy6PTa1pAyxdR8Lxji4v7ZlfFm+f09y\n xKNhtgQqya94BU7Fwv2gqodJ94oNAM0NxpPx85+HedxYKe7hmNWl09sormWykEubF8r2\n cJ8sbVTNqH23CsmH0skamMakXOiXUsukG1iDP6ykui1cgMs8O3b8MdHfal17real359h\n 4v/WTyeqiTx7FfN4tnI4ZmZc0whYcIarTsINILN9rA7Qo5lPLUOw+5ELrPXb5DtL33rJ\n zrww==", "X-Gm-Message-State": "AOAM533LtVL1UcFakwCwpHfQvxxmCRLu3791TnOOOw4dNZ3CBJdTeWAj\n axtg9y3SjuTV6uAtknhpIOX1OsJiOsttpA==", "X-Google-Smtp-Source": "\n ABdhPJwqbg1hXhB/Z2pOlEjDXzGmHmrKjT/DYIXGLZnPd4YoSCmMZVFW8IFY4pIbtXFRDbvDu51znw==", "X-Received": "by 2002:a17:90b:3142:: with SMTP id\n ip2mr27112199pjb.207.1638682256077;\n Sat, 04 Dec 2021 21:30:56 -0800 (PST)", "From": "Harold Huang <baymaxhuang@gmail.com>", "To": "dev@dpdk.org", "Subject": "[PATCH v3] net/kni: reset rte_kni_conf struct before initialization", "Date": "Sun, 5 Dec 2021 13:30:41 +0800", "Message-Id": "<20211205053041.2156629-1-baymaxhuang@gmail.com>", "X-Mailer": "git-send-email 2.27.0", "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": "When kni driver calls eth_kni_start to start device, some fields such as\nmin_mtu and max_mtu of rte_kni_conf are not initialized. It will cause\nkni_ioctl_create create a kni netdevice with a random min_mtu and max_mtu\nvalue. This isunexpected and in some time we could not change the kni\ndevice mtu with ip link command.\n\nFixes: ff1e35fb5f8 (\"kni: calculate MTU from mbuf size\")\nSigned-off-by: Harold Huang <baymaxhuang@gmail.com>\n---\n drivers/net/kni/rte_eth_kni.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c\nindex c428caf441..23b15edfac 100644\n--- a/drivers/net/kni/rte_eth_kni.c\n+++ b/drivers/net/kni/rte_eth_kni.c\n@@ -128,6 +128,7 @@ eth_kni_start(struct rte_eth_dev *dev)\n \tconst char *name = dev->device->name + 4; /* remove net_ */\n \n \tmb_pool = internals->rx_queues[0].mb_pool;\n+\tmemset(&conf, 0, sizeof(conf));\n \tstrlcpy(conf.name, name, RTE_KNI_NAMESIZE);\n \tconf.force_bind = 0;\n \tconf.group_id = port_id;\n", "prefixes": [ "v3" ] }{ "id": 104871, "url": "