Home
last modified time | relevance | path

Searched refs:new_mac (Results 1 – 12 of 12) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c700 unsigned char *new_mac, unsigned char *prev_mac) in mlx4_en_replace_mac() argument
705 u64 new_mac_u64 = ether_addr_to_u64(new_mac); in mlx4_en_replace_mac()
723 memcpy(entry->mac, new_mac, ETH_ALEN); in mlx4_en_replace_mac()
725 mac_hash = new_mac[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_replace_mac()
729 err = mlx4_en_uc_steer_add(priv, new_mac, in mlx4_en_replace_mac()
738 err = mlx4_en_tunnel_steer_add(priv, new_mac, qpn, in mlx4_en_replace_mac()
750 unsigned char new_mac[ETH_ALEN + 2]) in mlx4_en_update_user_mac()
758 err = mlx4_SET_PORT_user_mac(mdev->dev, priv->port, new_mac); in mlx4_en_update_user_mac()
761 new_mac, priv->port, err); in mlx4_en_update_user_mac()
765 unsigned char new_mac[ETH_ALEN + 2]) in mlx4_en_do_set_mac()
[all …]
Dport.c474 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac) in __mlx4_replace_mac() argument
501 table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac()
506 (unsigned long long) new_mac); in __mlx4_replace_mac()
510 dup_table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac()
515 (unsigned long long)new_mac); in __mlx4_replace_mac()
/drivers/net/ethernet/huawei/hinic/
Dhinic_sriov.h65 u8 new_mac[ETH_ALEN]; member
Dhinic_main.c633 unsigned char new_mac[ETH_ALEN]; in hinic_set_mac_addr() local
637 memcpy(new_mac, saddr->sa_data, ETH_ALEN); in hinic_set_mac_addr()
639 err = change_mac_addr(netdev, new_mac); in hinic_set_mac_addr()
641 eth_hw_addr_set(netdev, new_mac); in hinic_set_mac_addr()
Dhinic_sriov.c518 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac() argument
524 if (!hwdev || !old_mac || !new_mac) in hinic_update_mac()
536 memcpy(mac_info.new_mac, new_mac, ETH_ALEN); in hinic_update_mac()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c952 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr() local
954 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_mac_addr()
960 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr()
968 return ixgbe_set_vf_mac(adapter, vf, new_mac) < 0; in ixgbe_set_vf_mac_addr()
996 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg() local
1011 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_macvlan_msg()
1028 err = ixgbe_set_vf_macvlan(adapter, vf, index, new_mac); in ixgbe_set_vf_macvlan_msg()
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_hash.c1411 u8 *old_mac, u8 *new_mac, u32 *seq_id) in rvu_npc_exact_update_table_entry() argument
1438 new_mac, table->mem_table.mask, in rvu_npc_exact_update_table_entry()
1449 mdata = rvu_exact_prepare_table_entry(rvu, true, entry->ctype, entry->chan, new_mac); in rvu_npc_exact_update_table_entry()
1457 ether_addr_copy(entry->mac, new_mac); in rvu_npc_exact_update_table_entry()
1465 __func__, old_mac, new_mac); in rvu_npc_exact_update_table_entry()
/drivers/net/wireless/marvell/mwifiex/
Dmain.c973 u8 *new_mac) in mwifiex_set_mac_address() argument
981 mac_addr = ether_addr_to_u64(new_mac); in mwifiex_set_mac_address()
Dmain.h1698 bool external, u8 *new_mac);
/drivers/net/ethernet/intel/i40e/
Di40e_main.c1468 struct i40e_new_mac_filter *new_mac, in i40e_get_vf_new_vlan() argument
1477 if (new_mac) in i40e_get_vf_new_vlan()
1478 f = new_mac->f; in i40e_get_vf_new_vlan()
1524 struct i40e_new_mac_filter *new_mac; in i40e_correct_vf_mac_vlan_filters() local
1528 hlist_for_each_entry(new_mac, tmp_add_list, hlist) { in i40e_correct_vf_mac_vlan_filters()
1529 new_mac->f->vlan = i40e_get_vf_new_vlan(vsi, new_mac, NULL, in i40e_correct_vf_mac_vlan_filters()
1541 new_mac = kzalloc(sizeof(*new_mac), GFP_ATOMIC); in i40e_correct_vf_mac_vlan_filters()
1542 if (!new_mac) in i40e_correct_vf_mac_vlan_filters()
1544 new_mac->f = add_head; in i40e_correct_vf_mac_vlan_filters()
1545 new_mac->state = add_head->state; in i40e_correct_vf_mac_vlan_filters()
[all …]
/drivers/net/ethernet/intel/iavf/
Diavf_main.c1046 const u8 *new_mac) in iavf_replace_primary_mac() argument
1063 f = iavf_add_filter(adapter, new_mac); in iavf_replace_primary_mac()
1072 ether_addr_copy(hw->mac.addr, new_mac); in iavf_replace_primary_mac()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c8429 const char *new_mac) in mlxsw_sp_rif_mac_profile_edit() argument
8439 ether_addr_copy(profile->mac_prefix, new_mac); in mlxsw_sp_rif_mac_profile_edit()
8446 const char *new_mac, in mlxsw_sp_rif_mac_profile_replace() argument
8453 !mlxsw_sp_rif_mac_profile_find(mlxsw_sp, new_mac)) in mlxsw_sp_rif_mac_profile_replace()
8454 return mlxsw_sp_rif_mac_profile_edit(rif, new_mac); in mlxsw_sp_rif_mac_profile_replace()
8456 err = mlxsw_sp_rif_mac_profile_get(mlxsw_sp, new_mac, in mlxsw_sp_rif_mac_profile_replace()