Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/48753/?format=api
https://patches.dpdk.org/api/patches/48753/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181213100910.13087-7-xiao.w.wang@intel.com/", "project": { "id": 1, "url": "https://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": "<20181213100910.13087-7-xiao.w.wang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181213100910.13087-7-xiao.w.wang@intel.com", "date": "2018-12-13T10:09:07", "name": "[v3,6/9] net/ifc: add devarg for LM mode", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "58e21ae1564359b2f7f20a17d91044009b8d7070", "submitter": { "id": 281, "url": "https://patches.dpdk.org/api/people/281/?format=api", "name": "Xiao Wang", "email": "xiao.w.wang@intel.com" }, "delegate": { "id": 2642, "url": "https://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181213100910.13087-7-xiao.w.wang@intel.com/mbox/", "series": [ { "id": 2755, "url": "https://patches.dpdk.org/api/series/2755/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=2755", "date": "2018-12-13T10:09:01", "name": "support SW assisted VDPA live migration", "version": 3, "mbox": "https://patches.dpdk.org/series/2755/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/48753/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/48753/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 4D7031B502;\n\tThu, 13 Dec 2018 11:19:31 +0100 (CET)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 8AA371B4E8\n\tfor <dev@dpdk.org>; Thu, 13 Dec 2018 11:19:29 +0100 (CET)", "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Dec 2018 02:19:29 -0800", "from dpdk-xiao-1.sh.intel.com ([10.67.111.145])\n\tby orsmga008.jf.intel.com with ESMTP; 13 Dec 2018 02:19:27 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.56,348,1539673200\"; d=\"scan'208\";a=\"101210442\"", "From": "Xiao Wang <xiao.w.wang@intel.com>", "To": "alejandro.lucero@netronome.com,\n\ttiwei.bie@intel.com", "Cc": "maxime.coquelin@redhat.com, dev@dpdk.org, zhihong.wang@intel.com,\n\txiaolong.ye@intel.com, Xiao Wang <xiao.w.wang@intel.com>", "Date": "Thu, 13 Dec 2018 18:09:07 +0800", "Message-Id": "<20181213100910.13087-7-xiao.w.wang@intel.com>", "X-Mailer": "git-send-email 2.15.1", "In-Reply-To": "<20181213100910.13087-1-xiao.w.wang@intel.com>", "References": "<20181213011014.110089-3-xiao.w.wang@intel.com>\n\t<20181213100910.13087-1-xiao.w.wang@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 6/9] net/ifc: add devarg for LM mode", "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": "This patch series enables a new method for live migration, i.e. software\nassisted live migration. This patch provides a device argument for user\nto choose the methold.\n\nWhen \"swlm=1\", driver/device will do live migration with a relay thread\ndealing with dirty page logging. Without this parameter, device will do\ndirty page logging and there's no relay thread consuming CPU resource.\n\nSigned-off-by: Xiao Wang <xiao.w.wang@intel.com>\n---\n drivers/net/ifc/ifcvf_vdpa.c | 13 +++++++++++++\n 1 file changed, 13 insertions(+)", "diff": "diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c\nindex c0e50354a..395c5112f 100644\n--- a/drivers/net/ifc/ifcvf_vdpa.c\n+++ b/drivers/net/ifc/ifcvf_vdpa.c\n@@ -8,6 +8,7 @@\n #include <sys/ioctl.h>\n #include <sys/epoll.h>\n #include <linux/virtio_net.h>\n+#include <stdbool.h>\n \n #include <rte_malloc.h>\n #include <rte_memory.h>\n@@ -31,9 +32,11 @@\n #endif\n \n #define IFCVF_VDPA_MODE\t\t\"vdpa\"\n+#define IFCVF_SW_FALLBACK_LM\t\"swlm\"\n \n static const char * const ifcvf_valid_arguments[] = {\n \tIFCVF_VDPA_MODE,\n+\tIFCVF_SW_FALLBACK_LM,\n \tNULL\n };\n \n@@ -56,6 +59,7 @@ struct ifcvf_internal {\n \trte_atomic32_t dev_attached;\n \trte_atomic32_t running;\n \trte_spinlock_t lock;\n+\tbool sw_lm;\n };\n \n struct internal_list {\n@@ -767,6 +771,7 @@ ifcvf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \tstruct ifcvf_internal *internal = NULL;\n \tstruct internal_list *list = NULL;\n \tint vdpa_mode = 0;\n+\tint sw_fallback_lm = 0;\n \tstruct rte_kvargs *kvlist = NULL;\n \tint ret = 0;\n \n@@ -826,6 +831,14 @@ ifcvf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \tinternal->dev_addr.type = PCI_ADDR;\n \tlist->internal = internal;\n \n+\tif (rte_kvargs_count(kvlist, IFCVF_SW_FALLBACK_LM)) {\n+\t\tret = rte_kvargs_process(kvlist, IFCVF_SW_FALLBACK_LM,\n+\t\t\t\t&open_int, &sw_fallback_lm);\n+\t\tif (ret < 0)\n+\t\t\tgoto error;\n+\t}\n+\tinternal->sw_lm = sw_fallback_lm;\n+\n \tinternal->did = rte_vdpa_register_device(&internal->dev_addr,\n \t\t\t\t&ifcvf_ops);\n \tif (internal->did < 0) {\n", "prefixes": [ "v3", "6/9" ] }{ "id": 48753, "url": "