Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/813291/?format=api
{ "id": 813291, "url": "http://patchwork.ozlabs.org/api/patches/813291/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/150529677981.57063.17840289143112093504.stgit@anamdev.jf.intel.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<150529677981.57063.17840289143112093504.stgit@anamdev.jf.intel.com>", "list_archive_url": null, "date": "2017-09-13T09:59:39", "name": "[RFC,v3,5/7] i40e: Admin queue definitions for cloud filters", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "5df681c1a604afc5ad60e28c854f4149b15f0fd0", "submitter": { "id": 68504, "url": "http://patchwork.ozlabs.org/api/people/68504/?format=api", "name": "Nambiar, Amritha", "email": "amritha.nambiar@intel.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/150529677981.57063.17840289143112093504.stgit@anamdev.jf.intel.com/mbox/", "series": [ { "id": 2860, "url": "http://patchwork.ozlabs.org/api/series/2860/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=2860", "date": "2017-09-13T09:59:13", "name": "tc-flower based cloud filters in i40e", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/2860/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/813291/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/813291/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.136; helo=silver.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xsccY0fFjz9s9Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 20:01:01 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id A658825C3C;\n\tWed, 13 Sep 2017 10:00:59 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id MvzOH1M3NMDU; Wed, 13 Sep 2017 10:00:56 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 39DD330B6F;\n\tWed, 13 Sep 2017 10:00:56 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 375C41C0BE0\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:00:49 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 2F24E882DC\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:00:49 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id pqap9mtz5y2w for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:00:48 +0000 (UTC)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 539D6882DA\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:00:48 +0000 (UTC)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby orsmga105.jf.intel.com with ESMTP; 13 Sep 2017 03:00:47 -0700", "from anamdev.jf.intel.com ([10.166.29.110])\n\tby fmsmga006.fm.intel.com with ESMTP; 13 Sep 2017 03:00:47 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.42,387,1500966000\"; d=\"scan'208\";a=\"151314736\"", "From": "Amritha Nambiar <amritha.nambiar@intel.com>", "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com", "Date": "Wed, 13 Sep 2017 02:59:39 -0700", "Message-ID": "<150529677981.57063.17840289143112093504.stgit@anamdev.jf.intel.com>", "In-Reply-To": "<150529632024.57063.15338545678487601430.stgit@anamdev.jf.intel.com>", "References": "<150529632024.57063.15338545678487601430.stgit@anamdev.jf.intel.com>", "User-Agent": "StGit/0.17.1-dirty", "MIME-Version": "1.0", "Cc": "netdev@vger.kernel.org", "Subject": "[Intel-wired-lan] [RFC PATCH v3 5/7] i40e: Admin queue definitions\n\tfor cloud filters", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "Add new admin queue definitions and extended fields for cloud\nfilter support. Define big buffer for extended general fields\nin Add/Remove Cloud filters command.\n\nv3: Shortened some lengthy struct names.\nv2: Added I40E_CHECK_STRUCT_LEN check to AQ command structs and\nadded AQ definitions to i40evf for consistency based on Shannon's\nfeedback.\n\nSigned-off-by: Amritha Nambiar <amritha.nambiar@intel.com>\nSigned-off-by: Kiran Patil <kiran.patil@intel.com>\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 110 ++++++++++++++++++++\n .../net/ethernet/intel/i40evf/i40e_adminq_cmd.h | 110 ++++++++++++++++++++\n 2 files changed, 216 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\nindex e41050a..2e567c2 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n@@ -1371,14 +1371,16 @@ struct i40e_aqc_add_remove_cloud_filters {\n #define I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_SHIFT\t0\n #define I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_MASK\t(0x3FF << \\\n \t\t\t\t\tI40E_AQC_ADD_CLOUD_CMD_SEID_NUM_SHIFT)\n-\tu8\treserved2[4];\n+\tu8\tbig_buffer_flag;\n+#define I40E_AQC_ADD_CLOUD_CMD_BB\t1\n+\tu8\treserved2[3];\n \t__le32\taddr_high;\n \t__le32\taddr_low;\n };\n \n I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_cloud_filters);\n \n-struct i40e_aqc_add_remove_cloud_filters_element_data {\n+struct i40e_aqc_cloud_filters_element_data {\n \tu8\touter_mac[6];\n \tu8\tinner_mac[6];\n \t__le16\tinner_vlan;\n@@ -1408,6 +1410,13 @@ struct i40e_aqc_add_remove_cloud_filters_element_data {\n #define I40E_AQC_ADD_CLOUD_FILTER_IMAC\t\t\t0x000A\n #define I40E_AQC_ADD_CLOUD_FILTER_OMAC_TEN_ID_IMAC\t0x000B\n #define I40E_AQC_ADD_CLOUD_FILTER_IIP\t\t\t0x000C\n+/* 0x0010 to 0x0017 is for custom filters */\n+/* flag to be used when adding cloud filter: IP + L4 Port */\n+#define I40E_AQC_ADD_CLOUD_FILTER_IP_PORT\t\t0x0010\n+/* flag to be used when adding cloud filter: Dest MAC + L4 Port */\n+#define I40E_AQC_ADD_CLOUD_FILTER_MAC_PORT\t\t0x0011\n+/* flag to be used when adding cloud filter: Dest MAC + VLAN + L4 Port */\n+#define I40E_AQC_ADD_CLOUD_FILTER_MAC_VLAN_PORT\t\t0x0012\n \n #define I40E_AQC_ADD_CLOUD_FLAGS_TO_QUEUE\t\t0x0080\n #define I40E_AQC_ADD_CLOUD_VNK_SHIFT\t\t\t6\n@@ -1442,6 +1451,49 @@ struct i40e_aqc_add_remove_cloud_filters_element_data {\n \tu8\tresponse_reserved[7];\n };\n \n+I40E_CHECK_STRUCT_LEN(0x40, i40e_aqc_cloud_filters_element_data);\n+\n+/* i40e_aqc_cloud_filters_element_bb is used when\n+ * I40E_AQC_CLOUD_CMD_BB flag is set.\n+ */\n+struct i40e_aqc_cloud_filters_element_bb {\n+\tstruct i40e_aqc_cloud_filters_element_data element;\n+\tu16 general_fields[32];\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD0\t0\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD1\t1\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD2\t2\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD0\t3\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD1\t4\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD2\t5\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD0\t6\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD1\t7\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD2\t8\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD0\t9\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD1\t10\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD2\t11\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD0\t12\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD1\t13\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD2\t14\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD0\t15\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD1\t16\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD2\t17\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD3\t18\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD4\t19\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD5\t20\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD6\t21\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD7\t22\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD0\t23\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD1\t24\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD2\t25\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD3\t26\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD4\t27\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD5\t28\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD6\t29\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD7\t30\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x80, i40e_aqc_cloud_filters_element_bb);\n+\n struct i40e_aqc_remove_cloud_filters_completion {\n \t__le16 perfect_ovlan_used;\n \t__le16 perfect_ovlan_free;\n@@ -1453,6 +1505,60 @@ struct i40e_aqc_remove_cloud_filters_completion {\n \n I40E_CHECK_CMD_LENGTH(i40e_aqc_remove_cloud_filters_completion);\n \n+/* Replace filter Command 0x025F\n+ * uses the i40e_aqc_replace_cloud_filters,\n+ * and the generic indirect completion structure\n+ */\n+struct i40e_filter_data {\n+\tu8 filter_type;\n+\tu8 input[3];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(4, i40e_filter_data);\n+\n+struct i40e_aqc_replace_cloud_filters_cmd {\n+\tu8 valid_flags;\n+#define I40E_AQC_REPLACE_L1_FILTER\t\t0x0\n+#define I40E_AQC_REPLACE_CLOUD_FILTER\t\t0x1\n+#define I40E_AQC_GET_CLOUD_FILTERS\t\t0x2\n+#define I40E_AQC_MIRROR_CLOUD_FILTER\t\t0x4\n+#define I40E_AQC_HIGH_PRIORITY_CLOUD_FILTER\t0x8\n+\tu8 old_filter_type;\n+\tu8 new_filter_type;\n+\tu8 tr_bit;\n+\tu8 reserved[4];\n+\t__le32 addr_high;\n+\t__le32 addr_low;\n+};\n+\n+I40E_CHECK_CMD_LENGTH(i40e_aqc_replace_cloud_filters_cmd);\n+\n+struct i40e_aqc_replace_cloud_filters_cmd_buf {\n+\tu8 data[32];\n+/* Filter type INPUT codes*/\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_ENTRIES_MAX\t3\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_VALIDATED\tBIT(7)\n+\n+/* Field Vector offsets */\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_MAC_DA\t0\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_ETH\t6\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG\t7\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_VLAN\t8\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_OVLAN\t9\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_IVLAN\t10\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_TUNNLE_KEY\t11\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_IMAC\t12\n+/* big FLU */\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_IP_DA\t14\n+/* big FLU */\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_OIP_DA\t15\n+\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_INNER_VLAN\t37\n+\tstruct i40e_filter_data filters[8];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x40, i40e_aqc_replace_cloud_filters_cmd_buf);\n+\n /* Add Mirror Rule (indirect or direct 0x0260)\n * Delete Mirror Rule (indirect or direct 0x0261)\n * note: some rule types (4,5) do not use an external buffer.\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\nindex 60c892f..b8c78bf 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n@@ -1339,14 +1339,16 @@ struct i40e_aqc_add_remove_cloud_filters {\n #define I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_SHIFT\t0\n #define I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_MASK\t(0x3FF << \\\n \t\t\t\t\tI40E_AQC_ADD_CLOUD_CMD_SEID_NUM_SHIFT)\n-\tu8\treserved2[4];\n+\tu8\tbig_buffer_flag;\n+#define I40E_AQC_ADD_CLOUD_CMD_BB\t1\n+\tu8\treserved2[3];\n \t__le32\taddr_high;\n \t__le32\taddr_low;\n };\n \n I40E_CHECK_CMD_LENGTH(i40e_aqc_add_remove_cloud_filters);\n \n-struct i40e_aqc_add_remove_cloud_filters_element_data {\n+struct i40e_aqc_cloud_filters_element_data {\n \tu8\touter_mac[6];\n \tu8\tinner_mac[6];\n \t__le16\tinner_vlan;\n@@ -1376,6 +1378,13 @@ struct i40e_aqc_add_remove_cloud_filters_element_data {\n #define I40E_AQC_ADD_CLOUD_FILTER_IMAC\t\t\t0x000A\n #define I40E_AQC_ADD_CLOUD_FILTER_OMAC_TEN_ID_IMAC\t0x000B\n #define I40E_AQC_ADD_CLOUD_FILTER_IIP\t\t\t0x000C\n+/* 0x0010 to 0x0017 is for custom filters */\n+/* flag to be used when adding cloud filter: IP + L4 Port */\n+#define I40E_AQC_ADD_CLOUD_FILTER_IP_PORT\t\t0x0010\n+/* flag to be used when adding cloud filter: Dest MAC + L4 Port */\n+#define I40E_AQC_ADD_CLOUD_FILTER_MAC_PORT\t\t0x0011\n+/* flag to be used when adding cloud filter: Dest MAC + VLAN + L4 Port */\n+#define I40E_AQC_ADD_CLOUD_FILTER_MAC_VLAN_PORT\t\t0x0012\n \n #define I40E_AQC_ADD_CLOUD_FLAGS_TO_QUEUE\t\t0x0080\n #define I40E_AQC_ADD_CLOUD_VNK_SHIFT\t\t\t6\n@@ -1410,6 +1419,49 @@ struct i40e_aqc_add_remove_cloud_filters_element_data {\n \tu8\tresponse_reserved[7];\n };\n \n+I40E_CHECK_STRUCT_LEN(0x40, i40e_aqc_cloud_filters_element_data);\n+\n+/* i40e_aqc_cloud_filters_element_bb is used when\n+ * I40E_AQC_ADD_CLOUD_CMD_BB flag is set.\n+ */\n+struct i40e_aqc_cloud_filters_element_bb {\n+\tstruct i40e_aqc_cloud_filters_element_data element;\n+\tu16 general_fields[32];\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD0\t0\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD1\t1\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD2\t2\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD0\t3\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD1\t4\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD2\t5\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD0\t6\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD1\t7\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD2\t8\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD0\t9\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD1\t10\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD2\t11\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD0\t12\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD1\t13\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD2\t14\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD0\t15\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD1\t16\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD2\t17\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD3\t18\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD4\t19\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD5\t20\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD6\t21\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD7\t22\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD0\t23\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD1\t24\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD2\t25\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD3\t26\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD4\t27\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD5\t28\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD6\t29\n+#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD7\t30\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x80, i40e_aqc_cloud_filters_element_bb);\n+\n struct i40e_aqc_remove_cloud_filters_completion {\n \t__le16 perfect_ovlan_used;\n \t__le16 perfect_ovlan_free;\n@@ -1421,6 +1473,60 @@ struct i40e_aqc_remove_cloud_filters_completion {\n \n I40E_CHECK_CMD_LENGTH(i40e_aqc_remove_cloud_filters_completion);\n \n+/* Replace filter Command 0x025F\n+ * uses the i40e_aqc_replace_cloud_filters,\n+ * and the generic indirect completion structure\n+ */\n+struct i40e_filter_data {\n+\tu8 filter_type;\n+\tu8 input[3];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(4, i40e_filter_data);\n+\n+struct i40e_aqc_replace_cloud_filters_cmd {\n+\tu8 valid_flags;\n+#define I40E_AQC_REPLACE_L1_FILTER\t\t0x0\n+#define I40E_AQC_REPLACE_CLOUD_FILTER\t\t0x1\n+#define I40E_AQC_GET_CLOUD_FILTERS\t\t0x2\n+#define I40E_AQC_MIRROR_CLOUD_FILTER\t\t0x4\n+#define I40E_AQC_HIGH_PRIORITY_CLOUD_FILTER\t0x8\n+\tu8 old_filter_type;\n+\tu8 new_filter_type;\n+\tu8 tr_bit;\n+\tu8 reserved[4];\n+\t__le32 addr_high;\n+\t__le32 addr_low;\n+};\n+\n+I40E_CHECK_CMD_LENGTH(i40e_aqc_replace_cloud_filters_cmd);\n+\n+struct i40e_aqc_replace_cloud_filters_cmd_buf {\n+\tu8 data[32];\n+/* Filter type INPUT codes*/\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_ENTRIES_MAX\t3\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_VALIDATED\tBIT(7)\n+\n+/* Field Vector offsets */\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_MAC_DA\t0\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_ETH\t6\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG\t7\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_VLAN\t8\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_OVLAN\t9\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_IVLAN\t10\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_TUNNLE_KEY\t11\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_IMAC\t12\n+/* big FLU */\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_IP_DA\t14\n+/* big FLU */\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_OIP_DA\t15\n+\n+#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_INNER_VLAN\t37\n+\tstruct i40e_filter_data filters[8];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x40, i40e_aqc_replace_cloud_filters_cmd_buf);\n+\n /* Add Mirror Rule (indirect or direct 0x0260)\n * Delete Mirror Rule (indirect or direct 0x0261)\n * note: some rule types (4,5) do not use an external buffer.\n", "prefixes": [ "RFC", "v3", "5/7" ] }