From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E47BCD520 for ; Mon, 26 Jun 2023 17:35:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFCB2C433C9; Mon, 26 Jun 2023 17:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687800943; bh=EEPs2DR/KfDaVuYAcKCmgZfrTMCbwF9L2Tr2+TY9IQ8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JW8nAjsJNsHMKIdCsloXuJAIWcJX3RHyNnjOy26z5Ss62OkvFeWgWU2YBSOO8vitT MLsS+AZTryGwfkfN2eLWK7DVW3ETTr9RoNW51GJlizAQnLEwBEGELg/2V861GT6KbJ gmT15NowpdwTq6Bzj0OR0R2dRWaetCuKesdKWP2hWP5fNAz2d+jv67MMVAf1UDl+7S vCoedc2GHJEYNB6YRlLbYlRCXU5a0BnZMHb2uLKayy7IvMaRXulFBCYunPrl1EdbK3 wAYyRUIkulOFCQEP/bDBH7NDAiIqHZZFf8e2yZLf7BGEY/Styv6FxPM/kwwJ3MYVqb EODhpYGuef/Gw== Date: Mon, 26 Jun 2023 10:35:42 -0700 From: Jakub Kicinski To: Michal Swiatkowski Cc: Tony Nguyen , davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, netdev@vger.kernel.org, Wojciech Drewek , jiri@resnulli.us, ivecera@redhat.com, simon.horman@corigine.com, Sujai Buvaneswaran , Vlad Buslov Subject: Re: [PATCH net-next 06/12] ice: Implement basic eswitch bridge setup Message-ID: <20230626103542.68800299@kernel.org> In-Reply-To: References: <20230620174423.4144938-1-anthony.l.nguyen@intel.com> <20230620174423.4144938-7-anthony.l.nguyen@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 26 Jun 2023 16:26:15 +0200 Michal Swiatkowski wrote: > We found out that adding VF and corresponding port representor to the > bridge cause loop in the bridge. Packets are looping through the bridge. > I know that it isn't valid configuration, howevere, it can happen and > after that the server is quite unstable. > > Does mellanox validate the port for this scenario? Or we should assume > that user will add port wisely? I was looking at your code, but didn't > find that. You are using NETDEV_PRECHANGEUPPER, do you think we should > validate if user is trying to add VF when his PR is currently added? Can you try to plug two ends of a veth into a bridge and see if the same thing happens? My instinct is that this is a classic bridge problem and the answer is STP.