Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5091521img; Wed, 27 Mar 2019 01:46:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTB0znYXwo9INkF64rFg1yLNdoktMOobp3k+kywkeRmsaCWEnBpXCq5+JH6Qw2fci+ycEt X-Received: by 2002:aa7:9116:: with SMTP id 22mr22574493pfh.165.1553676384879; Wed, 27 Mar 2019 01:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553676384; cv=none; d=google.com; s=arc-20160816; b=ugWu+2VwVJ5xoFjFMI+WOXJycldCvp7zU23oGCWmmBHZHEG48XdzlWbjEd/WGcmkoQ DXVlUlaSdq1C8Z5imcEZ/AdYlt8dQ5wV9zcNAsXUxFB92UtZXLz63W+XDVDs1IjqxpSs 7l4B/B5Gr6ugdqG6yGAX4oc+ESa0LVPj0I/Vo6n1TfzWung57sIGHBn2THEsBEeoV+pn 7piddCwBBBmW1PD5k2+UaY1GlVVotZBNUhny8JNHDPRcRNJsWdTtnxt8G8uHOMTY4JZ9 TLmH/zsAu5NOUSh1Mt0/On4k7mv2vUDHCJIMKYrQeUnXNynVt6QcWNdStOUp45GzGnQ1 jw6w== 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=3WKdLFI7YXaNCfCS15yHoqJGekMcF5i2zjApkcm1leA=; b=tOH2TRy0OKUqYroAHcI/KcIFw5TvHOhLLl3VnJmA6I92icFmKgfjJsIIcbw0/8HjDG 9cY17lyOJliKJgXsJFBUVTyW87/dysq1hS212zjd5S7A3uG6kV/95gIElkUsP9Bm5jBH eUfZGOFTLLrNPpBgEsNtKY8JqkPOYmfe4BjpZHNv+FWGYrKO5+iKWPPG3UzXvH+aq1p+ rRTHjCKLppWIw5fKk0Mbt/W1zSyvmCbP8Xg1Au+2RH5bBLj7SmSgcRTz0z8uuGufmkke xAdliw860zHBTKSWpIEjn6H4jG4SsCAGObHvuU/JbtrCYy5lk680S87B6GVNr0YlpS3X QVZA== 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 n14si17421904pgv.520.2019.03.27.01.46.10; Wed, 27 Mar 2019 01:46:24 -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 S1733064AbfC0IpM (ORCPT + 99 others); Wed, 27 Mar 2019 04:45:12 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:37663 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733035AbfC0IpL (ORCPT ); Wed, 27 Mar 2019 04:45:11 -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 AF15940003; Wed, 27 Mar 2019 08:45:07 +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 14/18] net: mvpp2: cls: Don't use the sequence attribute for classification Date: Wed, 27 Mar 2019 09:44:18 +0100 Message-Id: <20190327084422.4209-15-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 The classifier allows to combine multiple lookups in one "sequence" that is counted as a single lookup to an engine, with a single result. We don't actually use that feature, so remove any places where we set this field, so that the classifier doesn't try to interpret these fields. Signed-off-by: Maxime Chevallier --- drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c | 10 ---------- drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h | 8 -------- 2 files changed, 18 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c index 533919982735..e50154e03141 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c @@ -429,12 +429,6 @@ static void mvpp2_cls_flow_port_id_sel(struct mvpp2_cls_flow_entry *fe, fe->data[0] &= ~MVPP2_CLS_FLOW_TBL0_PORT_ID_SEL; } -static void mvpp2_cls_flow_seq_set(struct mvpp2_cls_flow_entry *fe, u32 seq) -{ - fe->data[1] &= ~MVPP2_CLS_FLOW_TBL1_SEQ(MVPP2_CLS_FLOW_TBL1_SEQ_MASK); - fe->data[1] |= MVPP2_CLS_FLOW_TBL1_SEQ(seq); -} - static void mvpp2_cls_flow_last_set(struct mvpp2_cls_flow_entry *fe, bool is_last) { @@ -548,7 +542,6 @@ static void mvpp2_cls_flow_init(struct mvpp2 *priv, mvpp2_cls_flow_port_id_sel(&fe, true); mvpp2_cls_flow_last_set(&fe, 0); mvpp2_cls_flow_pri_set(&fe, 0); - mvpp2_cls_flow_seq_set(&fe, MVPP2_CLS_FLOW_SEQ_FIRST1); mvpp2_cls_flow_lu_type_set(&fe, MVPP2_CLS_LU_ALL); /* Add all ports */ @@ -564,7 +557,6 @@ static void mvpp2_cls_flow_init(struct mvpp2 *priv, mvpp2_cls_flow_port_id_sel(&fe, true); mvpp2_cls_flow_pri_set(&fe, i + 1); - mvpp2_cls_flow_seq_set(&fe, MVPP2_CLS_FLOW_SEQ_MIDDLE); mvpp2_cls_flow_port_add(&fe, BIT(i)); mvpp2_cls_flow_write(priv, &fe); @@ -572,8 +564,6 @@ static void mvpp2_cls_flow_init(struct mvpp2 *priv, /* Update the last entry */ mvpp2_cls_flow_last_set(&fe, 1); - mvpp2_cls_flow_seq_set(&fe, MVPP2_CLS_FLOW_SEQ_LAST); - mvpp2_cls_flow_write(priv, &fe); } diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h index fa588b07d182..9a4796fc0219 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h @@ -71,14 +71,6 @@ enum mvpp2_cls_field_id { MVPP22_CLS_FIELD_L4DIP = 0x1e, }; -enum mvpp2_cls_flow_seq { - MVPP2_CLS_FLOW_SEQ_NORMAL = 0, - MVPP2_CLS_FLOW_SEQ_FIRST1, - MVPP2_CLS_FLOW_SEQ_FIRST2, - MVPP2_CLS_FLOW_SEQ_LAST, - MVPP2_CLS_FLOW_SEQ_MIDDLE -}; - /* Classifier C2 engine constants */ #define MVPP22_CLS_C2_TCAM_EN(data) ((data) << 16) -- 2.20.1