Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/10663/?format=api
http://patches.dpdk.org/api/patches/10663/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1455806076-18497-31-git-send-email-helin.zhang@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": "<1455806076-18497-31-git-send-email-helin.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1455806076-18497-31-git-send-email-helin.zhang@intel.com", "date": "2016-02-18T14:34:36", "name": "[dpdk-dev,v3,30/30] i40evf: use base driver defined interface", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "60284aad4f2908df08752a953243a771f6e74d2d", "submitter": { "id": 14, "url": "http://patches.dpdk.org/api/people/14/?format=api", "name": "Zhang, Helin", "email": "helin.zhang@intel.com" }, "delegate": { "id": 10, "url": "http://patches.dpdk.org/api/users/10/?format=api", "username": "bruce", "first_name": "Bruce", "last_name": "Richardson", "email": "bruce.richardson@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1455806076-18497-31-git-send-email-helin.zhang@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/10663/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/10663/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 43811C568;\n\tThu, 18 Feb 2016 15:35:53 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id BD859C554\n\tfor <dev@dpdk.org>; Thu, 18 Feb 2016 15:35:50 +0100 (CET)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga104.fm.intel.com with ESMTP; 18 Feb 2016 06:35:49 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga002.fm.intel.com with ESMTP; 18 Feb 2016 06:35:47 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id u1IEZjOW020328;\n\tThu, 18 Feb 2016 22:35:45 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid u1IEZgl6018750; Thu, 18 Feb 2016 22:35:44 +0800", "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u1IEZg8q018746; \n\tThu, 18 Feb 2016 22:35:42 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.22,465,1449561600\"; d=\"scan'208\";a=\"918505794\"", "From": "Helin Zhang <helin.zhang@intel.com>", "To": "dev@dpdk.org", "Date": "Thu, 18 Feb 2016 22:34:36 +0800", "Message-Id": "<1455806076-18497-31-git-send-email-helin.zhang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1455806076-18497-1-git-send-email-helin.zhang@intel.com>", "References": "<1455776683-11790-1-git-send-email-helin.zhang@intel.com>\n\t<1455806076-18497-1-git-send-email-helin.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 30/30] i40evf: use base driver defined\n\tinterface", "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": "It removes the i40evf_set_mac_type() defined in PMD, and reuses\ni40e_set_mac_type() defined in base driver.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n drivers/net/i40e/i40e_ethdev_vf.c | 22 +---------------------\n 1 file changed, 1 insertion(+), 21 deletions(-)", "diff": "diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c\nindex bd5c091..4fdbdf3 100644\n--- a/drivers/net/i40e/i40e_ethdev_vf.c\n+++ b/drivers/net/i40e/i40e_ethdev_vf.c\n@@ -216,26 +216,6 @@ static const struct eth_dev_ops i40evf_eth_dev_ops = {\n \t.rss_hash_conf_get = i40evf_dev_rss_hash_conf_get,\n };\n \n-static int\n-i40evf_set_mac_type(struct i40e_hw *hw)\n-{\n-\tint status = I40E_ERR_DEVICE_NOT_SUPPORTED;\n-\n-\tif (hw->vendor_id == I40E_INTEL_VENDOR_ID) {\n-\t\tswitch (hw->device_id) {\n-\t\tcase I40E_DEV_ID_VF:\n-\t\tcase I40E_DEV_ID_VF_HV:\n-\t\t\thw->mac.type = I40E_MAC_VF;\n-\t\t\tstatus = I40E_SUCCESS;\n-\t\t\tbreak;\n-\t\tdefault:\n-\t\t\t;\n-\t\t}\n-\t}\n-\n-\treturn status;\n-}\n-\n /*\n * Parse admin queue message.\n *\n@@ -1183,7 +1163,7 @@ i40evf_init_vf(struct rte_eth_dev *dev)\n \n \tvf->adapter = I40E_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private);\n \tvf->dev_data = dev->data;\n-\terr = i40evf_set_mac_type(hw);\n+\terr = i40e_set_mac_type(hw);\n \tif (err) {\n \t\tPMD_INIT_LOG(ERR, \"set_mac_type failed: %d\", err);\n \t\tgoto err;\n", "prefixes": [ "dpdk-dev", "v3", "30/30" ] }{ "id": 10663, "url": "