Home
last modified time | relevance | path

Searched refs:new_mac (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/arch/mips/cavium-octeon/
H A 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()
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/
H A Docteon-platform.c569 u8 new_mac[6]; in octeon_fdt_set_mac_addr() local
578 new_mac[0] = (mac >> 40) & 0xff; in octeon_fdt_set_mac_addr()
579 new_mac[1] = (mac >> 32) & 0xff; in octeon_fdt_set_mac_addr()
580 new_mac[2] = (mac >> 24) & 0xff; in octeon_fdt_set_mac_addr()
581 new_mac[3] = (mac >> 16) & 0xff; in octeon_fdt_set_mac_addr()
582 new_mac[4] = (mac >> 8) & 0xff; in octeon_fdt_set_mac_addr()
583 new_mac[5] = mac & 0xff; in octeon_fdt_set_mac_addr()
586 new_mac, sizeof(new_mac)); in octeon_fdt_set_mac_addr()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
H A Dhinic_sriov.h65 u8 new_mac[ETH_ALEN]; member
H A Dhinic_main.c640 unsigned char new_mac[ETH_ALEN]; in hinic_set_mac_addr() local
644 memcpy(new_mac, saddr->sa_data, ETH_ALEN); in hinic_set_mac_addr()
646 err = change_mac_addr(netdev, new_mac); in hinic_set_mac_addr()
648 memcpy(netdev->dev_addr, new_mac, ETH_ALEN); in hinic_set_mac_addr()
H A Dhinic_sriov.c516 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac()
522 if (!hwdev || !old_mac || !new_mac) in hinic_update_mac()
534 memcpy(mac_info.new_mac, new_mac, ETH_ALEN); in hinic_update_mac()
515 hinic_update_mac(struct hinic_hwdev *hwdev, u8 *old_mac, u8 *new_mac, u16 vlan_id, u16 func_id) hinic_update_mac() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/
H A Dhinic_sriov.h65 u8 new_mac[ETH_ALEN]; member
H A 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()
H A Dhinic_sriov.c536 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac()
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()
535 hinic_update_mac(struct hinic_hwdev *hwdev, u8 *old_mac, u8 *new_mac, u16 vlan_id, u16 func_id) hinic_update_mac() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Den_netdev.c699 unsigned char *new_mac, unsigned char *prev_mac) in mlx4_en_replace_mac()
704 u64 new_mac_u64 = mlx4_mac_to_u64(new_mac); in mlx4_en_replace_mac()
722 memcpy(entry->mac, new_mac, ETH_ALEN); in mlx4_en_replace_mac()
724 mac_hash = new_mac[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_replace_mac()
728 err = mlx4_en_uc_steer_add(priv, new_mac, in mlx4_en_replace_mac()
737 err = mlx4_en_tunnel_steer_add(priv, new_mac, qpn, in mlx4_en_replace_mac()
749 unsigned char new_mac[ETH_ALEN + 2]) in mlx4_en_update_user_mac()
757 err = mlx4_SET_PORT_user_mac(mdev->dev, priv->port, new_mac); in mlx4_en_update_user_mac()
760 new_mac, priv->port, err); in mlx4_en_update_user_mac()
764 unsigned char new_mac[ETH_ALE in mlx4_en_do_set_mac()
698 mlx4_en_replace_mac(struct mlx4_en_priv *priv, int qpn, unsigned char *new_mac, unsigned char *prev_mac) mlx4_en_replace_mac() argument
788 unsigned char new_mac[ETH_ALEN + 2]; mlx4_en_set_mac() local
[all...]
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Den_netdev.c700 unsigned char *new_mac, unsigned char *prev_mac) in mlx4_en_replace_mac()
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_ALE in mlx4_en_do_set_mac()
699 mlx4_en_replace_mac(struct mlx4_en_priv *priv, int qpn, unsigned char *new_mac, unsigned char *prev_mac) mlx4_en_replace_mac() argument
789 unsigned char new_mac[ETH_ALEN + 2]; mlx4_en_set_mac() local
[all...]
H A 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c1387 * @new_mac: New MAC address entry.
1395 u8 *old_mac, u8 *new_mac, u32 *seq_id) in rvu_npc_exact_update_table_entry()
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()
1448 dev_dbg(rvu->dev, "%s: Successfully updated entry (old mac=%pM new_mac=%pM\n", in rvu_npc_exact_update_table_entry()
1449 __func__, old_mac, new_mac); in rvu_npc_exact_update_table_entry()
1394 rvu_npc_exact_update_table_entry(struct rvu *rvu, u8 cgx_id, u8 lmac_id, u8 *old_mac, u8 *new_mac, u32 *seq_id) rvu_npc_exact_update_table_entry() argument
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
H A Dmain.c946 u8 *new_mac) in mwifiex_set_mac_address()
954 mac_addr = ether_addr_to_u64(new_mac); in mwifiex_set_mac_address()
944 mwifiex_set_mac_address(struct mwifiex_private *priv, struct net_device *dev, bool external, u8 *new_mac) mwifiex_set_mac_address() argument
H A Dmain.h1707 bool external, u8 *new_mac);
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/
H A Dmain.c968 u8 *new_mac) in mwifiex_set_mac_address()
976 mac_addr = ether_addr_to_u64(new_mac); in mwifiex_set_mac_address()
966 mwifiex_set_mac_address(struct mwifiex_private *priv, struct net_device *dev, bool external, u8 *new_mac) mwifiex_set_mac_address() argument
H A Dmain.h1687 bool external, u8 *new_mac);
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/
H A Di40e_main.c1456 * @new_mac: new mac filter to be added
1457 * @f: existing mac filter, replaced with new_mac->f if new_mac is not NULL
1468 struct i40e_new_mac_filter *new_mac, in i40e_get_vf_new_vlan()
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, NUL in i40e_correct_vf_mac_vlan_filters()
1467 i40e_get_vf_new_vlan(struct i40e_vsi *vsi, struct i40e_new_mac_filter *new_mac, struct i40e_mac_filter *f, int vlan_filters, bool trusted) i40e_get_vf_new_vlan() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/iavf/
H A Diavf_main.c1008 * @new_mac: new MAC address to be applied
1017 const u8 *new_mac) in iavf_replace_primary_mac()
1025 new_f = iavf_add_filter(adapter, new_mac); in iavf_replace_primary_mac()
1043 ether_addr_copy(hw->mac.addr, new_mac); in iavf_replace_primary_mac()
1016 iavf_replace_primary_mac(struct iavf_adapter *adapter, const u8 *new_mac) iavf_replace_primary_mac() argument
/kernel/linux/linux-5.10/include/linux/mlx4/
H A Ddevice.h1382 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);
/kernel/linux/linux-6.6/include/linux/mlx4/
H A Ddevice.h1401 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c8853 const char *new_mac) in mlxsw_sp_rif_mac_profile_edit()
8863 ether_addr_copy(profile->mac_prefix, new_mac); in mlxsw_sp_rif_mac_profile_edit()
8870 const char *new_mac, in mlxsw_sp_rif_mac_profile_replace()
8877 !mlxsw_sp_rif_mac_profile_find(mlxsw_sp, new_mac)) in mlxsw_sp_rif_mac_profile_replace()
8878 return mlxsw_sp_rif_mac_profile_edit(rif, new_mac); in mlxsw_sp_rif_mac_profile_replace()
8880 err = mlxsw_sp_rif_mac_profile_get(mlxsw_sp, new_mac, in mlxsw_sp_rif_mac_profile_replace()
8852 mlxsw_sp_rif_mac_profile_edit(struct mlxsw_sp_rif *rif, const char *new_mac) mlxsw_sp_rif_mac_profile_edit() argument
8868 mlxsw_sp_rif_mac_profile_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif, const char *new_mac, struct netlink_ext_ack *extack) mlxsw_sp_rif_mac_profile_replace() argument

Completed in 72 milliseconds