提交 2f745103 编写于 作者: S shenhao 提交者: Yang Yingliang

net: hns3: modify definition location of struct hclge_mac_ethertype_idx_rd_cmd

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

--------------------------------------------

This patch just modifies definition location of struct
hclge_mac_ethertype_idx_rd_cmd to sync code with linux mainline.
Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Nshenhao <shenhao21@huawei.com>
Reviewed-by: NZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 0f4028fd
...@@ -781,21 +781,6 @@ struct hclge_mac_vlan_idx_rd_cmd { ...@@ -781,21 +781,6 @@ struct hclge_mac_vlan_idx_rd_cmd {
__le32 index; __le32 index;
}; };
struct hclge_mac_ethertype_idx_rd_cmd {
u8 flags;
u8 resp_code;
__le16 vlan_tag;
u8 mac_addr[ETH_ALEN];
__le16 index;
__le16 ethter_type;
__le16 egress_port;
__le16 egress_queue;
__le16 rev0;
u8 i_port_bitmap;
u8 i_port_direction;
u8 rev1[2];
};
#pragma pack() #pragma pack()
struct hclge_vlan_filter_ctrl_cmd { struct hclge_vlan_filter_ctrl_cmd {
...@@ -914,6 +899,24 @@ struct hclge_cfg_tx_queue_pointer_cmd { ...@@ -914,6 +899,24 @@ struct hclge_cfg_tx_queue_pointer_cmd {
u8 rsv[14]; u8 rsv[14];
}; };
#pragma pack(1)
struct hclge_mac_ethertype_idx_rd_cmd {
u8 flags;
u8 resp_code;
__le16 vlan_tag;
u8 mac_addr[ETH_ALEN];
__le16 index;
__le16 ethter_type;
__le16 egress_port;
__le16 egress_queue;
__le16 rev0;
u8 i_port_bitmap;
u8 i_port_direction;
u8 rev1[2];
};
#pragma pack()
#define HCLGE_TSO_MSS_MIN_S 0 #define HCLGE_TSO_MSS_MIN_S 0
#define HCLGE_TSO_MSS_MIN_M GENMASK(13, 0) #define HCLGE_TSO_MSS_MIN_M GENMASK(13, 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册