Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3668589pxb; Mon, 24 Jan 2022 14:56:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4/edPpIILGbPJQcOUqPs64MLb6RJpw5FfhEFDFNJyw8G93inRuIn4Kh2XR13RNpGf7crL X-Received: by 2002:a17:902:b592:b0:14a:d75a:11c0 with SMTP id a18-20020a170902b59200b0014ad75a11c0mr15794311pls.81.1643064967409; Mon, 24 Jan 2022 14:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064967; cv=none; d=google.com; s=arc-20160816; b=YAi/fmFhSnUeE9tm3vXpkOFLMETRJKACNQjgfF2nAAZ5pzyZy52ce9zO2SsjfLkA9d w0rwOeV4IZFGeaTcEShx/t9BPM/RILspqPmtSBwu+vrNSn/lZGcv6MjiRSdEGeG0EdVF 5wvQMtUvW5iRoc1aXAobV47UJ2idOZD4xiHCbcOea3jv6XeNjursSJScHLJ07baeLvsl 2XtJCC+q9GYYmasoAgUTWT5APcu+iDZI7LbLbFfRRcHBRRrXLf0+9P6+me9dDmYMqnpU ZdPMFamrxQttH2soVUVYJMc/Yvv5uj/XZSqB7vhoorZRaPkjYKBPhaVQJWGgpFDZTNus 486g== 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=43XTiWjLFytZFk7wdEjsWNHMAonElu3bNF5f8yUneIo=; b=ragsNlY0I0H4h46VnV05es9zHPoke2/8fPYiUMJaxIsuQGSdpB9kGBX5TGzVIJ/gqO oaWlwoqmm0Sqz2D2bSOi3aWeTU8ZwoCWGHER43vBGXaAWnuCUrru8nAcza3trLLqBJ4X updMlbFsmfaTumUIrHtFFllIPBJPdvlNWOdhidv7xWxcNhGVdcjwpqeX8+wFf//M6Guz O2bagAB9edkUHrdFpQyujGv4FxuxOyoJJuKNbGlKNQjQQQQo2+L/vflAdcgl+WpAExu7 cECpTHxw+Mnzn1bZdba003bjpNii0XPDsVhu38oUbYeyZyDtd7+7aep5CpOjUOcrkcrQ Ybhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FYaJF6mK; 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 b18si14781379pfv.107.2022.01.24.14.55.55; Mon, 24 Jan 2022 14:56:07 -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=FYaJF6mK; 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 S1840140AbiAXWwo (ORCPT + 99 others); Mon, 24 Jan 2022 17:52:44 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:52876 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573671AbiAXVpg (ORCPT ); Mon, 24 Jan 2022 16:45:36 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2694CB80FA1; Mon, 24 Jan 2022 21:45:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 244AEC340E5; Mon, 24 Jan 2022 21:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060733; bh=uyerVO+UteF3ZIZcetYXxzLHy9BxVQRYWe9gb8chIxo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FYaJF6mKTujXVkF00S0VJt32QmhX0oQpnf52i8xK1cfEnx0bwPr8Ezje61NchESpw FHyJx19L4WjTqScOPO41cXLy4NAyNP89/TVpTyStMibGUBcJn9HXGl158Bhp+002Y5 LPsr4ETpT8wYT1rj5eCloJCZCuKjh28dHFjIk4Ik= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Horatiu Vultur , Vladimir Oltean , "David S. Miller" Subject: [PATCH 5.16 1017/1039] net: ocelot: Fix the call to switchdev_bridge_port_offload Date: Mon, 24 Jan 2022 19:46:46 +0100 Message-Id: <20220124184159.481452009@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: Horatiu Vultur commit c0b7f7d7e0ad44f35745c01964b3fa2833e298cb upstream. In the blamed commit, the call to the function switchdev_bridge_port_offload was passing the wrong argument for atomic_nb. It was ocelot_netdevice_nb instead of ocelot_swtchdev_nb. This patch fixes this issue. Fixes: 4e51bf44a03af6 ("net: bridge: move the switchdev object replay helpers to "push" mode") Signed-off-by: Horatiu Vultur Reviewed-by: Vladimir Oltean Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mscc/ocelot_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/mscc/ocelot_net.c +++ b/drivers/net/ethernet/mscc/ocelot_net.c @@ -1168,7 +1168,7 @@ static int ocelot_netdevice_bridge_join( ocelot_port_bridge_join(ocelot, port, bridge); err = switchdev_bridge_port_offload(brport_dev, dev, priv, - &ocelot_netdevice_nb, + &ocelot_switchdev_nb, &ocelot_switchdev_blocking_nb, false, extack); if (err) @@ -1182,7 +1182,7 @@ static int ocelot_netdevice_bridge_join( err_switchdev_sync: switchdev_bridge_port_unoffload(brport_dev, priv, - &ocelot_netdevice_nb, + &ocelot_switchdev_nb, &ocelot_switchdev_blocking_nb); err_switchdev_offload: ocelot_port_bridge_leave(ocelot, port, bridge); @@ -1195,7 +1195,7 @@ static void ocelot_netdevice_pre_bridge_ struct ocelot_port_private *priv = netdev_priv(dev); switchdev_bridge_port_unoffload(brport_dev, priv, - &ocelot_netdevice_nb, + &ocelot_switchdev_nb, &ocelot_switchdev_blocking_nb); }