Lines Matching refs:new_mac
700 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()
772 new_mac, priv->current_mac); in mlx4_en_do_set_mac()
779 memcpy(priv->current_mac, new_mac, sizeof(priv->current_mac)); in mlx4_en_do_set_mac()
789 unsigned char new_mac[ETH_ALEN + 2]; in mlx4_en_set_mac() local
796 memcpy(new_mac, saddr->sa_data, ETH_ALEN); in mlx4_en_set_mac()
797 err = mlx4_en_do_set_mac(priv, new_mac); in mlx4_en_set_mac()
802 mlx4_en_update_user_mac(priv, new_mac); in mlx4_en_set_mac()