Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/23617/?format=api
http://patches.dpdk.org/api/patches/23617/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1492080608-31084-1-git-send-email-jianfeng.tan@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": "<1492080608-31084-1-git-send-email-jianfeng.tan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1492080608-31084-1-git-send-email-jianfeng.tan@intel.com", "date": "2017-04-13T10:50:08", "name": "[dpdk-dev] net/virtio-user: fix net status report", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e36a817826f5d3b5ee349953f4d0fc2c2bfa818e", "submitter": { "id": 313, "url": "http://patches.dpdk.org/api/people/313/?format=api", "name": "Jianfeng Tan", "email": "jianfeng.tan@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1492080608-31084-1-git-send-email-jianfeng.tan@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/23617/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/23617/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 4CEDB2C6E;\n\tThu, 13 Apr 2017 12:49:24 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 521A02C6E\n\tfor <dev@dpdk.org>; Thu, 13 Apr 2017 12:49:22 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Apr 2017 03:49:21 -0700", "from dpdk06.sh.intel.com ([10.239.129.195])\n\tby fmsmga005.fm.intel.com with ESMTP; 13 Apr 2017 03:49:20 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.37,194,1488873600\"; d=\"scan'208\";a=\"88321634\"", "From": "Jianfeng Tan <jianfeng.tan@intel.com>", "To": "dev@dpdk.org", "Cc": "yuanhan.liu@linux.intel.com,\n\tJianfeng Tan <jianfeng.tan@intel.com>", "Date": "Thu, 13 Apr 2017 10:50:08 +0000", "Message-Id": "<1492080608-31084-1-git-send-email-jianfeng.tan@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dpdk-dev] [PATCH] net/virtio-user: fix net status report", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "We only enabled LSC when using vhost-user as the backend, but it is\nreported even when using vhost-kernel as the backend.\n\nFix it by only reportting LSC support when using vhost-user as the\nbackend.\n\nFixes: 37a7eb2ae816(\"net/virtio-user: support to report net status\")\n\nSigned-off-by: Jianfeng Tan <jianfeng.tan@intel.com>\n---\n drivers/net/virtio/virtio_user/virtio_user_dev.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c\nindex 299ee16..c9e8ac5 100644\n--- a/drivers/net/virtio/virtio_user/virtio_user_dev.c\n+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c\n@@ -379,7 +379,8 @@ virtio_user_dev_init(struct virtio_user_dev *dev, char *path, int queues,\n \t}\n \n \t/* The backend will not report this feature, we add it explicitly */\n-\tdev->device_features |= (1ull << VIRTIO_NET_F_STATUS);\n+\tif (is_vhost_user_by_type(dev->path))\n+\t\tdev->device_features |= (1ull << VIRTIO_NET_F_STATUS);\n \n \tdev->device_features &= VIRTIO_USER_SUPPORTED_FEATURES;\n \n", "prefixes": [ "dpdk-dev" ] }{ "id": 23617, "url": "