Lines Matching refs:mac_info

31 	struct hinic_port_mac_cmd mac_info = {0};  in hinic_set_mac()  local
32 u16 out_size = sizeof(mac_info); in hinic_set_mac()
35 mac_info.func_idx = func_id; in hinic_set_mac()
36 mac_info.vlan_id = vlan_id; in hinic_set_mac()
37 memcpy(mac_info.mac, mac_addr, ETH_ALEN); in hinic_set_mac()
39 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_MAC, &mac_info, in hinic_set_mac()
40 sizeof(mac_info), &mac_info, &out_size); in hinic_set_mac()
41 if (err || out_size != sizeof(mac_info) || in hinic_set_mac()
42 (mac_info.status && mac_info.status != HINIC_MGMT_STATUS_EXIST)) { in hinic_set_mac()
44 err, mac_info.status, out_size); in hinic_set_mac()
324 struct hinic_port_mac_cmd *mac_info = buf_out; in hinic_get_vf_mac_msg_handler() local
332 memcpy(mac_info->mac, vf_info->vf_mac_addr, ETH_ALEN); in hinic_get_vf_mac_msg_handler()
333 mac_info->status = 0; in hinic_get_vf_mac_msg_handler()
334 *out_size = sizeof(*mac_info); in hinic_get_vf_mac_msg_handler()
519 struct hinic_port_mac_update mac_info = {0}; in hinic_update_mac() local
520 u16 out_size = sizeof(mac_info); in hinic_update_mac()
532 mac_info.func_id = func_id; in hinic_update_mac()
533 mac_info.vlan_id = vlan_id; in hinic_update_mac()
534 memcpy(mac_info.old_mac, old_mac, ETH_ALEN); in hinic_update_mac()
535 memcpy(mac_info.new_mac, new_mac, ETH_ALEN); in hinic_update_mac()
537 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_UPDATE_MAC, &mac_info, in hinic_update_mac()
538 sizeof(mac_info), &mac_info, &out_size); in hinic_update_mac()
541 hinic_check_mac_info(mac_info.status, mac_info.vlan_id)) { in hinic_update_mac()
544 err, mac_info.status, out_size); in hinic_update_mac()
548 if (mac_info.status == HINIC_MGMT_STATUS_EXIST) in hinic_update_mac()