Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2459577imd; Fri, 2 Nov 2018 11:46:40 -0700 (PDT) X-Google-Smtp-Source: AJdET5fwdfPqbU7xueGycMaSGIZy+P3I5vj2gPlhL4vXvbDIlKzQ6nnW5fWeMYLguw8GOBEL55hl X-Received: by 2002:a17:902:b7c5:: with SMTP id v5-v6mr1260718plz.40.1541184400008; Fri, 02 Nov 2018 11:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184399; cv=none; d=google.com; s=arc-20160816; b=PU+WKhdr3XzD+bdT29gOZBHnlOm3jXjsQvpVgqzN7SHgdJ6T7hOelZcbvsDSmlaw// pvK6s7tBD1QPOKhIh+4eDeZSfKssshH5vLXHSbkR7y36Z6XcSvk43Ow62ElORSJuIu/I JGpr2OVgg27HRYSsNgby9z/E0DXhD6x1rLGTSPM+AtJk25z854CQp97QcAGGp1mHE1Ex fVHim9omnsQUH7G/euJTMxqHOPu+u2ktDhyqQ3/RV3W02QdpC7aTtXOJErPBZfQTut6r zXIfpOJdeePsI3ne7PNz09Yphlzst1e4JYPNrtctcDF2Ewua03xvdz+Dlg3rnaL7qMCr RG9w== 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=xnuCSjXo6WziOtKRb12GQWYvmOC0gjhnE4p1N7MfopU=; b=ZRBz7riyRhHS7CL//Zfx0Bf24d5IuYPHi/B51Rpjn6ZZr+xpPYRHXtQxp7OGhXlqfs ll5qmKCfhUCAVJBO5YzP29H7XdAVwCd4ZRC7lM4THzfMax56zbnV8IEpHL8EVrVs+Z0x AE1cdtbkPcXVXFb4XfjC1X7hTltuML/8sStRtmv1x8+b6wiIai1UhNRlMb4l7Hv8Q9zQ v+D4R4IrgFMBwOQzNMytDbJWy8r60MvlyJnAECKLX93w8aYXjrxsJ4umWK2zBxbzoXHw rxOBTMKfW7xTMZs//gY+nUpnqIPHaxuPfXX/SQ/1lpd/9sixzb8w6V8f/B5R9P1jhXbk QJ5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ckbvkQZ0; 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 y16-v6si8212664pgk.479.2018.11.02.11.46.25; Fri, 02 Nov 2018 11:46:39 -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=ckbvkQZ0; 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 S1730216AbeKCDxi (ORCPT + 99 others); Fri, 2 Nov 2018 23:53:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:49332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729726AbeKCDxh (ORCPT ); Fri, 2 Nov 2018 23:53:37 -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 2BA6920837; Fri, 2 Nov 2018 18:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184324; bh=PDWU4iSPjipFqfjOLajLEzvMzTFeAcLOvEzpFT2sPKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ckbvkQZ0qwM6PmQTLChnzxjrJpfCv5WB4r0/fLJxjSsGQKMKEVKR5EyDiY7sw4Gzz LR5PDzxsZJmXEOUbt4M0m4BE3hUF890hL6Lhc8zF05+EKWtg4d6h5aI+gRkt3TPFv5 UOrrsZbhC03OBHC1w2bPcqtPZWBFzB+XidNXWOH8= 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.18 136/150] mlxsw: spectrum_switchdev: Dont ignore deletions of learned MACs Date: Fri, 2 Nov 2018 19:34:58 +0100 Message-Id: <20181102182912.103581336@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@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.18-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 @@ -2307,8 +2307,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 */