From patchwork Wed Apr 26 07:43:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai Krishna Gajula X-Patchwork-Id: 87699 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp73812vqo; Wed, 26 Apr 2023 00:58:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZQQS+yxgpTnV4F36TCV9RCglNghUgsyEZNlS5q2/wlibrgOg1/1BvN0Ox5ufmCFck4/OCx X-Received: by 2002:a05:6a00:1914:b0:63b:e4:554 with SMTP id y20-20020a056a00191400b0063b00e40554mr27639667pfi.4.1682495889184; Wed, 26 Apr 2023 00:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682495889; cv=none; d=google.com; s=arc-20160816; b=rRUw2XXUErfLMsj0+jHfSVBLG6aE9T9hlPPVWVfBtloQ4Ca2OKVcVdE5ibK4Mxeh6c 3maXqbokpwU3kdJplyXDl40+YRdl0DKpYWyhY66K86OSITWfbSO6+i0l9tFXOre58vuH sKaUccXyFOy2jBcMWdnyheA7vr5tNxvO5AwDLNvLlMI5kpn5AKAvO7dQx3I13BK5mtJO UiK6FOwFgG4c0o98awDofs9ree2hkn4Wy9F/eFC7G33AfU6JlSabRDB+/9c2aQGyEDts 4ZwTONK7P3644KS4DBFb1uavb8YKrcGVEWCcBFvGKRZgwqJi1YQmHSevQlh3K2Dn/dAX VAAg== 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=yI7HG+JOiOS+JDrb/R95t7A8DFfH5EsInJosfBwdR30=; b=pqx3D0Fa2RrmrJz1cdF5jRb/sKCdS64NmbM7j3igwD/CSMQulPn/ehb7DdGfvzA0dw DBQXaNRd0ib5qweXBx91KILk+Er5/VpNF8UCe7t7Y9vlCcIC6SQvuwm5bA0jpUTctRpU p7IW6J+VtCmeVi/dy6/F9EaMU5YuENrpQR4GwT+s8ehFJfz31l6bOx4/ALuuxZ8NQvgx ww7v0UHynMFxw0OvSmQi5IU8vsYPBq8tsON8vGapcCNVShH7YNZURKCvcaRbdZVI6f22 FJeCcd0yvOEMrtanAQZ01dLZD+NAEod5XVvbFcohdcHs2ODF+vSm7TM3X7l6ox9d965g GIxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=k9zzOkcg; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k28-20020aa7973c000000b0063d39484021si15849061pfg.81.2023.04.26.00.57.55; Wed, 26 Apr 2023 00:58:09 -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=k9zzOkcg; 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 S240075AbjDZHo5 (ORCPT + 99 others); Wed, 26 Apr 2023 03:44:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240021AbjDZHof (ORCPT ); Wed, 26 Apr 2023 03:44:35 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94A2144AC; Wed, 26 Apr 2023 00:44:20 -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 33Q6qLYc013102; Wed, 26 Apr 2023 00:44:14 -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=yI7HG+JOiOS+JDrb/R95t7A8DFfH5EsInJosfBwdR30=; b=k9zzOkcgu8cK74IJtl1ey86xQlT6r2uznMTbNiNoYTkc2LHytlleAPiPBkkBsup7x128 lMKKYTtBzu2pFSkptsVhpUhovAciEOuNajH8ylxb18nSJZcjuf1b6XYcJHeeFfbj23AR M8dBR+bdNFh1t4zvTKHzn5uLlTEJutyu2apLypF0R9Pl/q9alf66XdKBJZwfkaYlYgcM Emzu6IjgOUbvnAqB0FksMvaFqZrdjq7roo9Cgiuo5raPeK+CBnViTBHi3RPY3eV4UPq/ JtVRcw3U9lpNHybzjBpouPqRdTZiAjPQ7wt9VSQiIJXnH1ptVHeyGUBpFf6vkmw07jGg lw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3q6c2fdd3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 26 Apr 2023 00:44:13 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 26 Apr 2023 00:44:12 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 26 Apr 2023 00:44:12 -0700 Received: from hyd1425.marvell.com (unknown [10.29.37.83]) by maili.marvell.com (Postfix) with ESMTP id 824315B692A; Wed, 26 Apr 2023 00:44:07 -0700 (PDT) From: Sai Krishna To: , , , , , , , , , , , , , CC: Ratheesh Kannoth , Sai Krishna Subject: [net PATCH v4 04/10] octeontx2-pf: Increase the size of dmac filter flows Date: Wed, 26 Apr 2023 13:13:39 +0530 Message-ID: <20230426074345.750135-5-saikrishnag@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230426074345.750135-1-saikrishnag@marvell.com> References: <20230426074345.750135-1-saikrishnag@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: Kb2ljLuusynSal7FY-CrA3xPYxQk8qu4 X-Proofpoint-ORIG-GUID: Kb2ljLuusynSal7FY-CrA3xPYxQk8qu4 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-04-26_02,2023-04-26_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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764224809277955493?= X-GMAIL-MSGID: =?utf-8?q?1764224809277955493?= From: Ratheesh Kannoth CN10kb supports large number of dmac filter flows to be inserted. Increase the field size to accommodate the same Fixes: b747923afff8 ("octeontx2-af: Exact match support") Signed-off-by: Ratheesh Kannoth Signed-off-by: Sunil Kovvuri Goutham Signed-off-by: Sai Krishna Reviewed-by: Simon Horman --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h index 3d22cc6a2804..99cdc871b59c 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h @@ -335,11 +335,11 @@ struct otx2_flow_config { #define OTX2_PER_VF_VLAN_FLOWS 2 /* Rx + Tx per VF */ #define OTX2_VF_VLAN_RX_INDEX 0 #define OTX2_VF_VLAN_TX_INDEX 1 - u16 max_flows; - u8 dmacflt_max_flows; u32 *bmap_to_dmacindex; unsigned long *dmacflt_bmap; struct list_head flow_list; + u32 dmacflt_max_flows; + u16 max_flows; }; struct otx2_tc_info {