Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3355055pxb; Mon, 17 Jan 2022 18:25:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrV4MxJmeLfImZgH8YTABXQcAKmfeMpk4qUMYJGk6QCtPE060q/WfpV88etSQZ2AWMEWDi X-Received: by 2002:a17:90b:180e:: with SMTP id lw14mr9591313pjb.246.1642472745661; Mon, 17 Jan 2022 18:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642472745; cv=none; d=google.com; s=arc-20160816; b=lbmuxk+Gms04doXqvxrLHBBkHofjbZ7axkYgkP2zmWN15ctuep7ZJ5kfTk7P5GS5nI G7Ol3kicP80H72ifVmfpb2MBs0NgCMv9/EpbiLGbbuO5Vza8QTB4dRz5OXW0ZCeGekYk k3lVEQkG7yLgVh6zjmFKDOKDCz6DgabfPhelAzZ7FuoLRlrTIXNFQlRzNNsF2OZJpBRq O2ArD5LNR9gjEZZTAXhG87E+2thRKdjFD8mu+EalV6Oi6Icsi7Up64PtyF5qB+lLp0Mr z+NaqYeUvDocElQwecEB8NJLutOVtunfWuKmyjkgK9DNi/m4W/eBRqdmvN49UibvSl9a Pmfw== 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 :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=v3zo/rpRwgtFBNYziHmhCNYrJd+wFvQPw4vqjUQ58kI=; b=XebKXZkVG/auJ1VNPR6aWRdJIqRGYrS2t5mnSqD5ZTlATUkSWYj+kQ4zFYkhcfHt5i 5hoO1c02bB0m0H1DoN0R1wUSueChCl9kX4RHAsF9ou6Oc1WMei37rvfanB4vJsvSBQ7k rOe9lIWYKvi1YThHM1rsTVcF5Imf6IIi1Tuy39NfL/IAbP/DxUDiKJ7jsjPypiq3HHka HWnDL/SnkZTbP+Uf24OUH2QOAMFtZT6bB0p74r66fWVC5UodhXHNoAIDAY3YTT+CKdbn yP4LFm/anENuQn7P+nf2+614Uoi9kPqrZ7DehkcN4ymbGBmYmwztUdoAKZa+dtNj67xg POfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=cqHKwMPr; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si13393156pla.432.2022.01.17.18.25.33; Mon, 17 Jan 2022 18:25:45 -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=fail header.i=@microchip.com header.s=mchp header.b=cqHKwMPr; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231974AbiAQMv3 (ORCPT + 99 others); Mon, 17 Jan 2022 07:51:29 -0500 Received: from esa.microchip.iphmx.com ([68.232.153.233]:22406 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbiAQMv2 (ORCPT ); Mon, 17 Jan 2022 07:51:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642423888; x=1673959888; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=i1l6PflMs0l94SJRa8OPWqA85z8skU0zFsppmUcRFmU=; b=cqHKwMPrCspQfjOIHAPAwpSrvzSUJHroS8AlPiobFfwexOUfYBY5pFVV n95iW78p6W8rjnb4jusCM3GLcvVBHFd+YCVkRxsE26vRcNZjZrDiKO2wJ GKLNxdJTpysbw4JGmj9DPstV84Fs2kAObFsol+y6Wb/PTjpQk6j233vKx CxzjlgIMGrKCTTRs+y0NfEaLDg04q23eag+8sVP3SBPBHTvCt/V0UfC0O CNs/8Jh2R4PMzJk96/N65HA+Ni1pdO3CwmUupqdjxJApd+mRGHy6pDk2H c4++91SDn4SDLmuYsMHKXzznHTpv0B05pxNiAU7ig3UGesGoL/BbFOZeI g==; IronPort-SDR: yOYB4IYh7rdLjhOb2MzZPtDnF3AVGOw2EEYGvt65r8YJy29+ET3UlHVK8uStMTY2k07sPo0J48 l6FzoqHmE827i93CwbNmlpMpTm06g1CHuwwnyZ/aqiKO1klLEbzACoiasQzPYFu6YR+NHascFL 414lBUyIetrkSHX/KcAeUOnUPZk3Q0siooByKOqTL+JqKT8UJ2oFolxKRQbBZGqFRiz9hdPQCn wYEbjC11UpRxfeiH9EVin0UuLYldyh0RIrhugVBbVrf4SNyZKgP8/VzOrGNy6BFCjTlCMVyBHZ Tb02FwyhR1f+10KKK/eEkG7e X-IronPort-AV: E=Sophos;i="5.88,295,1635231600"; d="scan'208";a="149877801" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Jan 2022 05:51:21 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 17 Jan 2022 05:51:18 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 17 Jan 2022 05:51:16 -0700 From: Horatiu Vultur To: , CC: , , , , , , Horatiu Vultur Subject: [PATCH net] net: ocelot: Fix the call to switchdev_bridge_port_offload Date: Mon, 17 Jan 2022 13:53:00 +0100 Message-ID: <20220117125300.2399394-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/mscc/ocelot_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/mscc/ocelot_net.c b/drivers/net/ethernet/mscc/ocelot_net.c index 8115c3db252e..e271b6225b72 100644 --- a/drivers/net/ethernet/mscc/ocelot_net.c +++ b/drivers/net/ethernet/mscc/ocelot_net.c @@ -1187,7 +1187,7 @@ static int ocelot_netdevice_bridge_join(struct net_device *dev, 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) @@ -1201,7 +1201,7 @@ static int ocelot_netdevice_bridge_join(struct net_device *dev, 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); @@ -1214,7 +1214,7 @@ static void ocelot_netdevice_pre_bridge_leave(struct net_device *dev, 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); } -- 2.33.0