Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2236401ybi; Thu, 20 Jun 2019 11:21:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjjcELGpvf97BsMvYb1VL+i0KwHixDjr4n1kDvsnzKbxz3ZgADGBGKCgGW5tNSUszNIhM+ X-Received: by 2002:a17:902:b609:: with SMTP id b9mr47107861pls.8.1561054903319; Thu, 20 Jun 2019 11:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054903; cv=none; d=google.com; s=arc-20160816; b=QuE8tCwg2jEdjcBtsh5qh3TnUYnHX36QLs4qNHnoFti4cdfjaXDCerJeyMEo+MR7bG 8xZre7OUZZwW8JjJ+fl2TFwPno16xKQWJ/ACBg7dsD1GltyW75prq01N1/6hd93To2uz hNAxMeuGunp6Ykh8VoIHTAXv+GOdKEwNXJZax+X/fRNLupemBJqflIabpNrnvhu8AcAT 2WtkqrH1wGxJDMPUemJAFGdtel7AXVACn5m28iZzY/7v0rDaHB2D3DZrghwz5tEXdoti Ah76KfNoyojstCoDCvGKlZf+TKtK3LFq3xHGr2Zvlnzm2j/dXP6a+s1PrOqa0DSU4MhS t4ig== 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=hueN4zFfj7I+IuDbw1P/dpwY0Ql9FCqnLlZk0Urm75g=; b=oVEzjqVlJHDtwpHUQ7jNZ5sjr3ddGRxhhp45D2kU13gWvkUL/eq/cvxS55I4W06HNK K/l+rW/qyr7LbE/uKfgSuFGGoz0Salco1flheXThYJLRFfMWna+wiEDQgt17uSpFDPwT XocOynUK5csbf7mLwUXxdQDH7/pNYNjgql3i4wzN+K3rVGZdBx45Vnxl8Y9wGdh6pXE2 Kg6NThqcSsg7fEu15lndfpzG58AgH7u0XJS2Zu92h0IHreOJ4Djw/t9IouQD+VWbQ0um WgB04HC0dbqNeCmnv2pNR5mOJoR1jdC57tSh4Pb+w5c430jXDH+VtKwIyjm/+coKtz5c n2Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xnN8CemN; 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 i5si193002pgq.412.2019.06.20.11.21.28; Thu, 20 Jun 2019 11:21:43 -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=xnN8CemN; 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 S1729357AbfFTSNz (ORCPT + 99 others); Thu, 20 Jun 2019 14:13:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:41956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728909AbfFTSNw (ORCPT ); Thu, 20 Jun 2019 14:13:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 4BA6121530; Thu, 20 Jun 2019 18:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054431; bh=IxqxiMlvpXKFP286NRjzeIqo26A/KytFVKH6GK7ag1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xnN8CemNH3ctTsbjRcM5Vx4TMnTe+ZcNfS+5qyFAgcSzDfBNz/O8kWzW2d7ppLOWQ ffcxij1e+qSHbYReyM65YkJoQLPTzLYugbLWyItUUElHtO0IYNDA4EtyDUEQqbMh6+ jFKizYzxNFy99+ItxGjr1/0w8SDfBeiDV/Ze/jAU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Raed Salem , Roi Dayan , Saeed Mahameed Subject: [PATCH 5.1 27/98] net/mlx5e: Fix source port matching in fdb peer flow rule Date: Thu, 20 Jun 2019 19:56:54 +0200 Message-Id: <20190620174350.374992630@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Raed Salem The cited commit changed the initialization placement of the eswitch attributes so it is done prior to parse tc actions function call, including among others the in_rep and in_mdev fields which are mistakenly reassigned inside the parse actions function. This breaks the source port matching criteria of the peer redirect rule. Fix by removing the now redundant reassignment of the already initialized fields. Fixes: 988ab9c7363a ("net/mlx5e: Introduce mlx5e_flow_esw_attr_init() helper") Signed-off-by: Raed Salem Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -2572,9 +2572,6 @@ static int parse_tc_fdb_actions(struct m if (!flow_action_has_entries(flow_action)) return -EINVAL; - attr->in_rep = rpriv->rep; - attr->in_mdev = priv->mdev; - flow_action_for_each(i, act, flow_action) { switch (act->id) { case FLOW_ACTION_DROP: