/linux-master/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.h | 65 u8 new_mac[ETH_ALEN]; member in struct:hinic_port_mac_update
|
H A D | hinic_main.c | 633 unsigned char new_mac[ETH_ALEN]; local 637 memcpy(new_mac, saddr->sa_data, ETH_ALEN); 639 err = change_mac_addr(netdev, new_mac); 641 eth_hw_addr_set(netdev, new_mac);
|
H A D | hinic_sriov.c | 536 u8 *new_mac, u16 vlan_id, u16 func_id) 542 if (!hwdev || !old_mac || !new_mac) 554 memcpy(mac_info.new_mac, new_mac, ETH_ALEN); 535 hinic_update_mac(struct hinic_hwdev *hwdev, u8 *old_mac, u8 *new_mac, u16 vlan_id, u16 func_id) argument
|
/linux-master/arch/mips/cavium-octeon/ |
H A D | octeon-platform.c | 569 u8 new_mac[6]; local 578 new_mac[0] = (mac >> 40) & 0xff; 579 new_mac[1] = (mac >> 32) & 0xff; 580 new_mac[2] = (mac >> 24) & 0xff; 581 new_mac[3] = (mac >> 16) & 0xff; 582 new_mac[4] = (mac >> 8) & 0xff; 583 new_mac[5] = mac & 0xff; 586 new_mac, sizeof(new_mac));
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_netdev.c | 701 unsigned char *new_mac, unsigned char *prev_mac) 706 u64 new_mac_u64 = ether_addr_to_u64(new_mac); 724 memcpy(entry->mac, new_mac, ETH_ALEN); 726 mac_hash = new_mac[MLX4_EN_MAC_HASH_IDX]; 730 err = mlx4_en_uc_steer_add(priv, new_mac, 739 err = mlx4_en_tunnel_steer_add(priv, new_mac, qpn, 751 unsigned char new_mac[ETH_ALEN + 2]) 759 err = mlx4_SET_PORT_user_mac(mdev->dev, priv->port, new_mac); 762 new_mac, priv->port, err); 766 unsigned char new_mac[ETH_ALE 700 mlx4_en_replace_mac(struct mlx4_en_priv *priv, int qpn, unsigned char *new_mac, unsigned char *prev_mac) argument 790 unsigned char new_mac[ETH_ALEN + 2]; local [all...] |
H A D | port.c | 474 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac) argument 501 table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); 506 (unsigned long long) new_mac); 510 dup_table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); 515 (unsigned long long)new_mac);
|
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 949 u8 *new_mac = ((u8 *)(&msgbuf[1])); local 951 if (!is_valid_ether_addr(new_mac)) { 957 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { 965 return ixgbe_set_vf_mac(adapter, vf, new_mac) < 0; 993 u8 *new_mac = ((u8 *)(&msgbuf[1])); local 1007 if (!is_valid_ether_addr(new_mac)) { 1024 err = ixgbe_set_vf_macvlan(adapter, vf, index, new_mac);
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npc_hash.c | 1387 * @new_mac: New MAC address entry. 1395 u8 *old_mac, u8 *new_mac, u32 *seq_id) 1422 new_mac, table->mem_table.mask, 1433 mdata = rvu_exact_prepare_table_entry(rvu, true, entry->ctype, entry->chan, new_mac); 1441 ether_addr_copy(entry->mac, new_mac); 1448 dev_dbg(rvu->dev, "%s: Successfully updated entry (old mac=%pM new_mac=%pM\n", 1449 __func__, old_mac, new_mac); 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) argument
|
/linux-master/drivers/net/wireless/marvell/mwifiex/ |
H A D | main.c | 968 u8 *new_mac) 976 mac_addr = ether_addr_to_u64(new_mac); 966 mwifiex_set_mac_address(struct mwifiex_private *priv, struct net_device *dev, bool external, u8 *new_mac) argument
|
H A D | main.h | 1684 bool external, u8 *new_mac);
|
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_main.c | 1463 * @new_mac: new mac filter to be added 1464 * @f: existing mac filter, replaced with new_mac->f if new_mac is not NULL 1475 struct i40e_new_mac_filter *new_mac, 1484 if (new_mac) 1485 f = new_mac->f; 1531 struct i40e_new_mac_filter *new_mac; local 1535 hlist_for_each_entry(new_mac, tmp_add_list, hlist) { 1536 new_mac->f->vlan = i40e_get_vf_new_vlan(vsi, new_mac, NUL 1474 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) argument [all...] |
/linux-master/include/linux/mlx4/ |
H A D | device.h | 1401 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);
|
/linux-master/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_main.c | 1007 * @new_mac: new MAC address to be applied 1016 const u8 *new_mac) 1024 new_f = iavf_add_filter(adapter, new_mac); 1041 ether_addr_copy(hw->mac.addr, new_mac); 1015 iavf_replace_primary_mac(struct iavf_adapter *adapter, const u8 *new_mac) argument
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_router.c | 9120 const char *new_mac) 9130 ether_addr_copy(profile->mac_prefix, new_mac); 9137 const char *new_mac, 9144 !mlxsw_sp_rif_mac_profile_find(mlxsw_sp, new_mac)) 9145 return mlxsw_sp_rif_mac_profile_edit(rif, new_mac); 9147 err = mlxsw_sp_rif_mac_profile_get(mlxsw_sp, new_mac, 9119 mlxsw_sp_rif_mac_profile_edit(struct mlxsw_sp_rif *rif, const char *new_mac) argument 9135 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) argument
|