Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp423781lqb; Fri, 24 May 2024 02:37:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVX9GHbswBP2rj6NTu3o5lgMu/9v/uMXsJIrTqo4exeUWP0aF6Z6RQeiprBCfCNdR0uEHfRpxgcOGkj/aE3/WJxXUq48Z6ss5ul6IzO/g== X-Google-Smtp-Source: AGHT+IFnL1Ws7ns//fkQ4MmgJhRBa1YzHHuPQbJCAm0ebVHo+c4diYfvzZufUhxcq14+QXatljlK X-Received: by 2002:a50:d74e:0:b0:572:9d24:257a with SMTP id 4fb4d7f45d1cf-578519a91f8mr1143078a12.23.1716543471197; Fri, 24 May 2024 02:37:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716543471; cv=pass; d=google.com; s=arc-20160816; b=prvwazFjTzIRUTKtT1su+i7BEoSYgoEmWNdwCJtobdS2sewDQjojQrMl8slPPapgwY So1MmrqmQMDPpwHuDtyaEICGYI66G1zNgUbaBZXHHYCUQNadoejVA1nEJMD0hgolBfd5 Uecejgq4x7Q1mcD4Dm06k06iUE5rasX4nV01DDDnK3Hn0B8invm6T8+Nz6YbjBHYQ0b0 5hoUFIc1JxVhIH0Q7U/TYly8cZhJMwT4kioUMcRl6uAaBDH9fdJ7xk1HlWPe3SBVGLv1 No2b1I7KCnJyHA7Puu46zQpto93fpxRNzEMwSr3FBUn1GZEfr/NEerZqavxtcaigCcbu ZIBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kwgshCgvayp6v4jsfvgDe4a2RylQ6yIoENWX/sS83rw=; fh=H6q0zOblYH0kp7BYm60bpDC7dxG+z5dlAtjcxVtMP4w=; b=E9noTsGUHuskz1yyWNO7FeeWi5pcRfm+gh9/JneX5lJjKEamyTDPueAp7PO4YBqiY2 GSonHX/x3v/DmTpg5MxGn8uhEuL6YAdUagRWW/Pte7Qqq0IskvyK+mfqiPGBqAtyrHS8 FY+YeBuVbPxGZfhbd4mIUQk3uYAOFPtdITHUCkVhGh6cKSD8kg9GtWHrhwS9h7V++0J3 MGAYYknXYrItFGiloyz3M1KQP9IRvOndtIel7OSNUSckKK1Vsp0lweXuQDoDzmaGVLjH DPR+Ryhv6XouNIukIHI8BhiYnkaT5VftfbEmiTAfWtq18EylU2OoDynDpndd0FQ73W8R ARug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HOv3IoQI; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-188563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5785245fd4bsi644273a12.245.2024.05.24.02.37.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 02:37:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HOv3IoQI; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-188563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E41D81F21D18 for ; Fri, 24 May 2024 09:37:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EEF785628; Fri, 24 May 2024 09:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="HOv3IoQI" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 067A97E59A; Fri, 24 May 2024 09:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716543461; cv=none; b=Uosnxb4QNSMtD9CNrOoM8CpkmsFL0iY7qfRPXOlLmBYggL7Bx2qI/TeJV2GPU2spCkJT4LcWFwnxI7wnoQQt9mEwgP/xg9eoFieDunqHBfrjskPld0j2KgRZ/cBnU8jAiDILNNhjvRULXRzCKBTjHhNWy6bUqDB7/ff15YjxvAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716543461; c=relaxed/simple; bh=nskFY061nvdxurhLvpgKaDrjxBFg8YVAPRFrNqlkAek=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dvzBuPSIqohWUv5SAtAMYW8cH1AyiETpz9nUoZ+XcvUAcoVsiXOX9b5HZKwevqjcuYaqNydi98jfVu5SH2/35Xh12BXWUdErTbOn23g8cuL1iwuE9X1EDRxYRghIvz1oIYYolrNSZkOWe7rr3tpem51yH+g47YsgWg0cuY1ZeMM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=HOv3IoQI; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44O9bMY9083434; Fri, 24 May 2024 04:37:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716543442; bh=kwgshCgvayp6v4jsfvgDe4a2RylQ6yIoENWX/sS83rw=; h=From:To:CC:Subject:Date; b=HOv3IoQICoReU0UqUv2s0zMygYFNbzjQbWKacNI9X7xT8ggznpaScAv8BAdVONE4e iT0VenwBH4mzAwINZfc/C9TidedDPU23yVkNgHdKCXMWqhI8HlaAGgUc1Igz8iOcU1 l+qNaG/R0HgrvfhUnvQcPb2sj+Xl/C1sGNCRED6s= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44O9bMMb025079 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 May 2024 04:37:22 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 24 May 2024 04:37:22 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 24 May 2024 04:37:22 -0500 Received: from lelv0854.itg.ti.com (lelv0854.itg.ti.com [10.181.64.140]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44O9bLnI063520; Fri, 24 May 2024 04:37:21 -0500 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by lelv0854.itg.ti.com (8.14.7/8.14.7) with ESMTP id 44O9bLFG030149; Fri, 24 May 2024 04:37:21 -0500 From: MD Danish Anwar To: Andrew Lunn , Diogo Ivo , Jan Kiszka , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" CC: , , , , Vignesh Raghavendra , Roger Quadros , MD Danish Anwar Subject: [PATCH net] net: ti: icssg-prueth: Fix start counter for ft1 filter Date: Fri, 24 May 2024 15:07:19 +0530 Message-ID: <20240524093719.68353-1-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 The start counter for FT1 filter is wrongly set to 0 in the driver. FT1 is used for source address violation (SAV) check and source address starts at Byte 6 not Byte 0. Fix this by changing start counter to 6 in icssg_ft1_set_mac_addr(). Fixes: e9b4ece7d74b ("net: ti: icssg-prueth: Add Firmware config and classification APIs.") Signed-off-by: MD Danish Anwar --- drivers/net/ethernet/ti/icssg/icssg_classifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/icssg/icssg_classifier.c b/drivers/net/ethernet/ti/icssg/icssg_classifier.c index 79ba47bb3602..8dee737639b6 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_classifier.c +++ b/drivers/net/ethernet/ti/icssg/icssg_classifier.c @@ -455,7 +455,7 @@ void icssg_ft1_set_mac_addr(struct regmap *miig_rt, int slice, u8 *mac_addr) { const u8 mask_addr[] = { 0, 0, 0, 0, 0, 0, }; - rx_class_ft1_set_start_len(miig_rt, slice, 0, 6); + rx_class_ft1_set_start_len(miig_rt, slice, 6, 6); rx_class_ft1_set_da(miig_rt, slice, 0, mac_addr); rx_class_ft1_set_da_mask(miig_rt, slice, 0, mask_addr); rx_class_ft1_cfg_set_type(miig_rt, slice, 0, FT1_CFG_TYPE_EQ); base-commit: 66ad4829ddd0b5540dc0b076ef2818e89c8f720e -- 2.34.1