Home
last modified time | relevance | path

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

/linux-4.4.14/arch/mips/cavium-octeon/
Docteon-platform.c528 u8 new_mac[6]; in octeon_fdt_set_mac_addr() local
532 new_mac[0] = (mac >> 40) & 0xff; in octeon_fdt_set_mac_addr()
533 new_mac[1] = (mac >> 32) & 0xff; in octeon_fdt_set_mac_addr()
534 new_mac[2] = (mac >> 24) & 0xff; in octeon_fdt_set_mac_addr()
535 new_mac[3] = (mac >> 16) & 0xff; in octeon_fdt_set_mac_addr()
536 new_mac[4] = (mac >> 8) & 0xff; in octeon_fdt_set_mac_addr()
537 new_mac[5] = mac & 0xff; in octeon_fdt_set_mac_addr()
540 new_mac, sizeof(new_mac)); in octeon_fdt_set_mac_addr()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c752 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr() local
754 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_mac_addr()
760 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr()
768 return ixgbe_set_vf_mac(adapter, vf, new_mac) < 0; in ixgbe_set_vf_mac_addr()
867 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg() local
881 if (!is_valid_ether_addr(new_mac)) { in ixgbe_set_vf_macvlan_msg()
894 err = ixgbe_set_vf_macvlan(adapter, vf, index, new_mac); in ixgbe_set_vf_macvlan_msg()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c628 unsigned char *new_mac, unsigned char *prev_mac) in mlx4_en_replace_mac() argument
633 u64 new_mac_u64 = mlx4_mac_to_u64(new_mac); in mlx4_en_replace_mac()
651 memcpy(entry->mac, new_mac, ETH_ALEN); in mlx4_en_replace_mac()
653 mac_hash = new_mac[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_replace_mac()
657 err = mlx4_en_uc_steer_add(priv, new_mac, in mlx4_en_replace_mac()
666 err = mlx4_en_tunnel_steer_add(priv, new_mac, qpn, in mlx4_en_replace_mac()
678 unsigned char new_mac[ETH_ALEN + 2]) in mlx4_en_do_set_mac()
685 new_mac, priv->current_mac); in mlx4_en_do_set_mac()
692 memcpy(priv->current_mac, new_mac, sizeof(priv->current_mac)); in mlx4_en_do_set_mac()
702 unsigned char new_mac[ETH_ALEN + 2]; in mlx4_en_set_mac() local
[all …]
Dport.c308 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac) in __mlx4_replace_mac() argument
322 table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID); in __mlx4_replace_mac()
327 (unsigned long long) new_mac); in __mlx4_replace_mac()
/linux-4.4.14/include/linux/mlx4/
Ddevice.h1344 int __mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);