Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3642349pxb; Mon, 24 Jan 2022 14:13:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyY/OJ7cx1fFV6FYZcA1DCt8XOk7sNWw3NXh7OZOonDH/pHfrjVTT0g3kvtypoBvED/JSK X-Received: by 2002:a63:b202:: with SMTP id x2mr13601116pge.234.1643062408909; Mon, 24 Jan 2022 14:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643062408; cv=none; d=google.com; s=arc-20160816; b=dYy+QKOH1xJ+iqFwEoJPWxtIaS5RZOMefmPeYfUk6NfcYftcIcpM5yZ7Z2urzdOgjf FRtpFyMDNj0lCOc82QU0/XSCJf21uX6YIezVkngNLcSbhfn7MUTSd58iz+/SyG/jG+20 fEpymjq/12eYgTp+A45zh9GUidPVZ72yCWpcg827dWK6o0VPvKgg2DmSHC2EgMhlKdaT tf2tS0jFsI0eyEWJeuQzdHHXmPLGK7KH2kCnk9oRORg+21xx+wVduwI0lJjMA7AkG/kB puqzh1bPpe8wdUc9H83ThkESRBJoZD1F4LnTfFzRuKoZ5o9Qesa15M4r5KlzPgP4+mwD 9JvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=I90es1oRBHSqQjIUSswFl2MbdZ1zGSOhVt7kxz9QDFg=; b=yrewSrSkPhhrzGSZ4V2askYPgeZO5Ym1MyfF5QztvB0HkRGACoH8p3PXlTAtc8XP9v IkNjnMFeAbORH6NWeHrE4UuJ2LX1NR+4gmgiq/AAXZl1HlPXpJyagvzJnt6OvzlFGYMH DNArJ5xDuiPaLNHNO31RQCG8MsmphNjFrhNJPxKITXaLZ14TdFpXhra2qHeZeBdshjt3 AO8AuG9Z/f3TLTrMn0jgLdsYV65WCnilYkKelcASbfbVttOQalkgKE1/dy1MmTHvu2r5 Cfj0BKj9gQ9jCU5O+TIRi2KWJXwT37ACefqZE9RUoyTrXB/uvVfXxTXgaBw9LWfla2Wr CFVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W7fKrqkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si493572pjg.38.2022.01.24.14.13.14; Mon, 24 Jan 2022 14:13:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W7fKrqkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1577472AbiAXWAQ (ORCPT + 99 others); Mon, 24 Jan 2022 17:00:16 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:38404 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449343AbiAXVP1 (ORCPT ); Mon, 24 Jan 2022 16:15:27 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 551FC6146B; Mon, 24 Jan 2022 21:15:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34E55C340E5; Mon, 24 Jan 2022 21:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058920; bh=pscer4LBca1NjCsM5kMhMA1sNz9foyx1pqD75dRCRa4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W7fKrqkcYJTvugtlAEDem7mGVxMpNPVPmzV43p7FG7cAqVUl8jfohxyOQRFc0Dqx2 oCufJ6vTK6kvL+6BRgFJVnEXQVQW7LS3IOdtvbLtobO8mxee1sXk3es+B/lbMX3sSP Pz4KhMQK+OnSVg17NVEmo45aqHyFSr2fe7fjejck= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maor Dickman , Roi Dayan , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.16 0413/1039] net/mlx5e: Sync VXLAN udp ports during uplink representor profile change Date: Mon, 24 Jan 2022 19:36:42 +0100 Message-Id: <20220124184139.201912951@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maor Dickman [ Upstream commit 07f6dc4024ea1d2314b9c8b81fd4e492864fcca1 ] Currently during NIC profile disablement all VXLAN udp ports offloaded to the HW are flushed and during its enablement the driver send notification to the stack to inform the core that the entire UDP tunnel port state has been lost, uplink representor doesn't have the same behavior which can cause VXLAN udp ports offload to be in bad state while moving between modes while VXLAN interface exist. Fixed by aligning the uplink representor profile behavior to the NIC behavior. Fixes: 84db66124714 ("net/mlx5e: Move set vxlan nic info to profile init") Signed-off-by: Maor Dickman Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index 48895d79796a8..c0df4b1115b72 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -50,6 +50,7 @@ #include "fs_core.h" #include "lib/mlx5.h" #include "lib/devcom.h" +#include "lib/vxlan.h" #define CREATE_TRACE_POINTS #include "diag/en_rep_tracepoint.h" #include "en_accel/ipsec.h" @@ -1027,6 +1028,7 @@ static void mlx5e_uplink_rep_enable(struct mlx5e_priv *priv) rtnl_lock(); if (netif_running(netdev)) mlx5e_open(netdev); + udp_tunnel_nic_reset_ntf(priv->netdev); netif_device_attach(netdev); rtnl_unlock(); } @@ -1048,6 +1050,7 @@ static void mlx5e_uplink_rep_disable(struct mlx5e_priv *priv) mlx5_notifier_unregister(mdev, &priv->events_nb); mlx5e_rep_tc_disable(priv); mlx5_lag_remove_netdev(mdev, priv->netdev); + mlx5_vxlan_reset_to_default(mdev->vxlan); } static MLX5E_DEFINE_STATS_GRP(sw_rep, 0); -- 2.34.1