Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1022490ybg; Mon, 1 Jun 2020 22:28:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE+twgHkqFXZI8KN2RvjyWfaqtKfj+XJib2Mty3WJQagkkOulEO0DivWVzjjHm4ZbpW7HI X-Received: by 2002:a50:a7e3:: with SMTP id i90mr25434723edc.6.1591075724384; Mon, 01 Jun 2020 22:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591075724; cv=none; d=google.com; s=arc-20160816; b=b1NXRmStUHweP3WtzTtF7DdkbrDjyRLhw8cymoD/gxXdqhPDUku87hEEo2dxOe0ytR bPVxKyBAyLBTKGd/eoDPEyH189+STUT48phM8ZuNsNafjt+WZi+WvrNZgz2Jzb1uAm6H Bkv/BRc7hY2AMrjefhpk7V1CdqEzNu9F37dvJ5YqKorWrLK5XBUW8bmeT++4lcvPYso8 yi/ZpJrRgQLlsMoep1Wz6X9SXQIHx93o/80sS+YyquqJKByzORihdjlxv3iDb41FCWLG 6NsYKpGenZuDra/WMnUCeauXsOTATE1A389/TUyBLheulaI17FuV0T+rqqwtICik6HYL uduQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from; bh=VJ1G3cSDjvhrFIcn+FM7KMA6oixsn9HjZwevJvJXsS8=; b=CSSDUjVjbscXdu6vOD3PGw7CQm+oYRjlTozP7BEz4dHdg1SjLQWpYBvJ8dOrBbWHc7 nPGkMnZhFweno5tjnGGst8QESMK3iJfZhiz1ml90UlDkaLXgwSZsc7u9W8ZVNg9SK5bw kKmGZsxLAmjibJ4f2Weoaj2w9y7s5LtRLe6TZGD1Rn5rDozruCuhqekN3gY+lgipc92u bFqHf3ZtYwKvMTt3OKUN5Y99ZhTz9QED/ExdJ0BRgTktWYqXV3x2U9E2u+ketCtnc1jx tN6su62Ko7mO3kD+R7FkMKXJBRqmCAAGleDvmz5p6oAZKZMe56R310NLO8b/GprncGGn c1Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si872400edx.127.2020.06.01.22.28.22; Mon, 01 Jun 2020 22:28:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728031AbgFBFYW (ORCPT + 99 others); Tue, 2 Jun 2020 01:24:22 -0400 Received: from inva020.nxp.com ([92.121.34.13]:44676 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727788AbgFBFYT (ORCPT ); Tue, 2 Jun 2020 01:24:19 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B28AF1A00EC; Tue, 2 Jun 2020 07:24:16 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EF7891A0B6E; Tue, 2 Jun 2020 07:24:06 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 4F55B40327; Tue, 2 Jun 2020 13:23:55 +0800 (SGT) From: Xiaoliang Yang To: xiaoliang.yang_1@nxp.com, po.liu@nxp.com, claudiu.manoil@nxp.com, alexandru.marginean@nxp.com, vladimir.oltean@nxp.com, leoyang.li@nxp.com, mingkai.hu@nxp.com, andrew@lunn.ch, f.fainelli@gmail.com, vivien.didelot@gmail.com, davem@davemloft.net, jiri@resnulli.us, idosch@idosch.org, kuba@kernel.org, vinicius.gomes@intel.com, nikolay@cumulusnetworks.com, roopa@cumulusnetworks.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horatiu.vultur@microchip.com, alexandre.belloni@bootlin.com, allan.nielsen@microchip.com, joergen.andreasen@microchip.com, UNGLinuxDriver@microchip.com, linux-devel@linux.nxdi.nxp.com Subject: [PATCH v2 net-next 09/10] net: dsa: felix: correct VCAP IS2 keys offset Date: Tue, 2 Jun 2020 13:18:27 +0800 Message-Id: <20200602051828.5734-10-xiaoliang.yang_1@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200602051828.5734-1-xiaoliang.yang_1@nxp.com> References: <20200602051828.5734-1-xiaoliang.yang_1@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of IS2 IP4_TCP_UDP keys are not correct, like L4_DPORT, L4_SPORT and other L4 keys. It causes the issue that VCAP IS2 could not filter a right dst/src port for TCP/UDP packages. Signed-off-by: Xiaoliang Yang --- drivers/net/dsa/ocelot/felix_vsc9959.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c index fceba87509ba..539f3c062b50 100644 --- a/drivers/net/dsa/ocelot/felix_vsc9959.c +++ b/drivers/net/dsa/ocelot/felix_vsc9959.c @@ -730,17 +730,17 @@ struct vcap_field vsc9959_vcap_is2_keys[] = { [VCAP_IS2_HK_DIP_EQ_SIP] = {118, 1}, /* IP4_TCP_UDP (TYPE=100) */ [VCAP_IS2_HK_TCP] = {119, 1}, - [VCAP_IS2_HK_L4_SPORT] = {120, 16}, - [VCAP_IS2_HK_L4_DPORT] = {136, 16}, + [VCAP_IS2_HK_L4_DPORT] = {120, 16}, + [VCAP_IS2_HK_L4_SPORT] = {136, 16}, [VCAP_IS2_HK_L4_RNG] = {152, 8}, [VCAP_IS2_HK_L4_SPORT_EQ_DPORT] = {160, 1}, [VCAP_IS2_HK_L4_SEQUENCE_EQ0] = {161, 1}, - [VCAP_IS2_HK_L4_URG] = {162, 1}, - [VCAP_IS2_HK_L4_ACK] = {163, 1}, - [VCAP_IS2_HK_L4_PSH] = {164, 1}, - [VCAP_IS2_HK_L4_RST] = {165, 1}, - [VCAP_IS2_HK_L4_SYN] = {166, 1}, - [VCAP_IS2_HK_L4_FIN] = {167, 1}, + [VCAP_IS2_HK_L4_FIN] = {162, 1}, + [VCAP_IS2_HK_L4_SYN] = {163, 1}, + [VCAP_IS2_HK_L4_RST] = {164, 1}, + [VCAP_IS2_HK_L4_PSH] = {165, 1}, + [VCAP_IS2_HK_L4_ACK] = {166, 1}, + [VCAP_IS2_HK_L4_URG] = {167, 1}, [VCAP_IS2_HK_L4_1588_DOM] = {168, 8}, [VCAP_IS2_HK_L4_1588_VER] = {176, 4}, /* IP4_OTHER (TYPE=101) */ -- 2.17.1