Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/15595/?format=api
http://patches.dpdk.org/api/patches/15595/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1472822193-107410-1-git-send-email-gmussar@ciena.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": "<1472822193-107410-1-git-send-email-gmussar@ciena.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1472822193-107410-1-git-send-email-gmussar@ciena.com", "date": "2016-09-02T13:16:33", "name": "[dpdk-dev] Tools: Fix issue with virtio interface names", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "eff1f69a79efcb7bb6afbb70428803433281f455", "submitter": { "id": 552, "url": "http://patches.dpdk.org/api/people/552/?format=api", "name": "Mussar, Gary", "email": "gmussar@ciena.com" }, "delegate": { "id": 355, "url": "http://patches.dpdk.org/api/users/355/?format=api", "username": "yliu", "first_name": "Yuanhan", "last_name": "Liu", "email": "yuanhan.liu@linux.intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1472822193-107410-1-git-send-email-gmussar@ciena.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/15595/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/15595/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 253F53990;\n\tFri, 2 Sep 2016 15:16:43 +0200 (CEST)", "from mx0a-00103a01.pphosted.com (mx0a-00103a01.pphosted.com\n\t[67.231.144.234]) by dpdk.org (Postfix) with ESMTP id 8B2BF37B4\n\tfor <dev@dpdk.org>; Fri, 2 Sep 2016 15:16:41 +0200 (CEST)", "from pps.filterd (m0000419.ppops.net [127.0.0.1])\n\tby mx0a-00103a01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id\n\tu82DDtRn008666 for <dev@dpdk.org>; Fri, 2 Sep 2016 09:16:40 -0400", "from mdwvexchht01.ciena.com (lin1-118-36-28.ciena.com\n\t[63.118.36.28])\n\tby mx0a-00103a01.pphosted.com with ESMTP id 2579329qst-3\n\t(version=TLSv1 cipher=AES128-SHA bits=128 verify=NOT)\n\tfor <dev@dpdk.org>; Fri, 02 Sep 2016 09:16:40 -0400", "from MDWVEXCHHT02.ciena.com (10.4.156.176) by\n\tMDWVEXCHHT01.ciena.com\n\t(10.4.156.175) with Microsoft SMTP Server (TLS) id 8.3.389.2;\n\tFri, 2 Sep 2016 09:16:37 -0400", "from MDVSMTP01.ciena.com (10.4.156.27) by mdwvexchht02.ciena.com\n\t(10.4.156.176) with Microsoft SMTP Server id 8.3.389.2;\n\tFri, 2 Sep 2016 09:16:37 -0400", "from onx-gmussar-01.ciena.com ([10.176.103.193]) by\n\tMDVSMTP01.ciena.com with Microsoft SMTPSVC(7.0.6002.18222);\n\tFri, 2 Sep 2016 09:16:37 -0400" ], "From": "Gary Mussar <gmussar@ciena.com>", "To": "dev@dpdk.org", "CC": "Gary Mussar <gmussar@ciena.com>", "Date": "Fri, 2 Sep 2016 09:16:33 -0400", "Message-ID": "<1472822193-107410-1-git-send-email-gmussar@ciena.com>", "X-Mailer": "git-send-email 2.1.1", "X-OriginalArrivalTime": "02 Sep 2016 13:16:37.0134 (UTC)\n\tFILETIME=[3C04DAE0:01D2051C]", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-TM-AS-Product-Ver": "SMEX-11.0.0.4179-8.000.1202-22550.007", "X-TM-AS-Result": "No--2.467900-8.000000-31", "X-TM-AS-User-Approved-Sender": "No", "X-TM-AS-User-Blocked-Sender": "No", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2016-09-02_04:, , signatures=0", "X-Proofpoint-Spam-Details": "rule=notspam policy=default score=0\n\tpriorityscore=1501 suspectscore=1\n\tmalwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015\n\timpostorscore=0 lowpriorityscore=0 adultscore=0 classifier=spam\n\tadjust=0\n\treason=mlx scancount=1 engine=8.0.1-1604210000\n\tdefinitions=main-1609020176", "Subject": "[dpdk-dev] [PATCH] Tools: Fix issue with virtio interface names", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The dpdk-devbind.py script does not find/display the ifname for virtio\ninterfaces since the \"net\" directory is not directly under the device\ndirectory but rather under a subdirectory.\neg.\n> dpdk-devbind.py --status\n0000:00:03.0 'Virtio network device' if= drv=virtio-pci unused=\n\nThis change searches for the first \"net\" directory under the device\ndirectory hierarchy.\neg.\n0000:00:03.0 'Virtio network device' if=ens3 drv=virtio-pci unused=\n\nFixes: 629395b063e8 (\"igb_uio: remove PCI id table\")\n\nSigned-off-by: Gary Mussar <gmussar@ciena.com>\n---\n tools/dpdk-devbind.py | 11 ++++++-----\n 1 file changed, 6 insertions(+), 5 deletions(-)", "diff": "diff --git a/tools/dpdk-devbind.py b/tools/dpdk-devbind.py\nindex b69ca2a..34be495 100755\n--- a/tools/dpdk-devbind.py\n+++ b/tools/dpdk-devbind.py\n@@ -221,11 +221,12 @@ def get_pci_device_details(dev_id):\n name = name.strip(\":\") + \"_str\"\n device[name] = value\n # check for a unix interface name\n- sys_path = \"/sys/bus/pci/devices/%s/net/\" % dev_id\n- if exists(sys_path):\n- device[\"Interface\"] = \",\".join(os.listdir(sys_path))\n- else:\n- device[\"Interface\"] = \"\"\n+ device[\"Interface\"] = \"\"\n+ for base, dirs, _ in os.walk(\"/sys/bus/pci/devices/%s/\" % dev_id):\n+ if \"net\" in dirs:\n+ device[\"Interface\"] = \\\n+ \",\".join(os.listdir(os.path.join(base, \"net\")))\n+ break\n # check if a port is used for ssh connection\n device[\"Ssh_if\"] = False\n device[\"Active\"] = \"\"\n", "prefixes": [ "dpdk-dev" ] }{ "id": 15595, "url": "