| /drivers/net/ethernet/huawei/hinic3/ |
| A D | hinic3_nic_cfg.c | 181 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic3_update_mac() argument 196 ether_addr_copy(mac_info.new_mac, new_mac); in hinic3_update_mac()
|
| A D | hinic3_nic_cfg.h | 37 u8 *new_mac, u16 vlan_id, u16 func_id);
|
| A D | hinic3_mgmt_interface.h | 56 u8 new_mac[ETH_ALEN]; member
|
| /drivers/net/ethernet/wangxun/libwx/ |
| A D | wx_sriov.c | 428 const u8 *new_mac = ((u8 *)(&msgbuf[1])); in wx_set_vf_mac_addr() local 431 if (!is_valid_ether_addr(new_mac)) { in wx_set_vf_mac_addr() 437 memcmp(wx->vfinfo[vf].vf_mac_addr, new_mac, ETH_ALEN)) { in wx_set_vf_mac_addr() 444 ret = wx_set_vf_mac(wx, vf, new_mac); in wx_set_vf_mac_addr() 629 u8 *new_mac = ((u8 *)(&msgbuf[1])); in wx_set_vf_macvlan_msg() local 639 if (!is_valid_ether_addr(new_mac)) { in wx_set_vf_macvlan_msg() 650 err = wx_set_vf_macvlan(wx, vf, index, new_mac); in wx_set_vf_macvlan_msg()
|
| /drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_netdev.c | 725 memcpy(entry->mac, new_mac, ETH_ALEN); in mlx4_en_replace_mac() 727 mac_hash = new_mac[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_replace_mac() 731 err = mlx4_en_uc_steer_add(priv, new_mac, in mlx4_en_replace_mac() 752 unsigned char new_mac[ETH_ALEN + 2]) in mlx4_en_update_user_mac() 763 new_mac, priv->port, err); in mlx4_en_update_user_mac() 767 unsigned char new_mac[ETH_ALEN + 2]) in mlx4_en_do_set_mac() 774 new_mac, priv->current_mac); in mlx4_en_do_set_mac() 791 unsigned char new_mac[ETH_ALEN + 2]; in mlx4_en_set_mac() local 798 memcpy(new_mac, saddr->sa_data, ETH_ALEN); in mlx4_en_set_mac() 799 err = mlx4_en_do_set_mac(priv, new_mac); in mlx4_en_set_mac() [all …]
|
| A D | port.c | 454 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac) in __mlx4_replace_mac() argument 481 table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac() 486 (unsigned long long) new_mac); in __mlx4_replace_mac() 490 dup_table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac() 495 (unsigned long long)new_mac); in __mlx4_replace_mac()
|
| /drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_sriov.c | 954 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr() local 956 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_mac_addr() 962 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr() 970 return ixgbe_set_vf_mac(adapter, vf, new_mac) < 0; in ixgbe_set_vf_mac_addr() 998 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg() local 1012 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_macvlan_msg() 1029 err = ixgbe_set_vf_macvlan(adapter, vf, index, new_mac); in ixgbe_set_vf_macvlan_msg()
|
| /drivers/net/ethernet/huawei/hinic/ |
| A D | hinic_sriov.h | 65 u8 new_mac[ETH_ALEN]; member
|
| A D | hinic_main.c | 635 unsigned char new_mac[ETH_ALEN]; in hinic_set_mac_addr() local 639 memcpy(new_mac, saddr->sa_data, ETH_ALEN); in hinic_set_mac_addr() 641 err = change_mac_addr(netdev, new_mac); in hinic_set_mac_addr() 643 eth_hw_addr_set(netdev, new_mac); in hinic_set_mac_addr()
|
| A D | hinic_sriov.c | 536 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac() argument 542 if (!hwdev || !old_mac || !new_mac) in hinic_update_mac() 554 memcpy(mac_info.new_mac, new_mac, ETH_ALEN); in hinic_update_mac()
|
| /drivers/net/ethernet/marvell/octeontx2/af/ |
| A D | rvu_npc_hash.c | 1395 u8 *old_mac, u8 *new_mac, u32 *seq_id) in rvu_npc_exact_update_table_entry() argument 1422 new_mac, table->mem_table.mask, in rvu_npc_exact_update_table_entry() 1433 mdata = rvu_exact_prepare_table_entry(rvu, true, entry->ctype, entry->chan, new_mac); in rvu_npc_exact_update_table_entry() 1441 ether_addr_copy(entry->mac, new_mac); in rvu_npc_exact_update_table_entry() 1449 __func__, old_mac, new_mac); in rvu_npc_exact_update_table_entry()
|
| /drivers/net/wireless/marvell/mwifiex/ |
| A D | main.c | 945 u8 *new_mac) in mwifiex_set_mac_address() argument 953 mac_addr = ether_addr_to_u64(new_mac); in mwifiex_set_mac_address()
|
| A D | main.h | 1685 bool external, u8 *new_mac);
|
| /drivers/net/ethernet/intel/i40e/ |
| A D | i40e_main.c | 1480 struct i40e_new_mac_filter *new_mac, in i40e_get_vf_new_vlan() argument 1489 if (new_mac) in i40e_get_vf_new_vlan() 1490 f = new_mac->f; in i40e_get_vf_new_vlan() 1536 struct i40e_new_mac_filter *new_mac; in i40e_correct_vf_mac_vlan_filters() local 1540 hlist_for_each_entry(new_mac, tmp_add_list, hlist) { in i40e_correct_vf_mac_vlan_filters() 1541 new_mac->f->vlan = i40e_get_vf_new_vlan(vsi, new_mac, NULL, in i40e_correct_vf_mac_vlan_filters() 1553 new_mac = kzalloc(sizeof(*new_mac), GFP_ATOMIC); in i40e_correct_vf_mac_vlan_filters() 1554 if (!new_mac) in i40e_correct_vf_mac_vlan_filters() 1556 new_mac->f = add_head; in i40e_correct_vf_mac_vlan_filters() 1557 new_mac->state = add_head->state; in i40e_correct_vf_mac_vlan_filters() [all …]
|
| /drivers/net/ethernet/intel/iavf/ |
| A D | iavf_main.c | 1012 const u8 *new_mac) in iavf_replace_primary_mac() argument 1020 new_f = iavf_add_filter(adapter, new_mac); in iavf_replace_primary_mac() 1037 ether_addr_copy(hw->mac.addr, new_mac); in iavf_replace_primary_mac()
|
| /drivers/net/ethernet/mellanox/mlxsw/ |
| A D | spectrum_router.c | 9072 const char *new_mac) in mlxsw_sp_rif_mac_profile_edit() argument 9082 ether_addr_copy(profile->mac_prefix, new_mac); in mlxsw_sp_rif_mac_profile_edit() 9089 const char *new_mac, in mlxsw_sp_rif_mac_profile_replace() argument 9096 !mlxsw_sp_rif_mac_profile_find(mlxsw_sp, new_mac)) in mlxsw_sp_rif_mac_profile_replace() 9097 return mlxsw_sp_rif_mac_profile_edit(rif, new_mac); in mlxsw_sp_rif_mac_profile_replace() 9099 err = mlxsw_sp_rif_mac_profile_get(mlxsw_sp, new_mac, in mlxsw_sp_rif_mac_profile_replace()
|