Lines Matching refs:mac_info
32 struct hinic_port_mac_cmd mac_info = {0}; in hinic_set_mac() local
33 u16 out_size = sizeof(mac_info); in hinic_set_mac()
36 mac_info.func_idx = func_id; in hinic_set_mac()
37 mac_info.vlan_id = vlan_id; in hinic_set_mac()
38 memcpy(mac_info.mac, mac_addr, ETH_ALEN); in hinic_set_mac()
40 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_MAC, &mac_info, in hinic_set_mac()
41 sizeof(mac_info), &mac_info, &out_size); in hinic_set_mac()
42 if (err || out_size != sizeof(mac_info) || in hinic_set_mac()
43 (mac_info.status && mac_info.status != HINIC_MGMT_STATUS_EXIST)) { in hinic_set_mac()
45 err, mac_info.status, out_size); in hinic_set_mac()
325 struct hinic_port_mac_cmd *mac_info = buf_out; in hinic_get_vf_mac_msg_handler() local
333 memcpy(mac_info->mac, vf_info->vf_mac_addr, ETH_ALEN); in hinic_get_vf_mac_msg_handler()
334 mac_info->status = 0; in hinic_get_vf_mac_msg_handler()
335 *out_size = sizeof(*mac_info); in hinic_get_vf_mac_msg_handler()
538 struct hinic_port_mac_update mac_info = {0}; in hinic_update_mac() local
539 u16 out_size = sizeof(mac_info); in hinic_update_mac()
551 mac_info.func_id = func_id; in hinic_update_mac()
552 mac_info.vlan_id = vlan_id; in hinic_update_mac()
553 memcpy(mac_info.old_mac, old_mac, ETH_ALEN); in hinic_update_mac()
554 memcpy(mac_info.new_mac, new_mac, ETH_ALEN); in hinic_update_mac()
556 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_UPDATE_MAC, &mac_info, in hinic_update_mac()
557 sizeof(mac_info), &mac_info, &out_size); in hinic_update_mac()
560 hinic_check_mac_info(mac_info.status, mac_info.vlan_id)) { in hinic_update_mac()
563 err, mac_info.status, out_size); in hinic_update_mac()
567 if (mac_info.status == HINIC_MGMT_STATUS_EXIST) in hinic_update_mac()