From patchwork Mon Feb 7 07:29:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 106943 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 658C2A034F; Mon, 7 Feb 2022 08:31:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D5A9411AB; Mon, 7 Feb 2022 08:30:25 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3025341183 for ; Mon, 7 Feb 2022 08:30:23 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 216LsOhM030467; Sun, 6 Feb 2022 23:30:20 -0800 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-type; s=pfpt0220; bh=XJtydxXJ18FuMoE3wdbIaSu1bI+H3BfQjSzPcTO4NDA=; b=dqEjQtM9W99pkt72/U6y+9wcBsgZKvuyMkcFh0BqxC46pYzjGxmXlcstx7dI6arr0Qmr Yev3GXio9jygw1Vs1kLMZxOrjdkuKFppxa1OjA72CSomW+bt6c2E4+YmyNnQN78m6jk7 lkZYcH0Y5jdyevoKR2w6DZ+gADrFOhOcgjy76vTGCXz+WGt1BtnNBr5AtHOByMTrnN1k DGOxDjP2tyBQh/zxbPfDEdvVl/1w4y6vx4wBirZh/mjkX9F4gaHlaTxMNQd0mC4fFmoS rb05WfWZMzwC3Dax3BBOBe53IuL1EWvBOnLR+z1taruo6ZVwwAamfvof8AxFGNy8zg3K OA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e1smr4p4b-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 06 Feb 2022 23:30:20 -0800 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.2; Sun, 6 Feb 2022 23:30:17 -0800 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.2 via Frontend Transport; Sun, 6 Feb 2022 23:30:17 -0800 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 5AEC73F707A; Sun, 6 Feb 2022 23:30:15 -0800 (PST) From: Nithin Dabilpuram To: , Nithin Dabilpuram , "Kiran Kumar K" , Sunil Kumar Kori , Satha Rao , Ray Kinsella CC: Subject: [PATCH 11/20] common/cnxk: removed tracking of mark actions Date: Mon, 7 Feb 2022 12:59:23 +0530 Message-ID: <20220207072932.22409-11-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20220207072932.22409-1-ndabilpuram@marvell.com> References: <20220207072932.22409-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: 6t-rOJ28e-v1oxr_Gbm-enr141n6iD09 X-Proofpoint-ORIG-GUID: 6t-rOJ28e-v1oxr_Gbm-enr141n6iD09 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-07_02,2022-02-03_01,2021-12-02_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Satha Rao Removed roc npc apis which tracks addition and deletion of mark actions. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_npc.c | 21 --------------------- drivers/common/cnxk/roc_npc.h | 3 --- drivers/common/cnxk/roc_npc_priv.h | 1 - drivers/common/cnxk/version.map | 2 -- 4 files changed, 27 deletions(-) diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.c index e3961bf..d2ebe61 100644 --- a/drivers/common/cnxk/roc_npc.c +++ b/drivers/common/cnxk/roc_npc.c @@ -166,8 +166,6 @@ roc_npc_init(struct roc_npc *roc_npc) roc_npc->kex_capability = npc_get_kex_capability(npc); roc_npc->rx_parse_nibble = npc->keyx_supp_nmask[NPC_MCAM_RX]; - npc->mark_actions = 0; - npc->mcam_entries = npc_mcam_tot_entries() >> npc->keyw[NPC_MCAM_RX]; /* Free, free_rev, live and live_rev entries */ @@ -323,13 +321,11 @@ npc_parse_actions(struct roc_npc *roc_npc, const struct roc_npc_attr *attr, } mark = act_mark->id + 1; req_act |= ROC_NPC_ACTION_TYPE_MARK; - npc->mark_actions += 1; break; case ROC_NPC_ACTION_TYPE_FLAG: mark = NPC_FLOW_FLAG_VAL; req_act |= ROC_NPC_ACTION_TYPE_FLAG; - npc->mark_actions += 1; break; case ROC_NPC_ACTION_TYPE_COUNT: @@ -812,23 +808,6 @@ npc_rss_action_program(struct roc_npc *roc_npc, return 0; } -int -roc_npc_mark_actions_get(struct roc_npc *roc_npc) -{ - struct npc *npc = roc_npc_to_npc_priv(roc_npc); - - return npc->mark_actions; -} - -int -roc_npc_mark_actions_sub_return(struct roc_npc *roc_npc, uint32_t count) -{ - struct npc *npc = roc_npc_to_npc_priv(roc_npc); - - npc->mark_actions -= count; - return npc->mark_actions; -} - static int npc_vtag_cfg_delete(struct roc_npc *roc_npc, struct roc_npc_flow *flow) { diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h index b836e26..6dcdd29 100644 --- a/drivers/common/cnxk/roc_npc.h +++ b/drivers/common/cnxk/roc_npc.h @@ -337,9 +337,6 @@ int __roc_api roc_npc_mcam_free_all_resources(struct roc_npc *roc_npc); void __roc_api roc_npc_flow_dump(FILE *file, struct roc_npc *roc_npc); void __roc_api roc_npc_flow_mcam_dump(FILE *file, struct roc_npc *roc_npc, struct roc_npc_flow *mcam); -int __roc_api roc_npc_mark_actions_get(struct roc_npc *roc_npc); -int __roc_api roc_npc_mark_actions_sub_return(struct roc_npc *roc_npc, - uint32_t count); int __roc_api roc_npc_vtag_actions_get(struct roc_npc *roc_npc); int __roc_api roc_npc_vtag_actions_sub_return(struct roc_npc *roc_npc, uint32_t count); diff --git a/drivers/common/cnxk/roc_npc_priv.h b/drivers/common/cnxk/roc_npc_priv.h index afd11ad..a04f621 100644 --- a/drivers/common/cnxk/roc_npc_priv.h +++ b/drivers/common/cnxk/roc_npc_priv.h @@ -380,7 +380,6 @@ struct npc { uint16_t flow_prealloc_size; /* Pre allocated mcam size */ uint16_t flow_max_priority; /* Max priority for flow */ uint16_t switch_header_type; /* Supported switch header type */ - uint32_t mark_actions; /* Number of mark actions */ uint32_t vtag_strip_actions; /* vtag insert/strip actions */ uint16_t pf_func; /* pf_func of device */ npc_dxcfg_t prx_dxcfg; /* intf, lid, lt, extract */ diff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map index 7a8aff1..0f990d3 100644 --- a/drivers/common/cnxk/version.map +++ b/drivers/common/cnxk/version.map @@ -305,8 +305,6 @@ INTERNAL { roc_npc_flow_parse; roc_npc_get_low_priority_mcam; roc_npc_init; - roc_npc_mark_actions_get; - roc_npc_mark_actions_sub_return; roc_npc_vtag_actions_get; roc_npc_vtag_actions_sub_return; roc_npc_mcam_alloc_entries;