Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5091085img; Wed, 27 Mar 2019 01:45:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKaK4xJ4kJaEN8AOgzdAHx6lQ9/kUJwNEu15XtfInH/yrt/r5UptSakbmOHCliHlj1Isvl X-Received: by 2002:a62:ae13:: with SMTP id q19mr33714746pff.152.1553676339385; Wed, 27 Mar 2019 01:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553676339; cv=none; d=google.com; s=arc-20160816; b=mzUzuKvVOPCUHTuVQU7W1GNTqi4tGkSaciqeL4LBqgzTSdpIcYFeykuxnynOrWmE8U aa/5w8r05BpoIQ+Xc7b7v0sXhREKxUMkX356Y/rV8YXkabpfsd804/eBop5PRdWLgzgc itFA/DuPpNoJYFxtF3GlD5a34NOpn94AwxoCaDyliIQrvHImDL1VKUlnZb6wfQ+Wjfnr ZUnMc8bWhkz+407szncY0k3vSj+yuwxCcbzEuYP/0Era7CAgI8eqnHmp0bHr86YrDJrW C4myqdTTE2VNAuP2T6m/71z9vFYXCYyuzXa9lPXVdYUSKSnbeyNeUm9Je67kBOASLxbF VioQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XgW3RRPuyhiTlCxItxOXwrrsJLakELeFK0whosnOhpQ=; b=PH/nERGbcB71b2zqZNZND+DIhitrUefis9VEpRKcDJdYrZq5EtwGWAf+u8bK7HYqye ff/Je1zPHbVaQNDszbAjmxiVN1tuxaicE3eZiAhRzlNMyubIEFYavhSGlWcOHwpXodaV ENlL8+eaE8nEVCJm77FFnnPILwcwHydSjIZXQ/cCddTc0C1OCP0s75PcTMadcPk5M44o Dy6KNSeCt5G45RZK319HRaUb7Sn5Yt1deBCIOvNGyDLcHqyT1isXV53AL6+NAgkemk+X 1kvdKsMqzmThDitQra9YrVpaEfN3QB0ZKPFqptHiZHkFj24J7QgGy3vGaI0A60OqV6yB 0HNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d21si18171378pll.437.2019.03.27.01.45.24; Wed, 27 Mar 2019 01:45: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; 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 S1732511AbfC0Ioo (ORCPT + 99 others); Wed, 27 Mar 2019 04:44:44 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:52701 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732361AbfC0Iol (ORCPT ); Wed, 27 Mar 2019 04:44:41 -0400 X-Originating-IP: 90.88.32.136 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-91-136.w90-88.abo.wanadoo.fr [90.88.32.136]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 1A4794000C; Wed, 27 Mar 2019 08:44:37 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 02/18] net: mvpp2: cls: Add missing MAC_DA field extraction Date: Wed, 27 Mar 2019 09:44:06 +0100 Message-Id: <20190327084422.4209-3-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190327084422.4209-1-maxime.chevallier@bootlin.com> References: <20190327084422.4209-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PPv2's classifier supports extracting the MAC Destination Address from the L2 header to perform RSS and flow steering. Add the missing case when setting the Header Extracted Key fields in the flow table. Signed-off-by: Maxime Chevallier --- drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c index efdb7a656835..cd2fbb6eaa3a 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c @@ -555,6 +555,9 @@ static int mvpp2_flow_set_hek_fields(struct mvpp2_cls_flow_entry *fe, for_each_set_bit(i, &hash_opts, MVPP22_CLS_HEK_N_FIELDS) { switch (BIT(i)) { + case MVPP22_CLS_HEK_OPT_MAC_DA: + field_id = MVPP22_CLS_FIELD_MAC_DA; + break; case MVPP22_CLS_HEK_OPT_VLAN: field_id = MVPP22_CLS_FIELD_VLAN; break; -- 2.20.1