Home
last modified time | relevance | path

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

/linux-6.1.9/arch/mips/cavium-octeon/
Docteon-platform.c568 u8 new_mac[6]; in octeon_fdt_set_mac_addr() local
577 new_mac[0] = (mac >> 40) & 0xff; in octeon_fdt_set_mac_addr()
578 new_mac[1] = (mac >> 32) & 0xff; in octeon_fdt_set_mac_addr()
579 new_mac[2] = (mac >> 24) & 0xff; in octeon_fdt_set_mac_addr()
580 new_mac[3] = (mac >> 16) & 0xff; in octeon_fdt_set_mac_addr()
581 new_mac[4] = (mac >> 8) & 0xff; in octeon_fdt_set_mac_addr()
582 new_mac[5] = mac & 0xff; in octeon_fdt_set_mac_addr()
585 new_mac, sizeof(new_mac)); in octeon_fdt_set_mac_addr()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c951 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr() local
953 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_mac_addr()
959 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr()
967 return ixgbe_set_vf_mac(adapter, vf, new_mac) < 0; in ixgbe_set_vf_mac_addr()
995 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg() local
1010 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_macvlan_msg()
1027 err = ixgbe_set_vf_macvlan(adapter, vf, index, new_mac); in ixgbe_set_vf_macvlan_msg()
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_hash.c1355 u8 *old_mac, u8 *new_mac, u32 *seq_id) in rvu_npc_exact_update_table_entry() argument
1382 new_mac, table->mem_table.mask, in rvu_npc_exact_update_table_entry()
1393 mdata = rvu_exact_prepare_table_entry(rvu, true, entry->ctype, entry->chan, new_mac); in rvu_npc_exact_update_table_entry()
1401 ether_addr_copy(entry->mac, new_mac); in rvu_npc_exact_update_table_entry()
1409 __func__, old_mac, new_mac); in rvu_npc_exact_update_table_entry()
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf.h579 const u8 *new_mac);
Diavf_main.c1003 const u8 *new_mac) in iavf_replace_primary_mac() argument
1020 f = iavf_add_filter(adapter, new_mac); in iavf_replace_primary_mac()
1029 ether_addr_copy(hw->mac.addr, new_mac); in iavf_replace_primary_mac()
/linux-6.1.9/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);
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_main.c1462 struct i40e_new_mac_filter *new_mac, in i40e_get_vf_new_vlan() argument
1471 if (new_mac) in i40e_get_vf_new_vlan()
1472 f = new_mac->f; in i40e_get_vf_new_vlan()
1518 struct i40e_new_mac_filter *new_mac; in i40e_correct_vf_mac_vlan_filters() local
1522 hlist_for_each_entry(new_mac, tmp_add_list, hlist) { in i40e_correct_vf_mac_vlan_filters()
1523 new_mac->f->vlan = i40e_get_vf_new_vlan(vsi, new_mac, NULL, in i40e_correct_vf_mac_vlan_filters()
1535 new_mac = kzalloc(sizeof(*new_mac), GFP_ATOMIC); in i40e_correct_vf_mac_vlan_filters()
1536 if (!new_mac) in i40e_correct_vf_mac_vlan_filters()
1538 new_mac->f = add_head; in i40e_correct_vf_mac_vlan_filters()
1539 new_mac->state = add_head->state; in i40e_correct_vf_mac_vlan_filters()
[all …]
/linux-6.1.9/include/linux/mlx4/
Ddevice.h1381 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);
/linux-6.1.9/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()