From: Nambiar, Amritha <amritha.nambiar@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH 4/6] [net-next]net: i40e: Admin queue definitions for cloud filters
Date: Mon, 14 Aug 2017 11:59:57 -0700 [thread overview]
Message-ID: <72bc0dac-1b03-b768-4cb4-bac2b2f4713f@intel.com> (raw)
In-Reply-To: <ad9e07cc-3e8d-f6b4-c721-847c8b1cdba7@oracle.com>
On 8/1/2017 12:16 PM, Shannon Nelson wrote:
> On 7/31/2017 5:37 PM, Amritha Nambiar wrote:
>> Add new admin queue definitions and extended fields for cloud
>> filter support. Define big buffer for extended general fields
>> in Add/Remove Cloud filters command.
>>
>> Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
>> Signed-off-by: Kiran Patil <kiran.patil@intel.com>
>> Signed-off-by: Store Laura <laura.stroe@intel.com>
>> Signed-off-by: Iremonger Bernard <bernard.iremonger@intel.com>
>> Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
>> ---
>> drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 98 +++++++++++++++++++++
>> 1 file changed, 97 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h
>> index 8bba04c..9f14305 100644
>> --- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h
>> +++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h
>
> I see that you're changing the i40e version of this, but not the i40evf
> version. I understand that these changes are not useful for the VF, but
> are you no longer trying to keep the AdminQ definitions consistent
> between the two?
I will add these definitions to the VF as well for consistency in the
next version.
>
>> @@ -1358,7 +1358,9 @@ struct i40e_aqc_add_remove_cloud_filters {
>> #define I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_SHIFT 0
>> #define I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_MASK (0x3FF << \
>> I40E_AQC_ADD_CLOUD_CMD_SEID_NUM_SHIFT)
>> - u8 reserved2[4];
>> + u8 big_buffer_flag;
>> +#define I40E_AQC_ADD_REM_CLOUD_CMD_BIG_BUFFER 1
>> + u8 reserved2[3];
>> __le32 addr_high;
>> __le32 addr_low;
>> };
>> @@ -1395,6 +1397,13 @@ struct i40e_aqc_add_remove_cloud_filters_element_data {
>> #define I40E_AQC_ADD_CLOUD_FILTER_IMAC 0x000A
>> #define I40E_AQC_ADD_CLOUD_FILTER_OMAC_TEN_ID_IMAC 0x000B
>> #define I40E_AQC_ADD_CLOUD_FILTER_IIP 0x000C
>> +/* 0x0010 to 0x0017 is for custom filters */
>> +/* flag to be used when adding cloud filter: IP + L4 Port */
>> +#define I40E_AQC_ADD_CLOUD_FILTER_IP_PORT 0x0010
>> +/* flag to be used when adding cloud filter: Dest MAC + L4 Port */
>> +#define I40E_AQC_ADD_CLOUD_FILTER_MAC_PORT 0x0011
>> +/* flag to be used when adding cloud filter: Dest MAC + VLAN + L4 Port */
>> +#define I40E_AQC_ADD_CLOUD_FILTER_MAC_VLAN_PORT 0x0012
>>
>> #define I40E_AQC_ADD_CLOUD_FLAGS_TO_QUEUE 0x0080
>> #define I40E_AQC_ADD_CLOUD_VNK_SHIFT 6
>> @@ -1429,6 +1438,45 @@ struct i40e_aqc_add_remove_cloud_filters_element_data {
>> u8 response_reserved[7];
>> };
>
> I know you didn't add this struct, but where's the I40E_CHECK_STRUCT_LEN
> check?
Will add all the needed I40E_CHECK_STRUCT_LEN check in the next version
of the series.
>
>>
>> +/* i40e_aqc_add_remove_cloud_filters_element_big_data is used when
>> + * I40E_AQC_ADD_REM_CLOUD_CMD_BIG_BUFFER flag is set.
>> + */
>> +struct i40e_aqc_add_remove_cloud_filters_element_big_data {
>> + struct i40e_aqc_add_remove_cloud_filters_element_data element;
>> + u16 general_fields[32];
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD0 0
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD1 1
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X10_WORD2 2
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD0 3
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD1 4
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X11_WORD2 5
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD0 6
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD1 7
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X12_WORD2 8
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD0 9
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD1 10
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X13_WORD2 11
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD0 12
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD1 13
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X14_WORD2 14
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD0 15
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD1 16
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD2 17
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD3 18
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD4 19
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD5 20
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD6 21
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X16_WORD7 22
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD0 23
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD1 24
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD2 25
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD3 26
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD4 27
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD5 28
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD6 29
>> +#define I40E_AQC_ADD_CLOUD_FV_FLU_0X17_WORD7 30
>> +};
>
> Needs the I40E_CHECK_STRUCT_LEN to be consistent with the data checking
> in the rest of this file.
>
>> +
>> struct i40e_aqc_remove_cloud_filters_completion {
>> __le16 perfect_ovlan_used;
>> __le16 perfect_ovlan_free;
>> @@ -1440,6 +1488,54 @@ struct i40e_aqc_remove_cloud_filters_completion {
>>
>> I40E_CHECK_CMD_LENGTH(i40e_aqc_remove_cloud_filters_completion);
>>
>> +/* Replace filter Command 0x025F
>> + * uses the i40e_aqc_replace_cloud_filters,
>> + * and the generic indirect completion structure
>> + */
>> +struct i40e_filter_data {
>> + u8 filter_type;
>> + u8 input[3];
>> +};
>
> Should have I40E_CHECK_STRUCT_LEN check
>
>> +
>> +struct i40e_aqc_replace_cloud_filters_cmd {
>> + u8 valid_flags;
>> +#define I40E_AQC_REPLACE_L1_FILTER 0x0
>> +#define I40E_AQC_REPLACE_CLOUD_FILTER 0x1
>> +#define I40E_AQC_GET_CLOUD_FILTERS 0x2
>> +#define I40E_AQC_MIRROR_CLOUD_FILTER 0x4
>> +#define I40E_AQC_HIGH_PRIORITY_CLOUD_FILTER 0x8
>> + u8 old_filter_type;
>> + u8 new_filter_type;
>> + u8 tr_bit;
>> + u8 reserved[4];
>> + __le32 addr_high;
>> + __le32 addr_low;
>> +};
>
> Should have I40E_CHECK_CMD_LENGTH check
>
>> +
>> +struct i40e_aqc_replace_cloud_filters_cmd_buf {
>> + u8 data[32];
>> +/* Filter type INPUT codes*/
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_ENTRIES_MAX 3
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_VALIDATED BIT(7)
>> +
>> +/* Field Vector offsets */
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_MAC_DA 0
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_ETH 6
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG 7
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_VLAN 8
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_OVLAN 9
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_STAG_IVLAN 10
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_TUNNLE_KEY 11
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_IMAC 12
>> +/* big FLU */
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_IP_DA 14
>> +/* big FLU */
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_OIP_DA 15
>> +
>> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_FV_INNER_VLAN 37
>> + struct i40e_filter_data filters[8];
>> +};
>
> Should have I40E_CHECK_STRUCT_LEN check
>
>> +
>> /* Add Mirror Rule (indirect or direct 0x0260)
>> * Delete Mirror Rule (indirect or direct 0x0261)
>> * note: some rule types (4,5) do not use an external buffer.
>>
>> _______________________________________________
>> Intel-wired-lan mailing list
>> Intel-wired-lan at osuosl.org
>> https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
>>
next prev parent reply other threads:[~2017-08-14 18:59 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-01 0:36 [Intel-wired-lan] [PATCH net-next RFC 0/6] Configure cloud filters in i40e via tc/flower classifier Amritha Nambiar
2017-08-01 0:37 ` [Intel-wired-lan] [PATCH 1/6] [net-next]net: sched: act_mirred: Extend redirect action to accept a traffic class Amritha Nambiar
2017-08-01 10:22 ` Jamal Hadi Salim
2017-08-02 1:12 ` Nambiar, Amritha
2017-08-01 10:44 ` Jamal Hadi Salim
2017-08-02 1:42 ` Nambiar, Amritha
2017-08-01 11:12 ` Jiri Pirko
2017-08-02 2:20 ` Nambiar, Amritha
2017-08-01 0:37 ` [Intel-wired-lan] [PATCH 2/6] [net-next]net: i40e: Maintain a mapping of TCs with the VSI seids Amritha Nambiar
2017-08-01 0:37 ` [Intel-wired-lan] [PATCH 3/6] [net-next]net: i40e: Extend set switch config command to accept cloud filter mode Amritha Nambiar
2017-08-01 10:48 ` Jamal Hadi Salim
2017-08-01 0:37 ` [Intel-wired-lan] [PATCH 4/6] [net-next]net: i40e: Admin queue definitions for cloud filters Amritha Nambiar
2017-08-01 19:16 ` Shannon Nelson
2017-08-14 18:59 ` Nambiar, Amritha [this message]
2017-08-01 0:38 ` [Intel-wired-lan] [PATCH 5/6] [net-next]net: i40e: Clean up of " Amritha Nambiar
2017-08-01 19:16 ` Shannon Nelson
2017-08-14 19:06 ` Nambiar, Amritha
2017-08-01 0:38 ` [Intel-wired-lan] [PATCH 6/6] [net-next]net: i40e: Enable cloud filters in i40e via tc/flower classifier Amritha Nambiar
2017-08-01 10:56 ` Jamal Hadi Salim
2017-08-02 2:13 ` Nambiar, Amritha
2017-08-02 12:02 ` Jamal Hadi Salim
2017-08-02 18:20 ` Nambiar, Amritha
2017-08-01 19:16 ` Shannon Nelson
2017-08-14 19:21 ` Nambiar, Amritha
2017-08-01 10:15 ` [Intel-wired-lan] [PATCH net-next RFC 0/6] Configure " Jamal Hadi Salim
2017-08-02 0:57 ` Nambiar, Amritha
2017-08-02 12:01 ` Jamal Hadi Salim
2017-08-02 18:17 ` Nambiar, Amritha
2017-08-01 19:16 ` Shannon Nelson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72bc0dac-1b03-b768-4cb4-bac2b2f4713f@intel.com \
--to=amritha.nambiar@intel.com \
--cc=intel-wired-lan@osuosl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox