Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2485436imd; Fri, 2 Nov 2018 12:13:42 -0700 (PDT) X-Google-Smtp-Source: AJdET5fz+dqwLbw2ZR7j9nVg54zNvbMMlAROI/m/7m5OzFUAuD6AeMROgNWZcJOU6MMNucbeIOFH X-Received: by 2002:a63:2447:: with SMTP id k68-v6mr11670233pgk.156.1541186022616; Fri, 02 Nov 2018 12:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541186022; cv=none; d=google.com; s=arc-20160816; b=N2FyffCVcKrf/nrT/4i1T7D0weN4AvqKhsm9DL8pnWjXsj+SlGRQhH28TZctjLZsrm VxbCHsL5Zt+DK/S6HVyCKuaAXObHkf2xt6goNSmQaX3y9y+537sneytAQIoloId3GeUE p0LHScZ6OycmV/H/h0PFVEMiOznHlhUmcg46mLCPpHHwZnk2rsue9gkC3NTJ0LCjRHuL 0lmpOdh+iozRTBgeuzPJyBgbxHPDk9VR2NA/6XntX0wL/2PjwjsR2Q/FKGCyUNZujF71 HwAdjYdcYIN7ZYmSwuI/FqvA2pCTKcO7E78/KLN7lZYvzBI0AMlk1wd4Zy+8ysp/DGUG gaLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mHqzdWSoNT6rhSgiorGqdvPzxCmhH004a7x4Fyn/eUA=; b=bNIiBwJfiECicOkBNVHw/4/4HxI09XcgMnH2+P/wxlXNWxUkCpKXnxWLDvfkPqpuht epwHDxGcodNWa22anEQZD0QNuTAUuPmbXURTuuuvjPif81pyiFb0ETj1XKbt12a6DM62 Zfbyuf0NtgBY3ZB032hjNjXS7NV/ArFGBH0x+FGeVZIokJk3cLjQybLj4Fs3UQ7vSQlh HifndVq0kMwXnGCTSFZXLvooQpYuaafZgHXqzs5DSji3DxooAjhJZmf7mFwczX5/iZMj EWIBvGK0k8j6VMFY6XTCYuG1MVlkQQ7dL4ZPnWwc4kDxuRTpKHBZOr3R9++40lzY+Eb6 kPrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2DKgAxm9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si17113548pfd.166.2018.11.02.12.13.27; Fri, 02 Nov 2018 12:13:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2DKgAxm9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728414AbeKCDpA (ORCPT + 99 others); Fri, 2 Nov 2018 23:45:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:38716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728116AbeKCDo7 (ORCPT ); Fri, 2 Nov 2018 23:44:59 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6BA4C2082E; Fri, 2 Nov 2018 18:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541183808; bh=VhYsgwbCIBfMRUuIskgQmiRMNxfsbKyIV+xuSahuEGo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2DKgAxm9Cj3XC/i+vjdDoGHfhcNh0WSKovej4BtiAeikLKnBk2ReRBwNvCt0o2Ilw 9wZV+A0uYsuWpXaLf48/8jICxlcpXJsFkfhpdKFUnM/qj8UA97e0+ulepiiVOwyg62 zpf9xQ8+8wfzTWUtU674ax0gKSRaEzicwRjoO0t8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Petr Machata , Ido Schimmel , "David S. Miller" Subject: [PATCH 4.19 14/24] mlxsw: spectrum_switchdev: Dont ignore deletions of learned MACs Date: Fri, 2 Nov 2018 19:34:47 +0100 Message-Id: <20181102182841.951273205@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182839.725385066@linuxfoundation.org> References: <20181102182839.725385066@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Petr Machata [ Upstream commit ad0b9d94182be8356978d220c82f9837cffeb7a9 ] Demands to remove FDB entries should be honored even if the FDB entry in question was originally learned, and not added by the user. Therefore ignore the added_by_user datum for SWITCHDEV_FDB_DEL_TO_DEVICE. Fixes: 816a3bed9549 ("switchdev: Add fdb.added_by_user to switchdev notifications") Signed-off-by: Petr Machata Suggested-by: Ido Schimmel Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c @@ -2317,8 +2317,6 @@ static void mlxsw_sp_switchdev_event_wor break; case SWITCHDEV_FDB_DEL_TO_DEVICE: fdb_info = &switchdev_work->fdb_info; - if (!fdb_info->added_by_user) - break; mlxsw_sp_port_fdb_set(mlxsw_sp_port, fdb_info, false); break; case SWITCHDEV_FDB_ADD_TO_BRIDGE: /* fall through */