Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/69212/?format=api
http://patchwork.dpdk.org/api/patches/69212/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200424092445.44693-5-yong.liu@intel.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": "<20200424092445.44693-5-yong.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200424092445.44693-5-yong.liu@intel.com", "date": "2020-04-24T09:24:40", "name": "[v9,4/9] net/virtio-user: add vectorized devarg", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "40d8d8a9c6caabbfa1a2935b32783738a00dfade", "submitter": { "id": 17, "url": "http://patchwork.dpdk.org/api/people/17/?format=api", "name": "Marvin Liu", "email": "yong.liu@intel.com" }, "delegate": { "id": 2642, "url": "http://patchwork.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200424092445.44693-5-yong.liu@intel.com/mbox/", "series": [ { "id": 9605, "url": "http://patchwork.dpdk.org/api/series/9605/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=9605", "date": "2020-04-24T09:24:36", "name": "add packed ring vectorized path", "version": 9, "mbox": "http://patchwork.dpdk.org/series/9605/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/69212/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/69212/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B952BA00C4;\n\tFri, 24 Apr 2020 03:50:05 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 041511C2B9;\n\tFri, 24 Apr 2020 03:49:40 +0200 (CEST)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id D28881C24F\n for <dev@dpdk.org>; Fri, 24 Apr 2020 03:49:34 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Apr 2020 18:49:34 -0700", "from npg-dpdk-virtual-marvin-dev.sh.intel.com ([10.67.119.56])\n by orsmga007.jf.intel.com with ESMTP; 23 Apr 2020 18:49:33 -0700" ], "IronPort-SDR": [ "\n +TnZdwtqZlf8aPmBJYq20aA7vaIwRUdYoLFeojUmlpwpOsvST91jspX3CyaENIXo4omyPoU5xD\n bUEUDZdEnmWw==", "\n XhFLtE4iO0EQY9kC3tSLXLNNrKfvI7epR/0o+nhq0eTxh+sCphLuKCRlxrLLplJf/nylYJr1WJ\n Ozv48n3RqWnQ==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.73,310,1583222400\"; d=\"scan'208\";a=\"245083911\"", "From": "Marvin Liu <yong.liu@intel.com>", "To": "maxime.coquelin@redhat.com, xiaolong.ye@intel.com, zhihong.wang@intel.com", "Cc": "dev@dpdk.org, harry.van.haaren@intel.com, Marvin Liu <yong.liu@intel.com>", "Date": "Fri, 24 Apr 2020 17:24:40 +0800", "Message-Id": "<20200424092445.44693-5-yong.liu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200424092445.44693-1-yong.liu@intel.com>", "References": "<20200313174230.74661-1-yong.liu@intel.com>\n <20200424092445.44693-1-yong.liu@intel.com>", "Subject": "[dpdk-dev] [PATCH v9 4/9] net/virtio-user: add vectorized devarg", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add new devarg for virtio user device vectorized path selection. By\ndefault vectorized path is disabled.\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>", "diff": "diff --git a/doc/guides/nics/virtio.rst b/doc/guides/nics/virtio.rst\nindex 902a1f0cf..d59add23e 100644\n--- a/doc/guides/nics/virtio.rst\n+++ b/doc/guides/nics/virtio.rst\n@@ -424,6 +424,12 @@ Below devargs are supported by the virtio-user vdev:\n rte_eth_link_get_nowait function.\n (Default: 10000 (10G))\n \n+#. ``vectorized``:\n+\n+ It is used to specify whether virtio device perfer to use vectorized path.\n+ Afterwards, dependencies of vectorized path will be checked in path\n+ election.\n+ (Default: 0 (disabled))\n \n Virtio paths Selection and Usage\n --------------------------------\ndiff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c\nindex 150a8d987..40ad786cc 100644\n--- a/drivers/net/virtio/virtio_user_ethdev.c\n+++ b/drivers/net/virtio/virtio_user_ethdev.c\n@@ -452,6 +452,8 @@ static const char *valid_args[] = {\n \tVIRTIO_USER_ARG_PACKED_VQ,\n #define VIRTIO_USER_ARG_SPEED \"speed\"\n \tVIRTIO_USER_ARG_SPEED,\n+#define VIRTIO_USER_ARG_VECTORIZED \"vectorized\"\n+\tVIRTIO_USER_ARG_VECTORIZED,\n \tNULL\n };\n \n@@ -559,6 +561,7 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)\n \tuint64_t mrg_rxbuf = 1;\n \tuint64_t in_order = 1;\n \tuint64_t packed_vq = 0;\n+\tuint64_t vectorized = 0;\n \tchar *path = NULL;\n \tchar *ifname = NULL;\n \tchar *mac_addr = NULL;\n@@ -675,6 +678,15 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)\n \t\t}\n \t}\n \n+\tif (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_VECTORIZED) == 1) {\n+\t\tif (rte_kvargs_process(kvlist, VIRTIO_USER_ARG_VECTORIZED,\n+\t\t\t\t &get_integer_arg, &vectorized) < 0) {\n+\t\t\tPMD_INIT_LOG(ERR, \"error to parse %s\",\n+\t\t\t\t VIRTIO_USER_ARG_VECTORIZED);\n+\t\t\tgoto end;\n+\t\t}\n+\t}\n+\n \tif (queues > 1 && cq == 0) {\n \t\tPMD_INIT_LOG(ERR, \"multi-q requires ctrl-q\");\n \t\tgoto end;\n@@ -727,6 +739,9 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)\n \t\tgoto end;\n \t}\n \n+\tif (vectorized)\n+\t\thw->use_vec_rx = 1;\n+\n \trte_eth_dev_probing_finish(eth_dev);\n \tret = 0;\n \n@@ -785,4 +800,5 @@ RTE_PMD_REGISTER_PARAM_STRING(net_virtio_user,\n \t\"mrg_rxbuf=<0|1> \"\n \t\"in_order=<0|1> \"\n \t\"packed_vq=<0|1> \"\n-\t\"speed=<int>\");\n+\t\"speed=<int> \"\n+\t\"vectorized=<0|1>\");\n", "prefixes": [ "v9", "4/9" ] }{ "id": 69212, "url": "