Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1871578lqb; Sun, 26 May 2024 23:24:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMXa8QJnSCLKMdaOJCMMrcWNHxJ+Pb9DkX7WD4BdtVZUJ+o1mx+tvmws5UKHcOtRV7oiXaS8Hspyq25sEmMn3t/fnEZDtRulHSVuIpzA== X-Google-Smtp-Source: AGHT+IGtuJ2qRivE6UBANMACgh15N1TDTK11wSMDOPgDaKTnxSJy5dlwz1qcNeN96PcqoYh7AWNS X-Received: by 2002:a05:6808:13c2:b0:3c9:6f28:f306 with SMTP id 5614622812f47-3d1a745adf6mr10492506b6e.40.1716791052217; Sun, 26 May 2024 23:24:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716791052; cv=pass; d=google.com; s=arc-20160816; b=WTcXuW1q7Xm839Hvxegt+s++VMk+jcuC1bX5lvHuad2B7e8261iDAyEbJt8gJViBA3 3Tuw0kmg9bDoIfVL3ASZAXBtDiqd5hxFZqtdXt33dtE9B43cXajvAqJRk8ICyEv4QFL6 4vT3EmN7fD7aNM9b/rJ2GNfYRmMSw15SFrw3s47XeKjrZL25Yf5oMg1IyE/W24OUf6Hw KW1qFbhkyxN5PmYzg5GNBg7/MUIZhz2+69BzHx76Bu9X0SoqYVLh3aju+QUUhCz8tgeh LabhW+mQUzLjwX9Rn63gdcA402ML44L9BBvqkFRzyU/awBWhubg6NNIpZaHNungsayZZ 5mUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=R0qf3w3BxE32442q3LOylpbKUQUmq/Vu7B9arBC2fXs=; fh=8yRoBb6DIDZDc+DGvbwoJuKXxWDLnhkNSYLPmrjn5Mk=; b=b6K7an2/uEi6LcoUDeGDWJNV3GRGCCcAOcxpjlfwL5iDOtDMzhsvD1LZr4ru8OD35x VFHGvhoqfr9rgr6inXHBSpxd/RpFEaGppJnkdN/IlssO9WIfF2hrtTXkOKB1XoLtelnp opOvN8FSq2jHZfRrRl7cxjNeBaasDVXTPP0JbV9dJTA1q+sMeK/8HJ1FBEdL5Cs1FrEe D4+iAjNjBsX0aiQLOjYpJ3H3As53qBVclu+M0XiIDwtYhdNL3VwXwP0zaJ+79GGNUzA1 chS0cwSbslnAJ2DsuEI9+2zy87KLWNCvUn7WNpNgqWXGUpsqKrcVCJ3aZ8XK4pHZL2Fo mkrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=M0M9pBS3; 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-190066-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18ed528si82989091cf.757.2024.05.26.23.24.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 23:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190066-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=M0M9pBS3; 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-190066-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190066-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EA96B1C20C50 for ; Mon, 27 May 2024 06:24:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43C1712E63; Mon, 27 May 2024 06:24:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="M0M9pBS3" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 D019C1754B; Mon, 27 May 2024 06:24:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716791043; cv=none; b=AKOiVmXPsmu1O1nSPpYtXwPXTNS4zf57oWBSJO12ijCjyP7771HLKe89AH7Y48eTdKudTezn9cncmGP4YK7jFq22mVY6A4vPS6pQBu+3+9Pi5CxclEFo34w3OeL4k7olgokftN2xs1NPe8yIaNCNhIBYk87p77o0iAxSFsEBF6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716791043; c=relaxed/simple; bh=8+YVxo2kGT6YpAa4xic3brKZrY19cfhQLO6PhDJglcc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=AlU8c5xdFiPi6strx2aGXIqLZCYpQ8IP6E+36qDzCYoaZ0zmN+bc0pxzZnL82/OjTljNa5DSCkDbk7ZYCtxc81tjH6MjP47y2BLGOFoOwStvZQB4azokQ9MrdrZjzCSoUCg3T/ILk9QITN6EoIt+sjOSu7sKJ98v5d9/avwns8Q= 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=M0M9pBS3; arc=none smtp.client-ip=198.47.23.248 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 lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44R6NXT8122156; Mon, 27 May 2024 01:23:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716791013; bh=R0qf3w3BxE32442q3LOylpbKUQUmq/Vu7B9arBC2fXs=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=M0M9pBS3qv3asV/+Q0/tzFCAGgekMZ9xnqiI0KaW6pi5KUaVFdwBvzb2HWqUb5Ypa XoCTwTlzoKhyBpkqso4JvUydbk2Uadh4pLGUDx+saQnCoHbi8l1zllZ7UtYARyozeq uXZpbLtIZJI3/uJTGaKEQRK7AFZXackLBk5YYcpA= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44R6NXTN031753 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 May 2024 01:23:33 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 27 May 2024 01:23:32 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE104.ent.ti.com (157.170.170.34) 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; Mon, 27 May 2024 01:23:32 -0500 Received: from [10.24.69.25] (danish-tpc.dhcp.ti.com [10.24.69.25]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44R6NSAn116043; Mon, 27 May 2024 01:23:28 -0500 Message-ID: <520c5c8a-06a8-4ca0-93b1-3203ae210733@ti.com> Date: Mon, 27 May 2024 11:53:27 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] net: ti: icssg-prueth: Fix start counter for ft1 filter Content-Language: en-US To: Florian Fainelli , Andrew Lunn , Diogo Ivo , Jan Kiszka , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" CC: , , , , Vignesh Raghavendra , Roger Quadros References: <20240524093719.68353-1-danishanwar@ti.com> From: MD Danish Anwar In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 25/05/24 3:35 am, Florian Fainelli wrote: > On 5/24/24 02:37, MD Danish Anwar wrote: >> 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 > > Would using ETH_ALEN not be a bit clearer here? > Yes that would make more sense. I will change it and post v2. >> --- >>   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 > -- Thanks and Regards, Danish