mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
net: hns3: rename a member in struct hclge_mac_ethertype_idx_rd_cmd
The member 'mac_add' defined in hclge_mac_ethertype_idx_rd_cmd means MAC address, so 'mac_addr' is a better name for it. Signed-off-by: Guojia Liao <liaoguojia@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dbae56a33f
commit
6e6e768063
@ -828,7 +828,7 @@ struct hclge_mac_ethertype_idx_rd_cmd {
|
||||
u8 flags;
|
||||
u8 resp_code;
|
||||
__le16 vlan_tag;
|
||||
u8 mac_add[6];
|
||||
u8 mac_addr[6];
|
||||
__le16 index;
|
||||
__le16 ethter_type;
|
||||
__le16 egress_port;
|
||||
|
@ -847,9 +847,9 @@ static void hclge_dbg_dump_mng_table(struct hclge_dev *hdev)
|
||||
memset(printf_buf, 0, HCLGE_DBG_BUF_LEN);
|
||||
snprintf(printf_buf, HCLGE_DBG_BUF_LEN,
|
||||
"%02u |%02x:%02x:%02x:%02x:%02x:%02x|",
|
||||
req0->index, req0->mac_add[0], req0->mac_add[1],
|
||||
req0->mac_add[2], req0->mac_add[3], req0->mac_add[4],
|
||||
req0->mac_add[5]);
|
||||
req0->index, req0->mac_addr[0], req0->mac_addr[1],
|
||||
req0->mac_addr[2], req0->mac_addr[3],
|
||||
req0->mac_addr[4], req0->mac_addr[5]);
|
||||
|
||||
snprintf(printf_buf + strlen(printf_buf),
|
||||
HCLGE_DBG_BUF_LEN - strlen(printf_buf),
|
||||
|
Loading…
Reference in New Issue
Block a user