Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/54318/?format=api
http://patches.dpdk.org/api/patches/54318/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190604054248.68510-43-leyi.rong@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": "<20190604054248.68510-43-leyi.rong@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190604054248.68510-43-leyi.rong@intel.com", "date": "2019-06-04T05:42:41", "name": "[42/49] net/ice/base: change how VMDq capability is wrapped", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1d0846d090bd3fb0db57ad99604381613d7cb603", "submitter": { "id": 1204, "url": "http://patches.dpdk.org/api/people/1204/?format=api", "name": "Leyi Rong", "email": "leyi.rong@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190604054248.68510-43-leyi.rong@intel.com/mbox/", "series": [ { "id": 4879, "url": "http://patches.dpdk.org/api/series/4879/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4879", "date": "2019-06-04T05:41:59", "name": "shared code update", "version": 1, "mbox": "http://patches.dpdk.org/series/4879/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/54318/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/54318/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 657EC1BC85;\n\tTue, 4 Jun 2019 07:45:28 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 7AFA71B9E4\n\tfor <dev@dpdk.org>; Tue, 4 Jun 2019 07:44:41 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Jun 2019 22:44:41 -0700", "from lrong-srv-03.sh.intel.com ([10.67.119.177])\n\tby fmsmga008.fm.intel.com with ESMTP; 03 Jun 2019 22:44:40 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Leyi Rong <leyi.rong@intel.com>", "To": "qi.z.zhang@intel.com", "Cc": "dev@dpdk.org, Leyi Rong <leyi.rong@intel.com>,\n\tAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>,\n\tPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>", "Date": "Tue, 4 Jun 2019 13:42:41 +0800", "Message-Id": "<20190604054248.68510-43-leyi.rong@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190604054248.68510-1-leyi.rong@intel.com>", "References": "<20190604054248.68510-1-leyi.rong@intel.com>", "Subject": "[dpdk-dev] [PATCH 42/49] net/ice/base: change how VMDq capability\n\tis wrapped", "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 exposes the VMDq capability when at least one among\nVMDQ_SUPPORT, OFFLOAD_MACVLAN_SUPPORT or ADQ_SUPPORT (ADQ uses\nVMDQ as well) is defined.\n\nSigned-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Leyi Rong <leyi.rong@intel.com>\n---\n drivers/net/ice/base/ice_adminq_cmd.h | 3 +++\n drivers/net/ice/base/ice_common.c | 7 +++++++\n drivers/net/ice/base/ice_type.h | 8 ++++++++\n 3 files changed, 18 insertions(+)", "diff": "diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h\nindex 4e6bce18c..7642a923b 100644\n--- a/drivers/net/ice/base/ice_adminq_cmd.h\n+++ b/drivers/net/ice/base/ice_adminq_cmd.h\n@@ -111,6 +111,9 @@ struct ice_aqc_list_caps_elem {\n \t__le16 cap;\n #define ICE_AQC_CAPS_VALID_FUNCTIONS\t\t\t0x0005\n #define ICE_AQC_MAX_VALID_FUNCTIONS\t\t\t0x8\n+#if defined(VMDQ_SUPPORT) || defined(OFFLOAD_MACVLAN_SUPPORT) || defined(ADQ_SUPPORT) || defined(FW_SUPPORT)\n+#define ICE_AQC_CAPS_VMDQ\t\t\t\t0x0014\n+#endif /* VMDQ_SUPPORT || OFFLOAD_MACVLAN_SUPPORT || ADQ_SUPPORT || FW_SUPPORT */\n #define ICE_AQC_CAPS_VSI\t\t\t\t0x0017\n #define ICE_AQC_CAPS_DCB\t\t\t\t0x0018\n #define ICE_AQC_CAPS_RSS\t\t\t\t0x0040\ndiff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c\nindex f9a5d43e6..1d54f3d71 100644\n--- a/drivers/net/ice/base/ice_common.c\n+++ b/drivers/net/ice/base/ice_common.c\n@@ -1980,6 +1980,13 @@ ice_parse_caps(struct ice_hw *hw, void *buf, u32 cap_count,\n \t\t\t\t \"%s: valid functions = %d\\n\", prefix,\n \t\t\t\t caps->valid_functions);\n \t\t\tbreak;\n+#if defined(VMDQ_SUPPORT) || defined(OFFLOAD_MACVLAN_SUPPORT) || defined(ADQ_SUPPORT)\n+\t\tcase ICE_AQC_CAPS_VMDQ:\n+\t\t\tcaps->vmdq = (number == 1);\n+\t\t\tice_debug(hw, ICE_DBG_INIT,\n+\t\t\t\t \"%s: VMDQ = %d\\n\", prefix, caps->vmdq);\n+\t\t\tbreak;\n+#endif /* VMDQ_SUPPORT || OFFLOAD_MACVLAN_SUPPORT || ADQ_SUPPORT */\n \t\tcase ICE_AQC_CAPS_VSI:\n \t\t\tif (dev_p) {\n \t\t\t\tdev_p->num_vsi_allocd_to_host = number;\ndiff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h\nindex f76be2b58..f30b37985 100644\n--- a/drivers/net/ice/base/ice_type.h\n+++ b/drivers/net/ice/base/ice_type.h\n@@ -207,6 +207,9 @@ enum ice_vsi_type {\n #ifdef ADQ_SUPPORT\n \tICE_VSI_CHNL = 4,\n #endif /* ADQ_SUPPORT */\n+#ifdef OFFLOAD_MACVLAN_SUPPORT\n+\tICE_VSI_OFFLOAD_MACVLAN = 5,\n+#endif /* OFFLOAD_MACVLAN_SUPPORT */\n \tICE_VSI_LB = 6,\n };\n \n@@ -353,6 +356,11 @@ struct ice_hw_common_caps {\n #define ICE_MAX_SUPPORTED_GPIO_SDP\t8\n \tu8 led[ICE_MAX_SUPPORTED_GPIO_LED];\n \tu8 sdp[ICE_MAX_SUPPORTED_GPIO_SDP];\n+#if defined(VMDQ_SUPPORT) || defined(OFFLOAD_MACVLAN_SUPPORT) || defined(ADQ_SUPPORT)\n+\n+\t/* VMDQ */\n+\tu8 vmdq;\t\t\t/* VMDQ supported */\n+#endif /* VMDQ_SUPPORT || OFFLOAD_MACVLAN_SUPPORT || ADQ_SUPPORT */\n \n \t/* EVB capabilities */\n \tu8 evb_802_1_qbg;\t\t/* Edge Virtual Bridging */\n", "prefixes": [ "42/49" ] }{ "id": 54318, "url": "