Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp434184rwr; Wed, 3 May 2023 00:20:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Istq2VMhDCajD+bjtDU6TV2wv7A4hSPaxWjtbR+k5EgQ8/5qp1h4tuuWsK4DJFXNmozzU X-Received: by 2002:a05:6a00:1307:b0:643:53b6:d845 with SMTP id j7-20020a056a00130700b0064353b6d845mr103388pfu.13.1683098452152; Wed, 03 May 2023 00:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683098452; cv=none; d=google.com; s=arc-20160816; b=ukzQ16uOSV4/SQHQsOAZg9IY4a/leZCwgVPeaEFM/TyZGicZ00ZiLwejocLPP+anBb m0dYmnW79ZH0j4KtR1xiXIFJXJIeMKXh0r7ZBxo2N29ECRFGcA74uSqpxSZhSTGBj0sf dn1CzhwzKQ84phXMtLi9ujYp8x7f/dA65H9v0a+4Y0ffFd8XySkKAyKks1eFL73dK3Z7 bSVfpvBCWgILc/DawoFT0FEWVcuwlJiG0WkvMyhDuOiNqVc004aBwL2lh2oUljRoigck Sn86r+/plC6ol70VfZKlvr4RKvZIgbWaNX/M4p/SpL30JLQJ8QVAo2FaeGsNJt2Vk/NR KFYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ULQ0BrR7wzq3hufaukTzQqwThQaxiFl+ufv1LiMejOQ=; b=k9OUvdMXOGrVWOiDKCm3VaplkyY1VX4ZHIDROep9n1TFIXAw/lEt0rpeZNhfI6mHGg Gd80/Ece6ICwE1nLuiZ2WuEMODnwX9x4xU8jQzNzeX2CWemuDAK0fIFBU3HJo2awRzzH 47vuZryiMVKo7WcsIF2VdgruZKfcWPTeqAbOXGVwP5fXqXWcTFiW7i1LqH363ceND9fh BkbxmRLSgYpT0zelvlCjleDdqzdBF8UdQc0Xmzs/HD4QpBWvchcpe6i7ctdOLrk2m9Ze CxhNVaocMhjKcL4ZN6B621MRqg8ivKA9jDkvYVayk7fQF5X/8fcuDTZrFRv8mVuHhzz2 Ug3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=YB9SPuJu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y30-20020aa793de000000b0063b85b35d4bsi31555522pff.331.2023.05.03.00.20.35; Wed, 03 May 2023 00:20:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=YB9SPuJu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbjECHKs (ORCPT + 99 others); Wed, 3 May 2023 03:10:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbjECHKl (ORCPT ); Wed, 3 May 2023 03:10:41 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 675E744B1; Wed, 3 May 2023 00:10:30 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 342K5f0r026446; Wed, 3 May 2023 00:10:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=ULQ0BrR7wzq3hufaukTzQqwThQaxiFl+ufv1LiMejOQ=; b=YB9SPuJuRZ6s8tKQf1BUNCMUFL/Q+u37cb/BZT4keLVf8k3LILtVoCDjL+ey6Bhov4TU ZdrSWZMnoelLzfFUuQr3zMnIRNDmG0xLvO1asZV8ofu5J9DFDqkxtcPj/z053jadvFjb 8EcitTKxFXevaDfLroOlkf4xrpwGBln/D9edvA74O6JKHWcUU6MRnrqYxpbNhCvQPsuu 17ncgPeWf38XKcMe1d3p3wSS9sj/04X4lxYhWUx226YsK4aVgFYOGb8gtTtB2099s+Js nGvAIm3SQKqfMTs1CHJkjgybjJWJIq/VeLfbkSxL+MRrb4j4FaLcb9uXdCE6Gz7eRZJJ 6g== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qavhenawe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 03 May 2023 00:10:23 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 3 May 2023 00:10:21 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 3 May 2023 00:10:21 -0700 Received: from hyd1425.marvell.com (unknown [10.29.37.83]) by maili.marvell.com (Postfix) with ESMTP id E1E5C3F70BC; Wed, 3 May 2023 00:10:15 -0700 (PDT) From: Sai Krishna To: , , , , , , , , , , , , , CC: Suman Ghosh , Sai Krishna Subject: [net PATCH v5 06/11] octeontx2-af: Update correct mask to filter IPv4 fragments Date: Wed, 3 May 2023 12:39:39 +0530 Message-ID: <20230503070944.960190-7-saikrishnag@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230503070944.960190-1-saikrishnag@marvell.com> References: <20230503070944.960190-1-saikrishnag@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: cGKOW5124QrhFGNepVi5TuCyUXaI6Sav X-Proofpoint-GUID: cGKOW5124QrhFGNepVi5TuCyUXaI6Sav X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-03_04,2023-04-27_01,2023-02-09_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suman Ghosh During the initial design, the IPv4 ip_flag mask was set to 0xff. Which results to filter only fragmets with (fragment_offset == 0). As part of the fix, updated the mask to 0x20 to filter all the fragmented packets irrespective of the fragment_offset value. Fixes: c672e3727989 ("octeontx2-pf: Add support to filter packet based on IP fragment") Signed-off-by: Suman Ghosh Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: Sai Krishna Reviewed-by: Simon Horman --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c index 044cc211424e..8392f63e433f 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c @@ -544,7 +544,7 @@ static int otx2_tc_prepare_flow(struct otx2_nic *nic, struct otx2_tc_flow *node, if (match.mask->flags & FLOW_DIS_IS_FRAGMENT) { if (ntohs(flow_spec->etype) == ETH_P_IP) { flow_spec->ip_flag = IPV4_FLAG_MORE; - flow_mask->ip_flag = 0xff; + flow_mask->ip_flag = IPV4_FLAG_MORE; req->features |= BIT_ULL(NPC_IPFRAG_IPV4); } else if (ntohs(flow_spec->etype) == ETH_P_IPV6) { flow_spec->next_header = IPPROTO_FRAGMENT; -- 2.25.1