Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/66465/?format=api
http://patches.dpdk.org/api/patches/66465/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200309141437.11800-2-haiyue.wang@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": "<20200309141437.11800-2-haiyue.wang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200309141437.11800-2-haiyue.wang@intel.com", "date": "2020-03-09T14:14:34", "name": "[v1,1/4] net/iavf: stop the PCI probe in DCF mode", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b1cbd9c849aaa2aeba80f43068d48721c03d3bca", "submitter": { "id": 1044, "url": "http://patches.dpdk.org/api/people/1044/?format=api", "name": "Wang, Haiyue", "email": "haiyue.wang@intel.com" }, "delegate": { "id": 31221, "url": "http://patches.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200309141437.11800-2-haiyue.wang@intel.com/mbox/", "series": [ { "id": 8851, "url": "http://patches.dpdk.org/api/series/8851/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8851", "date": "2020-03-09T14:14:33", "name": "add Intel DCF PMD support", "version": 1, "mbox": "http://patches.dpdk.org/series/8851/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/66465/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/66465/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 02BE8A052E;\n\tMon, 9 Mar 2020 15:22:34 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6A07E1C0B2;\n\tMon, 9 Mar 2020 15:22:26 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id A52BE2BE6\n for <dev@dpdk.org>; Mon, 9 Mar 2020 15:22:23 +0100 (CET)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 09 Mar 2020 07:22:23 -0700", "from npg-dpdk-haiyue-1.sh.intel.com ([10.67.119.213])\n by orsmga008.jf.intel.com with ESMTP; 09 Mar 2020 07:22:21 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,533,1574150400\"; d=\"scan'208\";a=\"235704311\"", "From": "Haiyue Wang <haiyue.wang@intel.com>", "To": "dev@dpdk.org, xiaolong.ye@intel.com, qi.z.zhang@intel.com,\n qiming.yang@intel.com, beilei.xing@intel.com", "Cc": "wei.zhao1@intel.com,\n\tHaiyue Wang <haiyue.wang@intel.com>", "Date": "Mon, 9 Mar 2020 22:14:34 +0800", "Message-Id": "<20200309141437.11800-2-haiyue.wang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20200309141437.11800-1-haiyue.wang@intel.com>", "References": "<20200309141437.11800-1-haiyue.wang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v1 1/4] net/iavf: stop the PCI probe in DCF 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 <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": "A new DCF PMD will be introduced, which runs on Intel VF hardware, and\nit is a pure software design to control the advance functionality (such\nas switch, ACL) for rest of the VFs.\n\nSo if the DCF (Device Config Function) mode is specified by the devarg\n'cap=dcf', then it will stop the PCI probe in the iavf PMD.\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\n---\n drivers/net/iavf/iavf_ethdev.c | 41 ++++++++++++++++++++++++++++++++++\n 1 file changed, 41 insertions(+)", "diff": "diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c\nindex 34913f9c4..8ff26c0e7 100644\n--- a/drivers/net/iavf/iavf_ethdev.c\n+++ b/drivers/net/iavf/iavf_ethdev.c\n@@ -1416,9 +1416,49 @@ iavf_dev_uninit(struct rte_eth_dev *dev)\n \treturn 0;\n }\n \n+static int\n+handle_dcf_arg(__rte_unused const char *key, const char *value,\n+\t __rte_unused void *arg)\n+{\n+\tbool *dcf = arg;\n+\n+\tif (arg == NULL || value == NULL)\n+\t\treturn -EINVAL;\n+\n+\tif (strcmp(value, \"dcf\") == 0)\n+\t\t*dcf = true;\n+\telse\n+\t\t*dcf = false;\n+\n+\treturn 0;\n+}\n+\n+static bool\n+check_cap_dcf_enable(struct rte_devargs *devargs)\n+{\n+\tstruct rte_kvargs *kvlist;\n+\tbool enable = false;\n+\n+\tif (devargs == NULL)\n+\t\treturn false;\n+\n+\tkvlist = rte_kvargs_parse(devargs->args, NULL);\n+\tif (kvlist == NULL)\n+\t\treturn false;\n+\n+\trte_kvargs_process(kvlist, \"cap\", handle_dcf_arg, &enable);\n+\n+\trte_kvargs_free(kvlist);\n+\n+\treturn enable;\n+}\n+\n static int eth_iavf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \t\t\t struct rte_pci_device *pci_dev)\n {\n+\tif (check_cap_dcf_enable(pci_dev->device.devargs))\n+\t\treturn 1; /* continue to probe */\n+\n \treturn rte_eth_dev_pci_generic_probe(pci_dev,\n \t\tsizeof(struct iavf_adapter), iavf_dev_init);\n }\n@@ -1439,6 +1479,7 @@ static struct rte_pci_driver rte_iavf_pmd = {\n RTE_PMD_REGISTER_PCI(net_iavf, rte_iavf_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_iavf, pci_id_iavf_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_iavf, \"* igb_uio | vfio-pci\");\n+RTE_PMD_REGISTER_PARAM_STRING(net_iavf, \"cap=dcf\");\n RTE_INIT(iavf_init_log)\n {\n \tiavf_logtype_init = rte_log_register(\"pmd.net.iavf.init\");\n", "prefixes": [ "v1", "1/4" ] }{ "id": 66465, "url": "