From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7D93606A31C for ; Sun, 29 Nov 2026 20:52:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=AC20eEIQ Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C66440DDD; Sun, 29 Nov 2026 21:50:46 +0100 (CET) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTPS id 03C49406B8 for ; Sun, 29 Nov 2026 21:50:43 +0100 (CET) Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-3b421e8d111so6366685a91.3 for ; Sun, 29 Nov 2026 12:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1795985441; x=1796590241; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=iZl7jeuRE8M0zlcUB/d6uVdIIjwPYusQalHhoI7U0mM=; b=AC20eEIQztFpPC3jFscTWEiyAWio8JdoHs6c+5uWZ8/rdri7JQ1agpeYp9X7yq7B5A lmm/NC2T6kCT3cwm2PsN8IK5O723A0Cx31VrMTaxWI5JS0Y1JQYMQzl8P8FwKq3msArR 5TbErLG5VYvvnvLZN7fbMnVR5FvH+Ft1vmxC7qkNL82DRqeiHHiUcPLfkG1p2U8CI3L9 k05OQAe6GF4Icb5X8NQjPuelnUFSPrdJByoHP/d2SXBNMj/Pk+AJv0EvaYg9jdp8C0z8 oVJCzdQaaJns3ce7mg8w2AgaIsJva6hIw4+AV5D1YmqOQCIGgpTTy8Ktclf+SmG1rH0C 89aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795985441; x=1796590241; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=iZl7jeuRE8M0zlcUB/d6uVdIIjwPYusQalHhoI7U0mM=; b=pLJgGPPuUFrmRd5cE/4a3rkRQw2zvmCoAF+7oQBqr2AuZ95tbYHtvvrUl3Ib0JZ8WN Nkkji3dK8Pi7TxUMeus9VmoEOaQ9+vgnMIB2sqjmTDds8JpHKG4j6N31L1H9o1G5tUhO ZwBFc8g92lIwHfx0tBXOAyMnomps2htAX1E4CvuuJYhtPEKTZlyDzk+JziGtd227ua2L N37idLadnezvOjk3FV5FQqnwSea1CTO0EkGbf0RcLAc0JgScw2ihW3PVa6EsEFt+WQko oPWJSiNX1Vv4oFmkSc6wHf1MNlAffwZhuPrzZQVpYH1G6+/NLwXFO5HbH6NU+2+8fn4Z bD9w== X-Gm-Message-State: APuU4Z8sWa+4L0V79HmEgo+koKdCIwcwlUTlK3/PaCbKUj4JvO0YIzUR kvYUzc4KjDEC3NpjzGfG68tOiUUTkJ6auUncV/juz7dfPRf9r92941LytZwoLOo9U/kr4xNOM4w 5CUW4TP0= X-Gm-Gg: AZFdTZexFVwyOxsVcNsKyMJnWL4Yc4/O4+b/673STzZ8PLpwzU0/XhjL/Fe5/KYdvPP IX3LUY1oIeqFtSihCLZTvDMmVN4vCLO0vMmpDsrxVQBBVtPlHhFx7fxz7wOM6zrAWL0pP/gVWHh DLYCWdZ2QlVqKQzHvg9zeFpqJYWvO9B4IbWsIOYKQNyhxO62tRCqq5/mdkE2/cTIATh+VIO9EE7 WhsI3bsgWyA4KMC3IAjv+aSY/jOR67snkchNOYy6x4uxQ8y0MfdzAvxRuicZVNk2ggXkqmP5ozh eN/xHn5CQFagVzh/bXrpc2Qm8fYlRXplaVAt08VkiMJnr8R+HIvka0mn5q23lTc0d9S2taAEV1f gX6+TjDbHVWsuYoAuXKohe4Y5s1pLkSNoQFpWPqAWi3TU/Q5YoQiDPysk1fAQeSkkbHaJv9G+MZ NOnKUnfRW9vlZZ/NQWgHZH1p7+AAqb2BQBG5uXopUeYoUPXXboE/oWJYzE32zwlw3bYGB9YJ7VW nSrm6WG/vuhUHo4ZhFvVZxwerfoAi2678EIgA3l5lUHCmvc+mJqJBeBzY/kyUlb9MfiQHiba45l 1Yr49fUnD5VQVYA7nx/wnM/ezdab5bobP2oEPCCGdyMdPc2EbDlvnhgvoS7na/doaesb X-Received: by 2002:a17:90b:1a92:b0:3ac:9e76:aa97 with SMTP id 98e67ed59e1d1-3b41c85283fmr31540325a91.6.1795985441162; Sun, 29 Nov 2026 12:50:41 -0800 (PST) Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b50234fb25sm10383968a91.2.2026.11.29.12.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 12:50:40 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra , Srikanth Yalavarthi Subject: [PATCH 21/45] common/cnxk: do not export internal symbols used only in roc Date: Sun, 29 Nov 2026 12:49:06 -0800 Message-ID: <20261129205006.1440292-22-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261129205006.1440292-1-stephen@networkplumber.org> References: <20261129205006.1440292-1-stephen@networkplumber.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 171 roc functions are only called from inside common/cnxk itself. The cnxk net, crypto, event, dma, ml and raw drivers, including the per-offload template files that are not built in a default config, do not reference any of them. Drop the internal exports and the __roc_api tags on the matching declarations, and re-indent the continuation lines that were aligned to the longer first line. Signed-off-by: Stephen Hemminger --- drivers/common/cnxk/cnxk_security.c | 7 - drivers/common/cnxk/cnxk_security.h | 16 +- drivers/common/cnxk/roc_aes.h | 2 +- drivers/common/cnxk/roc_bphy_irq.h | 2 +- drivers/common/cnxk/roc_cpt.h | 12 +- drivers/common/cnxk/roc_dpi.h | 10 +- drivers/common/cnxk/roc_hash.h | 8 +- drivers/common/cnxk/roc_idev.h | 22 +- drivers/common/cnxk/roc_ie_ow.h | 2 +- drivers/common/cnxk/roc_mcs.h | 38 ++-- drivers/common/cnxk/roc_ml.h | 22 +- drivers/common/cnxk/roc_nix.h | 190 +++++++++--------- drivers/common/cnxk/roc_nix_inl.c | 2 +- drivers/common/cnxk/roc_nix_inl.h | 30 +-- drivers/common/cnxk/roc_npa.h | 44 ++-- drivers/common/cnxk/roc_npc.h | 30 +-- drivers/common/cnxk/roc_platform.c | 3 - drivers/common/cnxk/roc_platform.h | 1 - .../common/cnxk/roc_platform_base_symbols.c | 161 --------------- drivers/common/cnxk/roc_ree.h | 14 +- drivers/common/cnxk/roc_rvu_lf.h | 2 +- drivers/common/cnxk/roc_sso.h | 16 +- 22 files changed, 231 insertions(+), 403 deletions(-) diff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c index ed5d7d0ba3..f2e25264ec 100644 --- a/drivers/common/cnxk/cnxk_security.c +++ b/drivers/common/cnxk/cnxk_security.c @@ -596,35 +596,30 @@ cnxk_ot_ipsec_outb_sa_fill(struct roc_ot_ipsec_outb_sa *sa, return 0; } -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ot_ipsec_inb_sa_valid) bool cnxk_ot_ipsec_inb_sa_valid(struct roc_ot_ipsec_inb_sa *sa) { return !!sa->w2.s.valid; } -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ot_ipsec_outb_sa_valid) bool cnxk_ot_ipsec_outb_sa_valid(struct roc_ot_ipsec_outb_sa *sa) { return !!sa->w2.s.valid; } -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ow_ipsec_inb_sa_valid) bool cnxk_ow_ipsec_inb_sa_valid(struct roc_ow_ipsec_inb_sa *sa) { return !!sa->w2.s.valid; } -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ow_ipsec_outb_sa_valid) bool cnxk_ow_ipsec_outb_sa_valid(struct roc_ow_ipsec_outb_sa *sa) { return !!sa->w2.s.valid; } -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ipsec_ivlen_get) uint8_t cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo, enum rte_crypto_auth_algorithm a_algo, @@ -661,7 +656,6 @@ cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo, return ivlen; } -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ipsec_icvlen_get) uint8_t cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo, enum rte_crypto_auth_algorithm a_algo, @@ -708,7 +702,6 @@ cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo, return icv; } -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_ipsec_outb_roundup_byte) uint8_t cnxk_ipsec_outb_roundup_byte(enum rte_crypto_cipher_algorithm c_algo, enum rte_crypto_aead_algorithm aead_algo) diff --git a/drivers/common/cnxk/cnxk_security.h b/drivers/common/cnxk/cnxk_security.h index 10e7d5b520..55992e375b 100644 --- a/drivers/common/cnxk/cnxk_security.h +++ b/drivers/common/cnxk/cnxk_security.h @@ -26,17 +26,17 @@ int __roc_api cnxk_ipsec_outb_rlens_get(struct cnxk_ipsec_outb_rlens *rlens, struct rte_security_ipsec_xform *ipsec_xfrm, struct rte_crypto_sym_xform *crypto_xfrm); -uint8_t __roc_api +uint8_t cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo, enum rte_crypto_auth_algorithm a_algo, enum rte_crypto_aead_algorithm aead_algo); -uint8_t __roc_api +uint8_t cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo, enum rte_crypto_auth_algorithm a_algo, enum rte_crypto_aead_algorithm aead_algo); -uint8_t __roc_api cnxk_ipsec_outb_roundup_byte(enum rte_crypto_cipher_algorithm c_algo, - enum rte_crypto_aead_algorithm aead_algo); +uint8_t cnxk_ipsec_outb_roundup_byte(enum rte_crypto_cipher_algorithm c_algo, + enum rte_crypto_aead_algorithm aead_algo); /* [CN10K] */ int __roc_api cnxk_ot_ipsec_inb_sa_fill(struct roc_ot_ipsec_inb_sa *sa, @@ -46,8 +46,8 @@ int __roc_api cnxk_ot_ipsec_outb_sa_fill(struct roc_ot_ipsec_outb_sa *sa, struct rte_security_ipsec_xform *ipsec_xfrm, struct rte_crypto_sym_xform *crypto_xfrm, uint8_t ctx_ilen); -bool __roc_api cnxk_ot_ipsec_inb_sa_valid(struct roc_ot_ipsec_inb_sa *sa); -bool __roc_api cnxk_ot_ipsec_outb_sa_valid(struct roc_ot_ipsec_outb_sa *sa); +bool cnxk_ot_ipsec_inb_sa_valid(struct roc_ot_ipsec_inb_sa *sa); +bool cnxk_ot_ipsec_outb_sa_valid(struct roc_ot_ipsec_outb_sa *sa); /* [CN9K] */ int __roc_api cnxk_on_ipsec_inb_sa_create(struct rte_security_ipsec_xform *ipsec, @@ -65,8 +65,8 @@ int __roc_api cnxk_ow_ipsec_outb_sa_fill(struct roc_ow_ipsec_outb_sa *sa, struct rte_security_ipsec_xform *ipsec_xfrm, struct rte_crypto_sym_xform *crypto_xfrm, uint8_t ctx_ilen); -bool __roc_api cnxk_ow_ipsec_inb_sa_valid(struct roc_ow_ipsec_inb_sa *sa); -bool __roc_api cnxk_ow_ipsec_outb_sa_valid(struct roc_ow_ipsec_outb_sa *sa); +bool cnxk_ow_ipsec_inb_sa_valid(struct roc_ow_ipsec_inb_sa *sa); +bool cnxk_ow_ipsec_outb_sa_valid(struct roc_ow_ipsec_outb_sa *sa); static inline int ipsec_xform_cipher_verify(struct rte_crypto_sym_xform *crypto_xform) diff --git a/drivers/common/cnxk/roc_aes.h b/drivers/common/cnxk/roc_aes.h index 3b4b921bcd..280febeb1d 100644 --- a/drivers/common/cnxk/roc_aes.h +++ b/drivers/common/cnxk/roc_aes.h @@ -8,7 +8,7 @@ /* * Derive k1, k2, k3 from 128 bit AES key */ -void __roc_api roc_aes_xcbc_key_derive(const uint8_t *auth_key, uint8_t *derived_key); +void roc_aes_xcbc_key_derive(const uint8_t *auth_key, uint8_t *derived_key); void __roc_api roc_aes_hash_key_derive(const uint8_t *key, uint16_t len, uint8_t *hash_key); #endif /* _ROC_AES_H_ */ diff --git a/drivers/common/cnxk/roc_bphy_irq.h b/drivers/common/cnxk/roc_bphy_irq.h index 93335e0d6d..6b18c01299 100644 --- a/drivers/common/cnxk/roc_bphy_irq.h +++ b/drivers/common/cnxk/roc_bphy_irq.h @@ -33,7 +33,7 @@ struct roc_bphy_intr { __roc_api struct roc_bphy_irq_chip *roc_bphy_intr_init(void); __roc_api void roc_bphy_intr_fini(struct roc_bphy_irq_chip *irq_chip); __roc_api void roc_bphy_intr_handler(unsigned int irq_num); -__roc_api bool roc_bphy_intr_available(struct roc_bphy_irq_chip *irq_chip, +bool roc_bphy_intr_available(struct roc_bphy_irq_chip *irq_chip, int irq_num); __roc_api int roc_bphy_intr_clear(struct roc_bphy_irq_chip *chip, int irq_num); __roc_api uint64_t roc_bphy_intr_max_get(struct roc_bphy_irq_chip *irq_chip); diff --git a/drivers/common/cnxk/roc_cpt.h b/drivers/common/cnxk/roc_cpt.h index 56f1693e1f..ed566c86b0 100644 --- a/drivers/common/cnxk/roc_cpt.h +++ b/drivers/common/cnxk/roc_cpt.h @@ -239,12 +239,12 @@ void __roc_api roc_cpt_lf_reset(struct roc_cpt_lf *lf); int __roc_api roc_cpt_lf_ctx_flush(struct roc_cpt_lf *lf, void *cptr, bool inval); int __roc_api roc_cpt_lf_ctx_reload(struct roc_cpt_lf *lf, void *cptr); -int __roc_api roc_cpt_inline_ipsec_cfg(struct dev *dev, uint8_t slot, - struct roc_nix *nix); -int __roc_api roc_cpt_inline_ipsec_inb_cfg_read(struct roc_cpt *roc_cpt, +int roc_cpt_inline_ipsec_cfg(struct dev *dev, uint8_t slot, + struct roc_nix *nix); +int roc_cpt_inline_ipsec_inb_cfg_read(struct roc_cpt *roc_cpt, struct roc_cpt_inline_ipsec_inb_cfg *cfg); -int __roc_api roc_cpt_inline_ipsec_inb_cfg(struct roc_cpt *roc_cpt, - struct roc_cpt_inline_ipsec_inb_cfg *cfg); +int roc_cpt_inline_ipsec_inb_cfg(struct roc_cpt *roc_cpt, + struct roc_cpt_inline_ipsec_inb_cfg *cfg); int __roc_api roc_cpt_afs_print(struct roc_cpt *roc_cpt); int __roc_api roc_cpt_lfs_print(struct roc_cpt *roc_cpt); void __roc_api roc_cpt_iq_disable(struct roc_cpt_lf *lf); @@ -263,6 +263,6 @@ int __roc_api roc_cpt_int_misc_cb_unregister(roc_cpt_int_misc_cb_t cb, void *arg bool roc_cpt_has_ie_engines(void); -void __roc_api roc_cpt_cq_dump(FILE *file, const struct cpt_cq_s *cq); +void roc_cpt_cq_dump(FILE *file, const struct cpt_cq_s *cq); #endif /* _ROC_CPT_H_ */ diff --git a/drivers/common/cnxk/roc_dpi.h b/drivers/common/cnxk/roc_dpi.h index 1aebfc8326..7d6281bb14 100644 --- a/drivers/common/cnxk/roc_dpi.h +++ b/drivers/common/cnxk/roc_dpi.h @@ -79,8 +79,8 @@ int __roc_api roc_dpi_dev_fini(struct roc_dpi *roc_dpi); int __roc_api roc_dpi_rsrc_init(struct roc_dpi *roc_dpi); int __roc_api roc_dpi_rsrc_fini(struct roc_dpi *roc_dpi); -int __roc_api roc_dpi_configure(struct roc_dpi *dpi, uint32_t chunk_sz, uint64_t aura, - uint64_t chunk_base); +int roc_dpi_configure(struct roc_dpi *dpi, uint32_t chunk_sz, uint64_t aura, + uint64_t chunk_base); int __roc_api roc_dpi_configure_v2(struct roc_dpi *roc_dpi, uint32_t chunk_sz, uint64_t aura, uint64_t chunk_base); int __roc_api roc_dpi_enable(struct roc_dpi *dpi); @@ -89,13 +89,13 @@ int __roc_api roc_dpi_disable(struct roc_dpi *dpi); int __roc_api roc_dpi_reset(struct roc_dpi *dpi); int __roc_api roc_dpi_lf_ring_init(struct roc_dpi_lf_que *que, struct roc_dpi_lf_ring_cfg *rcfg); -void __roc_api roc_dpi_lf_ring_fini(struct roc_dpi_lf_que *que); +void roc_dpi_lf_ring_fini(struct roc_dpi_lf_que *que); int __roc_api roc_dpi_lf_pffunc_cfg(struct roc_dpi_lf *lf); -int __roc_api roc_dpi_lf_ring_chan_cfg(struct roc_dpi_lf_que *que, union roc_dpi_lf_ccfg *cfg); +int roc_dpi_lf_ring_chan_cfg(struct roc_dpi_lf_que *que, union roc_dpi_lf_ccfg *cfg); int __roc_api roc_dpi_lf_chan_tbl_alloc(struct roc_dpi_lf *lf, uint16_t tbl_sz); int __roc_api roc_dpi_lf_chan_tbl_free(struct roc_dpi_lf *lf); int __roc_api roc_dpi_lf_chan_tbl_select(struct roc_dpi_lf *lf); -int __roc_api roc_dpi_lf_chan_tbl_ena_dis(struct roc_dpi_lf *lf, bool ena); +int roc_dpi_lf_chan_tbl_ena_dis(struct roc_dpi_lf *lf, bool ena); int __roc_api roc_dpi_lf_chan_tbl_update(struct roc_dpi_lf *lf, uint64_t *config, uint16_t offset, uint16_t entries); int __roc_api roc_dpi_lf_dump(struct roc_dpi_lf *lf, FILE *file); diff --git a/drivers/common/cnxk/roc_hash.h b/drivers/common/cnxk/roc_hash.h index c3ddb9407b..929e4c6788 100644 --- a/drivers/common/cnxk/roc_hash.h +++ b/drivers/common/cnxk/roc_hash.h @@ -9,9 +9,9 @@ * Compute a partial hash with the assumption that msg is the first block. * Based on implementation from RFC 3174 */ -void __roc_api roc_hash_md5_gen(uint8_t *msg, uint32_t *hash); -void __roc_api roc_hash_sha1_gen(uint8_t *msg, uint32_t *hash); -void __roc_api roc_hash_sha256_gen(uint8_t *msg, uint32_t *hash, int hash_size); -void __roc_api roc_hash_sha512_gen(uint8_t *msg, uint64_t *hash, int hash_size); +void roc_hash_md5_gen(uint8_t *msg, uint32_t *hash); +void roc_hash_sha1_gen(uint8_t *msg, uint32_t *hash); +void roc_hash_sha256_gen(uint8_t *msg, uint32_t *hash, int hash_size); +void roc_hash_sha512_gen(uint8_t *msg, uint64_t *hash, int hash_size); #endif /* _ROC_HASH_H_ */ diff --git a/drivers/common/cnxk/roc_idev.h b/drivers/common/cnxk/roc_idev.h index 3803963b07..3d272ec641 100644 --- a/drivers/common/cnxk/roc_idev.h +++ b/drivers/common/cnxk/roc_idev.h @@ -13,27 +13,27 @@ void __roc_api roc_idev_npa_halo_ena_set(int halo_ena); /* LMT */ uint64_t __roc_api roc_idev_lmt_base_addr_get(void); -uint16_t __roc_api roc_idev_num_lmtlines_get(void); +uint16_t roc_idev_num_lmtlines_get(void); struct roc_cpt *__roc_api roc_idev_cpt_get(void); -void __roc_api roc_idev_cpt_set(struct roc_cpt *cpt); +void roc_idev_cpt_set(struct roc_cpt *cpt); struct roc_nix *__roc_api roc_idev_npa_nix_get(void); -uint64_t __roc_api roc_idev_nix_inl_meta_aura_get(void); -struct roc_nix_list *__roc_api roc_idev_nix_list_get(void); +uint64_t roc_idev_nix_inl_meta_aura_get(void); +struct roc_nix_list *roc_idev_nix_list_get(void); -struct roc_mcs *__roc_api roc_idev_mcs_get(uint8_t mcs_idx); -void __roc_api roc_idev_mcs_set(struct roc_mcs *mcs); -void __roc_api roc_idev_mcs_free(struct roc_mcs *mcs); +struct roc_mcs *roc_idev_mcs_get(uint8_t mcs_idx); +void roc_idev_mcs_set(struct roc_mcs *mcs); +void roc_idev_mcs_free(struct roc_mcs *mcs); uint8_t __roc_api roc_idev_nix_rx_inject_get(uint16_t port); void __roc_api roc_idev_nix_rx_inject_set(uint16_t port, uint8_t enable); uint16_t *__roc_api roc_idev_nix_rx_chan_base_get(void); -void __roc_api roc_idev_nix_rx_chan_set(uint16_t port, uint16_t chan); +void roc_idev_nix_rx_chan_set(uint16_t port, uint16_t chan); uint16_t __roc_api roc_idev_nix_inl_dev_pffunc_get(void); -struct roc_rvu_lf *__roc_api roc_idev_rvu_lf_get(uint8_t rvu_lf_idx); -void __roc_api roc_idev_rvu_lf_set(struct roc_rvu_lf *rvu); -void __roc_api roc_idev_rvu_lf_free(struct roc_rvu_lf *rvu); +struct roc_rvu_lf *roc_idev_rvu_lf_get(uint8_t rvu_lf_idx); +void roc_idev_rvu_lf_set(struct roc_rvu_lf *rvu); +void roc_idev_rvu_lf_free(struct roc_rvu_lf *rvu); #endif /* _ROC_IDEV_H_ */ diff --git a/drivers/common/cnxk/roc_ie_ow.h b/drivers/common/cnxk/roc_ie_ow.h index 4a3291d458..24c2a7cb4f 100644 --- a/drivers/common/cnxk/roc_ie_ow.h +++ b/drivers/common/cnxk/roc_ie_ow.h @@ -533,7 +533,7 @@ PLT_STATIC_ASSERT(offsetof(struct roc_ow_ipsec_outb_sa, ctx) == 31 * sizeof(uint (PLT_MAX(sizeof(struct roc_ow_ipsec_inb_sa), sizeof(struct roc_ow_ipsec_outb_sa))) void __roc_api roc_ow_ipsec_inb_sa_init(struct roc_ow_ipsec_inb_sa *sa); -void __roc_api roc_ow_reass_inb_sa_init(struct roc_ow_ipsec_inb_sa *sa); +void roc_ow_reass_inb_sa_init(struct roc_ow_ipsec_inb_sa *sa); void __roc_api roc_ow_ipsec_outb_sa_init(struct roc_ow_ipsec_outb_sa *sa); #endif /* __ROC_IE_OW_H__ */ diff --git a/drivers/common/cnxk/roc_mcs.h b/drivers/common/cnxk/roc_mcs.h index 3ac82f6f8c..eb50219561 100644 --- a/drivers/common/cnxk/roc_mcs.h +++ b/drivers/common/cnxk/roc_mcs.h @@ -508,20 +508,20 @@ __roc_api struct roc_mcs *roc_mcs_dev_get(uint8_t mcs_idx); /* HW info get */ __roc_api int roc_mcs_hw_info_get(struct roc_mcs_hw_info *hw_info); /* Active lmac bmap set */ -__roc_api int roc_mcs_active_lmac_set(struct roc_mcs *mcs, struct roc_mcs_set_active_lmac *lmac); +int roc_mcs_active_lmac_set(struct roc_mcs *mcs, struct roc_mcs_set_active_lmac *lmac); /* Port bypass mode set */ -__roc_api int roc_mcs_lmac_mode_set(struct roc_mcs *mcs, struct roc_mcs_set_lmac_mode *port); +int roc_mcs_lmac_mode_set(struct roc_mcs *mcs, struct roc_mcs_set_lmac_mode *port); /* (X)PN threshold set */ __roc_api int roc_mcs_pn_threshold_set(struct roc_mcs *mcs, struct roc_mcs_set_pn_threshold *pn); /* Reset port */ -__roc_api int roc_mcs_port_reset(struct roc_mcs *mcs, struct roc_mcs_port_reset_req *port); +int roc_mcs_port_reset(struct roc_mcs *mcs, struct roc_mcs_port_reset_req *port); /* Get port config */ -__roc_api int roc_mcs_port_cfg_set(struct roc_mcs *mcs, struct roc_mcs_port_cfg_set_req *req); +int roc_mcs_port_cfg_set(struct roc_mcs *mcs, struct roc_mcs_port_cfg_set_req *req); /* Set port config */ -__roc_api int roc_mcs_port_cfg_get(struct roc_mcs *mcs, struct roc_mcs_port_cfg_get_req *req, +int roc_mcs_port_cfg_get(struct roc_mcs *mcs, struct roc_mcs_port_cfg_get_req *req, struct roc_mcs_port_cfg_get_rsp *rsp); /* Get custom tag config */ -__roc_api int roc_mcs_custom_tag_cfg_get(struct roc_mcs *mcs, +int roc_mcs_custom_tag_cfg_get(struct roc_mcs *mcs, struct roc_mcs_custom_tag_cfg_get_req *req, struct roc_mcs_custom_tag_cfg_get_rsp *rsp); @@ -532,36 +532,36 @@ __roc_api int roc_mcs_rsrc_free(struct roc_mcs *mcs, struct roc_mcs_free_rsrc_re /* SA policy read and write */ __roc_api int roc_mcs_sa_policy_write(struct roc_mcs *mcs, struct roc_mcs_sa_plcy_write_req *sa_plcy); -__roc_api int roc_mcs_sa_policy_read(struct roc_mcs *mcs, +int roc_mcs_sa_policy_read(struct roc_mcs *mcs, struct roc_mcs_sa_plcy_write_req *sa_plcy); /* PN Table read and write */ __roc_api int roc_mcs_pn_table_write(struct roc_mcs *mcs, struct roc_mcs_pn_table_write_req *pn_table); -__roc_api int roc_mcs_pn_table_read(struct roc_mcs *mcs, +int roc_mcs_pn_table_read(struct roc_mcs *mcs, struct roc_mcs_pn_table_write_req *pn_table); /* RX SC read, write and enable */ __roc_api int roc_mcs_rx_sc_cam_write(struct roc_mcs *mcs, struct roc_mcs_rx_sc_cam_write_req *rx_sc_cam); -__roc_api int roc_mcs_rx_sc_cam_read(struct roc_mcs *mcs, +int roc_mcs_rx_sc_cam_read(struct roc_mcs *mcs, struct roc_mcs_rx_sc_cam_write_req *rx_sc_cam); -__roc_api int roc_mcs_rx_sc_cam_enable(struct roc_mcs *mcs, +int roc_mcs_rx_sc_cam_enable(struct roc_mcs *mcs, struct roc_mcs_rx_sc_cam_write_req *rx_sc_cam); /* SECY policy read and write */ __roc_api int roc_mcs_secy_policy_write(struct roc_mcs *mcs, struct roc_mcs_secy_plcy_write_req *secy_plcy); -__roc_api int roc_mcs_secy_policy_read(struct roc_mcs *mcs, +int roc_mcs_secy_policy_read(struct roc_mcs *mcs, struct roc_mcs_rx_sc_cam_write_req *rx_sc_cam); /* RX SC-SA MAP read and write */ __roc_api int roc_mcs_rx_sc_sa_map_write(struct roc_mcs *mcs, struct roc_mcs_rx_sc_sa_map *rx_sc_sa_map); -__roc_api int roc_mcs_rx_sc_sa_map_read(struct roc_mcs *mcs, +int roc_mcs_rx_sc_sa_map_read(struct roc_mcs *mcs, struct roc_mcs_rx_sc_sa_map *rx_sc_sa_map); /* TX SC-SA MAP read and write */ __roc_api int roc_mcs_tx_sc_sa_map_write(struct roc_mcs *mcs, struct roc_mcs_tx_sc_sa_map *tx_sc_sa_map); -__roc_api int roc_mcs_tx_sc_sa_map_read(struct roc_mcs *mcs, +int roc_mcs_tx_sc_sa_map_read(struct roc_mcs *mcs, struct roc_mcs_tx_sc_sa_map *tx_sc_sa_map); /* SA to Port map update */ __roc_api void roc_mcs_sa_port_map_update(struct roc_mcs *mcs, int sa_id, uint8_t port_id); @@ -569,18 +569,18 @@ __roc_api void roc_mcs_sa_port_map_update(struct roc_mcs *mcs, int sa_id, uint8_ /* Flow entry read, write and enable */ __roc_api int roc_mcs_flowid_entry_write(struct roc_mcs *mcs, struct roc_mcs_flowid_entry_write_req *flowid_req); -__roc_api int roc_mcs_flowid_entry_read(struct roc_mcs *mcs, +int roc_mcs_flowid_entry_read(struct roc_mcs *mcs, struct roc_mcs_flowid_entry_write_req *flowid_rsp); -__roc_api int roc_mcs_flowid_entry_enable(struct roc_mcs *mcs, +int roc_mcs_flowid_entry_enable(struct roc_mcs *mcs, struct roc_mcs_flowid_ena_dis_entry *entry); /* Control packet rule alloc, free and write */ -__roc_api int roc_mcs_ctrl_pkt_rule_alloc(struct roc_mcs *mcs, +int roc_mcs_ctrl_pkt_rule_alloc(struct roc_mcs *mcs, struct roc_mcs_alloc_ctrl_pkt_rule_req *req, struct roc_mcs_alloc_ctrl_pkt_rule_rsp *rsp); -__roc_api int roc_mcs_ctrl_pkt_rule_free(struct roc_mcs *mcs, +int roc_mcs_ctrl_pkt_rule_free(struct roc_mcs *mcs, struct roc_mcs_free_ctrl_pkt_rule_req *req); -__roc_api int roc_mcs_ctrl_pkt_rule_write(struct roc_mcs *mcs, +int roc_mcs_ctrl_pkt_rule_write(struct roc_mcs *mcs, struct roc_mcs_ctrl_pkt_rule_write_req *req); /* Flow id stats get */ @@ -608,7 +608,7 @@ __roc_api int roc_mcs_event_cb_unregister(struct roc_mcs *mcs, enum roc_mcs_even __roc_api int roc_mcs_intr_configure(struct roc_mcs *mcs, struct roc_mcs_intr_cfg *config); /* Port recovery from fatal errors */ -__roc_api int roc_mcs_port_recovery(struct roc_mcs *mcs, union roc_mcs_event_data *mdata, +int roc_mcs_port_recovery(struct roc_mcs *mcs, union roc_mcs_event_data *mdata, uint8_t port_id); /* FIPS reset */ diff --git a/drivers/common/cnxk/roc_ml.h b/drivers/common/cnxk/roc_ml.h index 3cd82be6a6..8d4f5b5097 100644 --- a/drivers/common/cnxk/roc_ml.h +++ b/drivers/common/cnxk/roc_ml.h @@ -117,14 +117,14 @@ void __roc_api roc_ml_reg_write32(struct roc_ml *roc_ml, uint32_t val, uint64_t void __roc_api roc_ml_reg_save(struct roc_ml *roc_ml, uint64_t offset); /* Address translation functions */ -uint64_t __roc_api roc_ml_addr_pa_to_offset(struct roc_ml *roc_ml, uint64_t phys_addr); -uint64_t __roc_api roc_ml_addr_offset_to_pa(struct roc_ml *roc_ml, uint64_t offset); +uint64_t roc_ml_addr_pa_to_offset(struct roc_ml *roc_ml, uint64_t phys_addr); +uint64_t roc_ml_addr_offset_to_pa(struct roc_ml *roc_ml, uint64_t offset); void *__roc_api roc_ml_addr_ap2mlip(struct roc_ml *roc_ml, void *addr); void *__roc_api roc_ml_addr_mlip2ap(struct roc_ml *roc_ml, void *addr); /* Scratch and JCMDQ functions */ -void __roc_api roc_ml_scratch_write_job(struct roc_ml *roc_ml, void *jd); -bool __roc_api roc_ml_scratch_is_valid_bit_set(struct roc_ml *roc_ml); +void roc_ml_scratch_write_job(struct roc_ml *roc_ml, void *jd); +bool roc_ml_scratch_is_valid_bit_set(struct roc_ml *roc_ml); bool __roc_api roc_ml_scratch_is_done_bit_set(struct roc_ml *roc_ml); bool __roc_api roc_ml_scratch_enqueue(struct roc_ml *roc_ml, void *work_ptr); bool __roc_api roc_ml_scratch_dequeue(struct roc_ml *roc_ml, void *work_ptr); @@ -133,20 +133,20 @@ bool __roc_api roc_ml_jcmdq_enqueue_lf(struct roc_ml *roc_ml, struct ml_job_cmd_ bool __roc_api roc_ml_jcmdq_enqueue_sl(struct roc_ml *roc_ml, struct ml_job_cmd_s *job_cmd); /* Device management functions */ -void __roc_api roc_ml_clk_force_on(struct roc_ml *roc_ml); -void __roc_api roc_ml_clk_force_off(struct roc_ml *roc_ml); -void __roc_api roc_ml_dma_stall_on(struct roc_ml *roc_ml); -void __roc_api roc_ml_dma_stall_off(struct roc_ml *roc_ml); +void roc_ml_clk_force_on(struct roc_ml *roc_ml); +void roc_ml_clk_force_off(struct roc_ml *roc_ml); +void roc_ml_dma_stall_on(struct roc_ml *roc_ml); +void roc_ml_dma_stall_off(struct roc_ml *roc_ml); bool __roc_api roc_ml_mlip_is_enabled(struct roc_ml *roc_ml); int __roc_api roc_ml_mlip_reset(struct roc_ml *roc_ml, bool force); /* Device / block functions */ int __roc_api roc_ml_dev_init(struct roc_ml *roc_ml); int __roc_api roc_ml_dev_fini(struct roc_ml *roc_ml); -int __roc_api roc_ml_blk_init(struct roc_bphy *roc_bphy, struct roc_ml *roc_ml); -int __roc_api roc_ml_blk_fini(struct roc_bphy *roc_bphy, struct roc_ml *roc_ml); +int roc_ml_blk_init(struct roc_bphy *roc_bphy, struct roc_ml *roc_ml); +int roc_ml_blk_fini(struct roc_bphy *roc_bphy, struct roc_ml *roc_ml); /* Utility functions */ -uint16_t __roc_api roc_ml_sso_pf_func_get(void); +uint16_t roc_ml_sso_pf_func_get(void); #endif /*_ROC_ML_H_*/ diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h index 35a90f982b..6afc4e4922 100644 --- a/drivers/common/cnxk/roc_nix.h +++ b/drivers/common/cnxk/roc_nix.h @@ -667,7 +667,7 @@ bool __roc_api roc_nix_is_sdp(struct roc_nix *roc_nix); bool __roc_api roc_nix_is_pf(struct roc_nix *roc_nix); bool __roc_api roc_nix_is_vf_or_sdp(struct roc_nix *roc_nix); int __roc_api roc_nix_get_base_chan(struct roc_nix *roc_nix); -uint8_t __roc_api roc_nix_get_rx_chan_cnt(struct roc_nix *roc_nix); +uint8_t roc_nix_get_rx_chan_cnt(struct roc_nix *roc_nix); int __roc_api roc_nix_get_pf(struct roc_nix *roc_nix); int __roc_api roc_nix_get_vf(struct roc_nix *roc_nix); uint16_t __roc_api roc_nix_get_pf_func(struct roc_nix *roc_nix); @@ -678,9 +678,9 @@ int __roc_api roc_nix_max_pkt_len(struct roc_nix *roc_nix); int __roc_api roc_nix_lf_alloc(struct roc_nix *roc_nix, uint32_t nb_rxq, uint32_t nb_txq, uint64_t rx_cfg); int __roc_api roc_nix_lf_free(struct roc_nix *roc_nix); -int __roc_api roc_nix_lf_inl_ipsec_cfg(struct roc_nix *roc_nix, - struct roc_nix_ipsec_cfg *cfg, bool enb); -int __roc_api roc_nix_cpt_ctx_cache_sync(struct roc_nix *roc_nix); +int roc_nix_lf_inl_ipsec_cfg(struct roc_nix *roc_nix, + struct roc_nix_ipsec_cfg *cfg, bool enb); +int roc_nix_cpt_ctx_cache_sync(struct roc_nix *roc_nix); int __roc_api roc_nix_rx_drop_re_set(struct roc_nix *roc_nix, bool ena); /* Debug */ @@ -812,7 +812,7 @@ int __roc_api roc_nix_tm_node_add(struct roc_nix *roc_nix, struct roc_nix_tm_node *roc_node); int __roc_api roc_nix_tm_node_delete(struct roc_nix *roc_nix, uint32_t node_id, bool free); -int __roc_api roc_nix_tm_free_resources(struct roc_nix *roc_nix, bool hw_only); +int roc_nix_tm_free_resources(struct roc_nix *roc_nix, bool hw_only); int __roc_api roc_nix_tm_node_suspend_resume(struct roc_nix *roc_nix, uint32_t node_id, bool suspend); int __roc_api roc_nix_tm_node_parent_update(struct roc_nix *roc_nix, @@ -823,26 +823,26 @@ int __roc_api roc_nix_tm_node_shaper_update(struct roc_nix *roc_nix, uint32_t node_id, uint32_t profile_id, bool force_update); -int __roc_api roc_nix_tm_node_pkt_mode_update(struct roc_nix *roc_nix, - uint32_t node_id, bool pkt_mode); +int roc_nix_tm_node_pkt_mode_update(struct roc_nix *roc_nix, + uint32_t node_id, bool pkt_mode); int __roc_api roc_nix_tm_shaper_profile_add( struct roc_nix *roc_nix, struct roc_nix_tm_shaper_profile *profile); -int __roc_api roc_nix_tm_shaper_profile_update( +int roc_nix_tm_shaper_profile_update( struct roc_nix *roc_nix, struct roc_nix_tm_shaper_profile *profile); int __roc_api roc_nix_tm_shaper_profile_delete(struct roc_nix *roc_nix, uint32_t id); -int __roc_api roc_nix_tm_prealloc_res(struct roc_nix *roc_nix, uint8_t lvl, - uint16_t discontig, uint16_t contig); +int roc_nix_tm_prealloc_res(struct roc_nix *roc_nix, uint8_t lvl, + uint16_t discontig, uint16_t contig); uint16_t __roc_api roc_nix_tm_leaf_cnt(struct roc_nix *roc_nix); struct roc_nix_tm_node *__roc_api roc_nix_tm_node_get(struct roc_nix *roc_nix, uint32_t node_id); -struct roc_nix_tm_node *__roc_api +struct roc_nix_tm_node * roc_nix_tm_node_next(struct roc_nix *roc_nix, struct roc_nix_tm_node *__prev); struct roc_nix_tm_shaper_profile *__roc_api roc_nix_tm_shaper_profile_get(struct roc_nix *roc_nix, uint32_t profile_id); -struct roc_nix_tm_shaper_profile *__roc_api roc_nix_tm_shaper_profile_next( +struct roc_nix_tm_shaper_profile *roc_nix_tm_shaper_profile_next( struct roc_nix *roc_nix, struct roc_nix_tm_shaper_profile *__prev); int __roc_api roc_nix_tm_node_stats_get(struct roc_nix *roc_nix, @@ -865,21 +865,21 @@ int __roc_api roc_nix_tm_hierarchy_disable(struct roc_nix *roc_nix); int __roc_api roc_nix_tm_hierarchy_enable(struct roc_nix *roc_nix, enum roc_nix_tm_tree tree, bool xmit_enable); -int __roc_api roc_nix_tm_hierarchy_xmit_enable(struct roc_nix *roc_nix, enum roc_nix_tm_tree tree); +int roc_nix_tm_hierarchy_xmit_enable(struct roc_nix *roc_nix, enum roc_nix_tm_tree tree); /* * TM utilities API. */ -int __roc_api roc_nix_tm_node_lvl(struct roc_nix *roc_nix, uint32_t node_id); -bool __roc_api roc_nix_tm_root_has_sp(struct roc_nix *roc_nix); -void __roc_api roc_nix_tm_rsrc_max(bool pf, uint16_t schq[ROC_TM_LVL_MAX]); +int roc_nix_tm_node_lvl(struct roc_nix *roc_nix, uint32_t node_id); +bool roc_nix_tm_root_has_sp(struct roc_nix *roc_nix); +void roc_nix_tm_rsrc_max(bool pf, uint16_t schq[ROC_TM_LVL_MAX]); int __roc_api roc_nix_tm_rsrc_count(struct roc_nix *roc_nix, uint16_t schq[ROC_TM_LVL_MAX]); -int __roc_api roc_nix_tm_node_name_get(struct roc_nix *roc_nix, - uint32_t node_id, char *buf, - size_t buflen); -int __roc_api roc_nix_smq_flush(struct roc_nix *roc_nix); +int roc_nix_tm_node_name_get(struct roc_nix *roc_nix, + uint32_t node_id, char *buf, + size_t buflen); +int roc_nix_smq_flush(struct roc_nix *roc_nix); int __roc_api roc_nix_tm_max_prio(struct roc_nix *roc_nix, int lvl); int __roc_api roc_nix_tm_lvl_is_leaf(struct roc_nix *roc_nix, int lvl); void __roc_api @@ -889,7 +889,7 @@ int __roc_api roc_nix_tm_lvl_cnt_get(struct roc_nix *roc_nix); int __roc_api roc_nix_tm_lvl_have_link_access(struct roc_nix *roc_nix, int lvl); int __roc_api roc_nix_tm_prepare_rate_limited_tree(struct roc_nix *roc_nix); int __roc_api roc_nix_tm_pfc_prepare_tree(struct roc_nix *roc_nix); -int __roc_api roc_nix_tm_sdp_prepare_tree(struct roc_nix *roc_nix); +int roc_nix_tm_sdp_prepare_tree(struct roc_nix *roc_nix); bool __roc_api roc_nix_tm_is_user_hierarchy_enabled(struct roc_nix *nix); int __roc_api roc_nix_tm_tree_type_get(struct roc_nix *nix); int __roc_api roc_nix_tm_mark_config(struct roc_nix *roc_nix, @@ -897,8 +897,8 @@ int __roc_api roc_nix_tm_mark_config(struct roc_nix *roc_nix, int mark_red); uint64_t __roc_api roc_nix_tm_mark_format_get(struct roc_nix *roc_nix, uint64_t *flags); -int __roc_api roc_nix_tm_egress_link_cfg_set(struct roc_nix *roc_nix, uint64_t dst_pf_func, - bool enable); +int roc_nix_tm_egress_link_cfg_set(struct roc_nix *roc_nix, uint64_t dst_pf_func, + bool enable); /* Ingress Policer API */ int __roc_api roc_nix_bpf_timeunit_get(struct roc_nix *roc_nix, @@ -916,7 +916,7 @@ int __roc_api roc_nix_bpf_free(struct roc_nix *roc_nix, struct roc_nix_bpf_objs *profs, uint8_t num_prof); -int __roc_api roc_nix_bpf_free_all(struct roc_nix *roc_nix); +int roc_nix_bpf_free_all(struct roc_nix *roc_nix); int __roc_api roc_nix_bpf_config(struct roc_nix *roc_nix, uint16_t id, enum roc_nix_bpf_level_flag lvl_flag, @@ -925,8 +925,8 @@ int __roc_api roc_nix_bpf_config(struct roc_nix *roc_nix, uint16_t id, int __roc_api roc_nix_bpf_ena_dis(struct roc_nix *roc_nix, uint16_t id, struct roc_nix_rq *rq, bool enable); -int __roc_api roc_nix_bpf_dump(struct roc_nix *roc_nix, uint16_t id, - enum roc_nix_bpf_level_flag lvl_flag); +int roc_nix_bpf_dump(struct roc_nix *roc_nix, uint16_t id, + enum roc_nix_bpf_level_flag lvl_flag); int __roc_api roc_nix_bpf_pre_color_tbl_setup( struct roc_nix *roc_nix, uint16_t id, @@ -946,12 +946,12 @@ int __roc_api roc_nix_bpf_stats_reset(struct roc_nix *roc_nix, uint16_t id, uint64_t mask, enum roc_nix_bpf_level_flag lvl_flag); -int __roc_api +int roc_nix_bpf_lf_stats_read(struct roc_nix *roc_nix, uint64_t mask, uint64_t stats[ROC_NIX_BPF_STATS_MAX] /* Out */); -int __roc_api roc_nix_bpf_lf_stats_reset(struct roc_nix *roc_nix, - uint64_t mask); +int roc_nix_bpf_lf_stats_reset(struct roc_nix *roc_nix, + uint64_t mask); uint8_t __roc_api roc_nix_bpf_level_to_idx(enum roc_nix_bpf_level_flag lvl_flag); @@ -959,7 +959,7 @@ roc_nix_bpf_level_to_idx(enum roc_nix_bpf_level_flag lvl_flag); uint8_t __roc_api roc_nix_bpf_stats_to_idx(enum roc_nix_bpf_stats lvl_flag); /* MAC */ -int __roc_api roc_nix_mac_rxtx_start_stop(struct roc_nix *roc_nix, bool start); +int roc_nix_mac_rxtx_start_stop(struct roc_nix *roc_nix, bool start); int __roc_api roc_nix_mac_link_event_start_stop(struct roc_nix *roc_nix, bool start); int __roc_api roc_nix_mac_loopback_enable(struct roc_nix *roc_nix, bool enable); @@ -977,7 +977,7 @@ int __roc_api roc_nix_mac_link_info_get(struct roc_nix *roc_nix, struct roc_nix_link_info *link_info); int __roc_api roc_nix_mac_fec_set(struct roc_nix *roc_nix, int fec); int __roc_api roc_nix_mac_fec_supported_get(struct roc_nix *roc_nix, uint64_t *supported_fec); -int __roc_api roc_nix_mac_mtu_set(struct roc_nix *roc_nix, uint16_t mtu); +int roc_nix_mac_mtu_set(struct roc_nix *roc_nix, uint16_t mtu); int __roc_api roc_nix_mac_max_rx_len_set(struct roc_nix *roc_nix, uint16_t maxlen); int __roc_api roc_nix_mac_link_cb_register(struct roc_nix *roc_nix, @@ -985,9 +985,9 @@ int __roc_api roc_nix_mac_link_cb_register(struct roc_nix *roc_nix, void __roc_api roc_nix_mac_link_cb_unregister(struct roc_nix *roc_nix); int __roc_api roc_nix_mac_link_info_get_cb_register( struct roc_nix *roc_nix, link_info_get_t link_info_get); -void __roc_api roc_nix_mac_link_info_get_cb_unregister(struct roc_nix *roc_nix); +void roc_nix_mac_link_info_get_cb_unregister(struct roc_nix *roc_nix); int __roc_api roc_nix_q_err_cb_register(struct roc_nix *roc_nix, q_err_get_t sq_err_handle); -void __roc_api roc_nix_q_err_cb_unregister(struct roc_nix *roc_nix); +void roc_nix_q_err_cb_unregister(struct roc_nix *roc_nix); int __roc_api roc_nix_mac_stats_reset(struct roc_nix *roc_nix); int __roc_api roc_nix_mac_fwdata_get(struct roc_nix *roc_nix, struct roc_nix_mac_fwdata *fwdata); @@ -998,11 +998,11 @@ int __roc_api roc_nix_switch_hdr_set(struct roc_nix *roc_nix, uint64_t switch_he int __roc_api roc_nix_lso_fmt_setup(struct roc_nix *roc_nix); int __roc_api roc_nix_lso_fmt_get(struct roc_nix *roc_nix, uint8_t udp_tun[ROC_NIX_LSO_TUN_MAX], uint8_t tun[ROC_NIX_LSO_TUN_MAX]); -int __roc_api roc_nix_lso_fmt_ipv4_frag_get(struct roc_nix *roc_nix); -int __roc_api roc_nix_lso_custom_fmt_setup(struct roc_nix *roc_nix, struct nix_lso_format *fields, - uint16_t nb_fields); -int __roc_api roc_nix_lso_alt_flags_profile_setup(struct roc_nix *roc_nix, - nix_lso_alt_flg_format_t *fmt); +int roc_nix_lso_fmt_ipv4_frag_get(struct roc_nix *roc_nix); +int roc_nix_lso_custom_fmt_setup(struct roc_nix *roc_nix, struct nix_lso_format *fields, + uint16_t nb_fields); +int roc_nix_lso_alt_flags_profile_setup(struct roc_nix *roc_nix, + nix_lso_alt_flg_format_t *fmt); int __roc_api roc_nix_eeprom_info_get(struct roc_nix *roc_nix, struct roc_nix_eeprom_info *info); @@ -1011,8 +1011,8 @@ int __roc_api roc_nix_eeprom_info_get(struct roc_nix *roc_nix, int __roc_api roc_nix_fc_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg); -int __roc_api roc_nix_fc_config_get(struct roc_nix *roc_nix, - struct roc_nix_fc_cfg *fc_cfg); +int roc_nix_fc_config_get(struct roc_nix *roc_nix, + struct roc_nix_fc_cfg *fc_cfg); int __roc_api roc_nix_fc_mode_set(struct roc_nix *roc_nix, enum roc_nix_fc_mode mode); @@ -1020,25 +1020,25 @@ int __roc_api roc_nix_fc_mode_set(struct roc_nix *roc_nix, int __roc_api roc_nix_pfc_mode_set(struct roc_nix *roc_nix, struct roc_nix_pfc_cfg *pfc_cfg); -int __roc_api roc_nix_pfc_mode_get(struct roc_nix *roc_nix, - struct roc_nix_pfc_cfg *pfc_cfg); +int roc_nix_pfc_mode_get(struct roc_nix *roc_nix, + struct roc_nix_pfc_cfg *pfc_cfg); uint16_t __roc_api roc_nix_chan_count_get(struct roc_nix *roc_nix); enum roc_nix_fc_mode __roc_api roc_nix_fc_mode_get(struct roc_nix *roc_nix); -void __roc_api roc_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t ena, - uint8_t force, uint8_t tc, uint64_t drop_percent); -int __roc_api roc_nix_bpids_alloc(struct roc_nix *roc_nix, uint8_t type, - uint8_t bp_cnt, uint16_t *bpids); -int __roc_api roc_nix_bpids_free(struct roc_nix *roc_nix, uint8_t bp_cnt, - uint16_t *bpids); -int __roc_api roc_nix_rx_chan_cfg_get(struct roc_nix *roc_nix, uint16_t chan, - bool is_cpt, uint64_t *cfg); -int __roc_api roc_nix_rx_chan_cfg_set(struct roc_nix *roc_nix, uint16_t chan, - bool is_cpt, uint64_t val); -int __roc_api roc_nix_chan_bpid_set(struct roc_nix *roc_nix, uint16_t chan, - uint64_t bpid, int ena, bool cpt_chan); +void roc_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t ena, + uint8_t force, uint8_t tc, uint64_t drop_percent); +int roc_nix_bpids_alloc(struct roc_nix *roc_nix, uint8_t type, + uint8_t bp_cnt, uint16_t *bpids); +int roc_nix_bpids_free(struct roc_nix *roc_nix, uint8_t bp_cnt, + uint16_t *bpids); +int roc_nix_rx_chan_cfg_get(struct roc_nix *roc_nix, uint16_t chan, + bool is_cpt, uint64_t *cfg); +int roc_nix_rx_chan_cfg_set(struct roc_nix *roc_nix, uint16_t chan, + bool is_cpt, uint64_t val); +int roc_nix_chan_bpid_set(struct roc_nix *roc_nix, uint16_t chan, + uint64_t bpid, int ena, bool cpt_chan); /* NPC */ int __roc_api roc_nix_npc_promisc_ena_dis(struct roc_nix *roc_nix, int enable); @@ -1052,11 +1052,11 @@ int __roc_api roc_nix_npc_rx_ena_dis(struct roc_nix *roc_nix, bool enable); int __roc_api roc_nix_npc_mcast_config(struct roc_nix *roc_nix, bool mcast_enable, bool prom_enable); -int __roc_api roc_nix_af_rx_flow_vec_ctrl_set(struct roc_nix *roc_nix); +int roc_nix_af_rx_flow_vec_ctrl_set(struct roc_nix *roc_nix); /* RSS */ -void __roc_api roc_nix_rss_key_default_fill(struct roc_nix *roc_nix, - uint8_t key[ROC_NIX_RSS_KEY_LEN]); +void roc_nix_rss_key_default_fill(struct roc_nix *roc_nix, + uint8_t key[ROC_NIX_RSS_KEY_LEN]); void __roc_api roc_nix_rss_key_set(struct roc_nix *roc_nix, const uint8_t key[ROC_NIX_RSS_KEY_LEN]); void __roc_api roc_nix_rss_key_get(struct roc_nix *roc_nix, @@ -1080,7 +1080,7 @@ int __roc_api roc_nix_stats_queue_get(struct roc_nix *roc_nix, uint16_t qid, struct roc_nix_stats_queue *qstats); int __roc_api roc_nix_stats_queue_reset(struct roc_nix *roc_nix, uint16_t qid, bool is_rx); -int __roc_api roc_nix_num_xstats_get(struct roc_nix *roc_nix); +int roc_nix_num_xstats_get(struct roc_nix *roc_nix); int __roc_api roc_nix_xstats_get(struct roc_nix *roc_nix, struct roc_nix_xstat *xstats, unsigned int n); int __roc_api roc_nix_xstats_names_get(struct roc_nix *roc_nix, @@ -1094,9 +1094,9 @@ int __roc_api roc_nix_rq_modify(struct roc_nix *roc_nix, struct roc_nix_rq *rq, bool ena); int __roc_api roc_nix_rq_cman_config(struct roc_nix *roc_nix, struct roc_nix_rq *rq); int __roc_api roc_nix_rq_ena_dis(struct roc_nix_rq *rq, bool enable); -int __roc_api roc_nix_rq_multi_ena_dis(struct roc_nix *roc_nix, struct roc_nix_rq *rqs, - int nb_rx_queues, bool enable); -int __roc_api roc_nix_rq_is_sso_enable(struct roc_nix *roc_nix, uint32_t qid); +int roc_nix_rq_multi_ena_dis(struct roc_nix *roc_nix, struct roc_nix_rq *rqs, + int nb_rx_queues, bool enable); +int roc_nix_rq_is_sso_enable(struct roc_nix *roc_nix, uint32_t qid); int __roc_api roc_nix_rq_fini(struct roc_nix_rq *rq); int __roc_api roc_nix_cq_init(struct roc_nix *roc_nix, struct roc_nix_cq *cq); int __roc_api roc_nix_cq_fini(struct roc_nix_cq *cq); @@ -1107,8 +1107,8 @@ int __roc_api roc_nix_sq_fini(struct roc_nix_sq *sq); int __roc_api roc_nix_sq_ena_dis(struct roc_nix_sq *sq, bool enable); void __roc_api roc_nix_sq_head_tail_get(struct roc_nix *roc_nix, uint16_t qid, uint32_t *head, uint32_t *tail); -int __roc_api roc_nix_sq_cnt_update(struct roc_nix_sq *sq, bool enable); -int __roc_api roc_nix_sq_resize(struct roc_nix_sq *sq, uint32_t nb_desc); +int roc_nix_sq_cnt_update(struct roc_nix_sq *sq, bool enable); +int roc_nix_sq_resize(struct roc_nix_sq *sq, uint32_t nb_desc); /* PTP */ int __roc_api roc_nix_ptp_rx_ena_dis(struct roc_nix *roc_nix, int enable); @@ -1119,44 +1119,44 @@ int __roc_api roc_nix_ptp_sync_time_adjust(struct roc_nix *roc_nix, int64_t delta); int __roc_api roc_nix_ptp_info_cb_register(struct roc_nix *roc_nix, ptp_info_update_t ptp_update); -void __roc_api roc_nix_ptp_info_cb_unregister(struct roc_nix *roc_nix); +void roc_nix_ptp_info_cb_unregister(struct roc_nix *roc_nix); bool __roc_api roc_nix_ptp_is_enable(struct roc_nix *roc_nix); /* VLAN */ -int __roc_api +int roc_nix_vlan_mcam_entry_read(struct roc_nix *roc_nix, uint32_t index, void **rsp); -int __roc_api roc_nix_vlan_mcam_entry_write(struct roc_nix *roc_nix, uint32_t index, void *entry, - uint8_t intf, uint8_t enable); -int __roc_api roc_nix_vlan_mcam_entry_alloc_and_write(struct roc_nix *roc_nix, void *entry, - uint8_t intf, uint8_t priority, - uint8_t ref_entry); -int __roc_api roc_nix_vlan_mcam_entry_free(struct roc_nix *roc_nix, - uint32_t index); -int __roc_api roc_nix_vlan_mcam_entry_ena_dis(struct roc_nix *roc_nix, - uint32_t index, const int enable); -int __roc_api roc_nix_vlan_strip_vtag_ena_dis(struct roc_nix *roc_nix, - bool enable); -int __roc_api roc_nix_vlan_insert_ena_dis(struct roc_nix *roc_nix, - struct roc_nix_vlan_config *vlan_cfg, - uint64_t *mcam_index, bool enable); -int __roc_api roc_nix_vlan_tpid_set(struct roc_nix *roc_nix, uint32_t type, - uint16_t tpid); +int roc_nix_vlan_mcam_entry_write(struct roc_nix *roc_nix, uint32_t index, void *entry, + uint8_t intf, uint8_t enable); +int roc_nix_vlan_mcam_entry_alloc_and_write(struct roc_nix *roc_nix, void *entry, + uint8_t intf, uint8_t priority, + uint8_t ref_entry); +int roc_nix_vlan_mcam_entry_free(struct roc_nix *roc_nix, + uint32_t index); +int roc_nix_vlan_mcam_entry_ena_dis(struct roc_nix *roc_nix, + uint32_t index, const int enable); +int roc_nix_vlan_strip_vtag_ena_dis(struct roc_nix *roc_nix, + bool enable); +int roc_nix_vlan_insert_ena_dis(struct roc_nix *roc_nix, + struct roc_nix_vlan_config *vlan_cfg, + uint64_t *mcam_index, bool enable); +int roc_nix_vlan_tpid_set(struct roc_nix *roc_nix, uint32_t type, + uint16_t tpid); /* MCAST*/ -int __roc_api roc_nix_mcast_mcam_entry_alloc(struct roc_nix *roc_nix, - uint16_t nb_entries, - uint8_t priority, - uint16_t index[]); -int __roc_api roc_nix_mcast_mcam_entry_free(struct roc_nix *roc_nix, - uint32_t index); -int __roc_api roc_nix_mcast_mcam_entry_write(struct roc_nix *roc_nix, void *entry, uint32_t index, - uint8_t intf, uint64_t action); -int __roc_api roc_nix_mcast_mcam_entry_ena_dis(struct roc_nix *roc_nix, uint32_t index, - bool enable); -int __roc_api roc_nix_mcast_list_setup(struct mbox *mbox, uint8_t intf, int nb_entries, - uint16_t *pf_funcs, uint16_t *channels, uint32_t *rqs, - uint32_t *grp_index, uint32_t *start_index); -int __roc_api roc_nix_mcast_list_free(struct mbox *mbox, uint32_t mcast_grp_index); +int roc_nix_mcast_mcam_entry_alloc(struct roc_nix *roc_nix, + uint16_t nb_entries, + uint8_t priority, + uint16_t index[]); +int roc_nix_mcast_mcam_entry_free(struct roc_nix *roc_nix, + uint32_t index); +int roc_nix_mcast_mcam_entry_write(struct roc_nix *roc_nix, void *entry, uint32_t index, + uint8_t intf, uint64_t action); +int roc_nix_mcast_mcam_entry_ena_dis(struct roc_nix *roc_nix, uint32_t index, + bool enable); +int roc_nix_mcast_list_setup(struct mbox *mbox, uint8_t intf, int nb_entries, + uint16_t *pf_funcs, uint16_t *channels, uint32_t *rqs, + uint32_t *grp_index, uint32_t *start_index); +int roc_nix_mcast_list_free(struct mbox *mbox, uint32_t mcast_grp_index); int __roc_api roc_nix_max_rep_count(struct roc_nix *roc_nix); #endif /* _ROC_NIX_H_ */ diff --git a/drivers/common/cnxk/roc_nix_inl.c b/drivers/common/cnxk/roc_nix_inl.c index 4c0ddb66ed..0eea0536aa 100644 --- a/drivers/common/cnxk/roc_nix_inl.c +++ b/drivers/common/cnxk/roc_nix_inl.c @@ -2434,7 +2434,7 @@ roc_nix_inl_dev_rq(struct roc_nix *roc_nix) return NULL; } -uint16_t __roc_api +uint16_t roc_nix_inl_outb_sso_pffunc_get(struct roc_nix *roc_nix) { struct nix *nix = roc_nix_to_nix_priv(roc_nix); diff --git a/drivers/common/cnxk/roc_nix_inl.h b/drivers/common/cnxk/roc_nix_inl.h index 06ccb304a1..30f4196581 100644 --- a/drivers/common/cnxk/roc_nix_inl.h +++ b/drivers/common/cnxk/roc_nix_inl.h @@ -146,14 +146,14 @@ struct roc_nix_cpt_lf_stats { int __roc_api roc_nix_inl_dev_init(struct roc_nix_inl_dev *roc_inl_dev); int __roc_api roc_nix_inl_dev_fini(struct roc_nix_inl_dev *roc_inl_dev); void __roc_api roc_nix_inl_dev_dump(struct roc_nix_inl_dev *roc_inl_dev, FILE *file); -bool __roc_api roc_nix_inl_dev_is_probed(void); +bool roc_nix_inl_dev_is_probed(void); void __roc_api roc_nix_inl_dev_lock(void); void __roc_api roc_nix_inl_dev_unlock(void); int __roc_api roc_nix_inl_dev_xaq_realloc(uint64_t aura_handle); -int __roc_api roc_nix_inl_dev_stats_get(struct roc_nix_stats *stats); -int __roc_api roc_nix_inl_dev_stats_reset(void); -int __roc_api roc_nix_inl_dev_cpt_setup(bool use_inl_dev_sso); -int __roc_api roc_nix_inl_dev_cpt_release(void); +int roc_nix_inl_dev_stats_get(struct roc_nix_stats *stats); +int roc_nix_inl_dev_stats_reset(void); +int roc_nix_inl_dev_cpt_setup(bool use_inl_dev_sso); +int roc_nix_inl_dev_cpt_release(void); bool __roc_api roc_nix_inl_dev_is_multi_channel(void); /* NIX Inline Inbound API */ @@ -177,12 +177,12 @@ bool __roc_api roc_nix_inl_inb_rx_inject_enable(struct roc_nix *roc_nix, bool in uint32_t __roc_api roc_nix_inl_inb_spi_range(struct roc_nix *roc_nix, bool inl_dev_sa, uint32_t *min, uint32_t *max); -uint32_t __roc_api roc_nix_inl_inb_sa_sz(struct roc_nix *roc_nix, - bool inl_dev_sa); +uint32_t roc_nix_inl_inb_sa_sz(struct roc_nix *roc_nix, + bool inl_dev_sa); uintptr_t __roc_api roc_nix_inl_inb_sa_get(struct roc_nix *roc_nix, bool inl_dev_sa, uint32_t spi); void __roc_api roc_nix_inb_mode_set(struct roc_nix *roc_nix, bool use_inl_dev); -void __roc_api roc_nix_inl_inb_set(struct roc_nix *roc_nix, bool ena); +void roc_nix_inl_inb_set(struct roc_nix *roc_nix, bool ena); int __roc_api roc_nix_inl_dev_rq_get(struct roc_nix_rq *rq, bool ena); int __roc_api roc_nix_inl_dev_rq_put(struct roc_nix_rq *rq); bool __roc_api roc_nix_inb_is_with_inl_dev(struct roc_nix *roc_nix); @@ -190,23 +190,23 @@ struct roc_nix_rq *__roc_api roc_nix_inl_dev_rq(struct roc_nix *roc_nix); int __roc_api roc_nix_inl_inb_tag_update(struct roc_nix *roc_nix, uint32_t tag_const, uint8_t tt); int __roc_api roc_nix_reassembly_configure(struct roc_cpt_rxc_time_cfg *req_cfg, uint32_t max_wait_time); -int __roc_api roc_nix_inl_ts_pkind_set(struct roc_nix *roc_nix, bool ts_ena, bool inb_inl_dev, - uint8_t profile_id); +int roc_nix_inl_ts_pkind_set(struct roc_nix *roc_nix, bool ts_ena, bool inb_inl_dev, + uint8_t profile_id); int __roc_api roc_nix_inl_rq_ena_dis(struct roc_nix *roc_nix, bool ena); -int __roc_api roc_nix_inl_meta_aura_check(struct roc_nix *roc_nix, struct roc_nix_rq *rq); +int roc_nix_inl_meta_aura_check(struct roc_nix *roc_nix, struct roc_nix_rq *rq); /* NIX Inline Outbound API */ int __roc_api roc_nix_inl_outb_init(struct roc_nix *roc_nix); int __roc_api roc_nix_inl_outb_fini(struct roc_nix *roc_nix); -bool __roc_api roc_nix_inl_outb_is_enabled(struct roc_nix *roc_nix); +bool roc_nix_inl_outb_is_enabled(struct roc_nix *roc_nix); uintptr_t __roc_api roc_nix_inl_outb_sa_base_get(struct roc_nix *roc_nix); struct roc_cpt_lf *__roc_api roc_nix_inl_outb_lf_base_get(struct roc_nix *roc_nix); struct roc_cpt_lf *__roc_api roc_nix_inl_inb_inj_lf_get(struct roc_nix *roc_nix); -uint16_t __roc_api roc_nix_inl_outb_sso_pffunc_get(struct roc_nix *roc_nix); +uint16_t roc_nix_inl_outb_sso_pffunc_get(struct roc_nix *roc_nix); int __roc_api roc_nix_inl_cb_register(roc_nix_inl_sso_work_cb_t cb, void *args); -int __roc_api roc_nix_inl_cb_unregister(roc_nix_inl_sso_work_cb_t cb, - void *args); +int roc_nix_inl_cb_unregister(roc_nix_inl_sso_work_cb_t cb, + void *args); int __roc_api roc_nix_inl_outb_soft_exp_poll_switch(struct roc_nix *roc_nix, bool poll); uint64_t *__roc_api roc_nix_inl_outb_ring_base_get(struct roc_nix *roc_nix); diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk/roc_npa.h index a31f908955..576460f1d7 100644 --- a/drivers/common/cnxk/roc_npa.h +++ b/drivers/common/cnxk/roc_npa.h @@ -195,13 +195,13 @@ static inline void roc_npa_pool_op_dpc_reset(uint64_t aura_handle, uint8_t counter_id) { plt_write64(0, roc_npa_aura_handle_to_base(aura_handle) + - NPA_LF_DPCX_ALLOC_CNT(counter_id)); + NPA_LF_DPCX_ALLOC_CNT(counter_id)); plt_write64(0, roc_npa_aura_handle_to_base(aura_handle) + - NPA_LF_DPCX_FREE_CNT(counter_id)); + NPA_LF_DPCX_FREE_CNT(counter_id)); plt_write64(0, roc_npa_aura_handle_to_base(aura_handle) + - NPA_LF_DPCX_OUTST_BUF_CNT(counter_id)); + NPA_LF_DPCX_OUTST_BUF_CNT(counter_id)); plt_write64(0, roc_npa_aura_handle_to_base(aura_handle) + - NPA_LF_DPCX_CNT_HI_WM(counter_id)); + NPA_LF_DPCX_CNT_HI_WM(counter_id)); } static inline uint64_t @@ -876,14 +876,14 @@ int __roc_api roc_npa_aura_create(uint64_t *aura_handle, uint32_t block_count, struct npa_aura_s *aura, int pool_id, uint32_t flags); int __roc_api roc_npa_aura_destroy(uint64_t aura_handle); -uint64_t __roc_api roc_npa_zero_aura_handle(void); +uint64_t roc_npa_zero_aura_handle(void); int __roc_api roc_npa_buf_type_update(uint64_t aura_handle, enum roc_npa_buf_type type, int cnt); -uint64_t __roc_api roc_npa_buf_type_mask(uint64_t aura_handle); -uint64_t __roc_api roc_npa_buf_type_limit_get(uint64_t type_mask); -int __roc_api roc_npa_aura_bp_configure(uint64_t aura_id, uint16_t bpid, uint8_t bp_intf, - uint8_t bp_thresh, bool enable); -int __roc_api roc_npa_pool_bp_configure(uint64_t pool_id, uint16_t bpid, uint8_t bp_thresh, - uint8_t bp_class, bool enable); +uint64_t roc_npa_buf_type_mask(uint64_t aura_handle); +uint64_t roc_npa_buf_type_limit_get(uint64_t type_mask); +int roc_npa_aura_bp_configure(uint64_t aura_id, uint16_t bpid, uint8_t bp_intf, + uint8_t bp_thresh, bool enable); +int roc_npa_pool_bp_configure(uint64_t pool_id, uint16_t bpid, uint8_t bp_thresh, + uint8_t bp_class, bool enable); /* Init callbacks */ typedef int (*roc_npa_lf_init_cb_t)(struct plt_pci_device *pci_dev); @@ -893,20 +893,20 @@ int __roc_api roc_npa_lf_init_cb_register(roc_npa_lf_init_cb_t cb); uint16_t __roc_api roc_npa_pf_func_get(void); /* Debug */ -int __roc_api roc_npa_ctx_dump(void); -int __roc_api roc_npa_dump(void); +int roc_npa_ctx_dump(void); +int roc_npa_dump(void); /* Reset operation performance counter. */ -int __roc_api roc_npa_pool_op_pc_reset(uint64_t aura_handle); +int roc_npa_pool_op_pc_reset(uint64_t aura_handle); -int __roc_api roc_npa_aura_drop_set(uint64_t aura_handle, uint64_t limit, - bool ena); +int roc_npa_aura_drop_set(uint64_t aura_handle, uint64_t limit, + bool ena); -void __roc_api roc_npa_dev_lock(void); -void __roc_api roc_npa_dev_unlock(void); -int __roc_api roc_npa_dpc_alloc(uint8_t *counter_id, uint64_t conf); -int __roc_api roc_npa_dpc_free(uint8_t counter_id); -int __roc_api roc_npa_pool_dpc_enable(uint64_t aura_handle, uint8_t counter_id, uint32_t flags); -int __roc_api roc_npa_pool_dpc_disable(uint64_t aura_handle, uint32_t flags); +void roc_npa_dev_lock(void); +void roc_npa_dev_unlock(void); +int roc_npa_dpc_alloc(uint8_t *counter_id, uint64_t conf); +int roc_npa_dpc_free(uint8_t counter_id); +int roc_npa_pool_dpc_enable(uint64_t aura_handle, uint8_t counter_id, uint32_t flags); +int roc_npa_pool_dpc_disable(uint64_t aura_handle, uint32_t flags); #endif /* _ROC_NPA_H_ */ diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h index 21fa493c74..60aa9cdbed 100644 --- a/drivers/common/cnxk/roc_npc.h +++ b/drivers/common/cnxk/roc_npc.h @@ -453,7 +453,7 @@ struct roc_npc { int __roc_api roc_npc_init(struct roc_npc *roc_npc); int __roc_api roc_npc_fini(struct roc_npc *roc_npc); const char *__roc_api roc_npc_profile_name_get(struct roc_npc *roc_npc); -int __roc_api roc_npc_kex_capa_get(struct roc_nix *roc_nix, uint64_t *kex_capability); +int roc_npc_kex_capa_get(struct roc_nix *roc_nix, uint64_t *kex_capability); struct roc_npc_flow *__roc_api roc_npc_flow_create(struct roc_npc *roc_npc, const struct roc_npc_attr *attr, @@ -467,22 +467,22 @@ int __roc_api roc_npc_mcam_free_entry(struct roc_npc *roc_npc, uint32_t entry); int __roc_api roc_npc_mcam_enable_all_entries(struct roc_npc *roc_npc, bool enable); int __roc_api roc_npc_mcam_alloc_entry(struct roc_npc *roc_npc, struct roc_npc_flow *mcam, struct roc_npc_flow *ref_mcam, int prio, int *resp_count); -int __roc_api roc_npc_mcam_alloc_entries(struct roc_npc *roc_npc, int ref_entry, int *alloc_entry, - int req_count, int priority, int *resp_count, - bool is_conti); -int __roc_api roc_npc_mcam_ena_dis_entry(struct roc_npc *roc_npc, struct roc_npc_flow *mcam, - bool enable); +int roc_npc_mcam_alloc_entries(struct roc_npc *roc_npc, int ref_entry, int *alloc_entry, + int req_count, int priority, int *resp_count, + bool is_conti); +int roc_npc_mcam_ena_dis_entry(struct roc_npc *roc_npc, struct roc_npc_flow *mcam, + bool enable); int __roc_api roc_npc_mcam_write_entry(struct roc_npc *roc_npc, struct roc_npc_flow *mcam); -void __roc_api roc_npc_mcam_write_rx_finalize(struct roc_npc *roc_npc, struct roc_npc_flow *flow); +void roc_npc_mcam_write_rx_finalize(struct roc_npc *roc_npc, struct roc_npc_flow *flow); -void __roc_api roc_npc_defrag_mcam_banks(struct roc_npc *roc_npc); +void roc_npc_defrag_mcam_banks(struct roc_npc *roc_npc); uint8_t __roc_api roc_npc_get_key_type(struct roc_npc *roc_npc, struct roc_npc_flow *flow); -uint8_t __roc_api roc_npc_kex_key_type_config_get(struct roc_npc *roc_npc); +uint8_t roc_npc_kex_key_type_config_get(struct roc_npc *roc_npc); int __roc_api roc_npc_flow_parse(struct roc_npc *roc_npc, const struct roc_npc_attr *attr, const struct roc_npc_item_info pattern[], const struct roc_npc_action actions[], struct roc_npc_flow *flow); -int __roc_api roc_npc_get_low_priority_mcam(struct roc_npc *roc_npc); +int roc_npc_get_low_priority_mcam(struct roc_npc *roc_npc); int __roc_api roc_npc_mcam_free_counter(struct roc_npc *roc_npc, uint16_t ctr_id); int __roc_api roc_npc_mcam_read_counter(struct roc_npc *roc_npc, uint32_t ctr_id, uint64_t *count); int __roc_api roc_npc_mcam_clear_counter(struct roc_npc *roc_npc, uint32_t ctr_id); @@ -501,13 +501,13 @@ int __roc_api roc_npc_vtag_actions_sub_return(struct roc_npc *roc_npc, uint32_t int __roc_api roc_npc_mcam_merge_base_steering_rule(struct roc_npc *roc_npc, struct roc_npc_flow *flow); int __roc_api roc_npc_mcam_default_rule_action_get(struct roc_npc *roc_npc, uint64_t *action); -int __roc_api roc_npc_validate_portid_action(struct roc_npc *roc_npc_src, - struct roc_npc *roc_npc_dst); -int __roc_api roc_npc_mcam_init(struct roc_npc *roc_npc, struct roc_npc_flow *flow, int mcam_id); +int roc_npc_validate_portid_action(struct roc_npc *roc_npc_src, + struct roc_npc *roc_npc_dst); +int roc_npc_mcam_init(struct roc_npc *roc_npc, struct roc_npc_flow *flow, int mcam_id); int __roc_api roc_npc_mcam_move(struct roc_npc *roc_npc, uint16_t old_ent, uint16_t new_ent); void *__roc_api roc_npc_aged_flow_ctx_get(struct roc_npc *roc_npc, uint32_t mcam_id); -void __roc_api roc_npc_sdp_channel_get(struct roc_npc *roc_npc, uint16_t *chan_base, - uint16_t *chan_mask); +void roc_npc_sdp_channel_get(struct roc_npc *roc_npc, uint16_t *chan_base, + uint16_t *chan_mask); int __roc_api roc_npc_mcam_get_stats(struct roc_npc *roc_npc, struct roc_npc_flow *flow, uint64_t *count); int __roc_api roc_npc_skip_size_pkind_get(struct roc_npc *roc_npc); diff --git a/drivers/common/cnxk/roc_platform.c b/drivers/common/cnxk/roc_platform.c index 0a1b96092b..46091f200f 100644 --- a/drivers/common/cnxk/roc_platform.c +++ b/drivers/common/cnxk/roc_platform.c @@ -372,7 +372,6 @@ roc_plt_control_lmt_id_get(void) return ROC_NUM_LMT_LINES - 1; } -RTE_EXPORT_INTERNAL_SYMBOL(roc_plt_lmt_validate) uint16_t roc_plt_lmt_validate(void) { @@ -429,7 +428,6 @@ roc_plt_init(void) RTE_EXPORT_INTERNAL_SYMBOL(cnxk_logtype_base) RTE_LOG_REGISTER_SUFFIX(cnxk_logtype_base, base, INFO); -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_logtype_mbox) RTE_LOG_REGISTER_SUFFIX(cnxk_logtype_mbox, mbox, NOTICE); RTE_EXPORT_INTERNAL_SYMBOL(cnxk_logtype_cpt) RTE_LOG_REGISTER_SUFFIX(cnxk_logtype_cpt, crypto, NOTICE); @@ -445,7 +443,6 @@ RTE_EXPORT_INTERNAL_SYMBOL(cnxk_logtype_sso) RTE_LOG_REGISTER_SUFFIX(cnxk_logtype_sso, event, NOTICE); RTE_EXPORT_INTERNAL_SYMBOL(cnxk_logtype_tim) RTE_LOG_REGISTER_SUFFIX(cnxk_logtype_tim, timer, NOTICE); -RTE_EXPORT_INTERNAL_SYMBOL(cnxk_logtype_tm) RTE_LOG_REGISTER_SUFFIX(cnxk_logtype_tm, tm, NOTICE); RTE_EXPORT_INTERNAL_SYMBOL(cnxk_logtype_dpi) RTE_LOG_REGISTER_SUFFIX(cnxk_logtype_dpi, dpi, NOTICE); diff --git a/drivers/common/cnxk/roc_platform.h b/drivers/common/cnxk/roc_platform.h index 70937e8b3a..8a6ee621be 100644 --- a/drivers/common/cnxk/roc_platform.h +++ b/drivers/common/cnxk/roc_platform.h @@ -393,7 +393,6 @@ int roc_plt_init(void); __rte_internal uint16_t roc_plt_control_lmt_id_get(void); -__rte_internal uint16_t roc_plt_lmt_validate(void); /* Init callbacks */ diff --git a/drivers/common/cnxk/roc_platform_base_symbols.c b/drivers/common/cnxk/roc_platform_base_symbols.c index be5038fb0e..7e9fe17a85 100644 --- a/drivers/common/cnxk/roc_platform_base_symbols.c +++ b/drivers/common/cnxk/roc_platform_base_symbols.c @@ -9,7 +9,6 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_ae_ec_grp_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_ae_ec_grp_put) RTE_EXPORT_INTERNAL_SYMBOL(roc_ae_fpm_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_ae_fpm_put) -RTE_EXPORT_INTERNAL_SYMBOL(roc_aes_xcbc_key_derive) RTE_EXPORT_INTERNAL_SYMBOL(roc_aes_hash_key_derive) RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_dev_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_dev_fini) @@ -34,13 +33,9 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_cgx_cpri_mode_misc) RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_intr_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_intr_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_intr_handler) -RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_intr_available) RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_intr_max_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_intr_clear) RTE_EXPORT_INTERNAL_SYMBOL(roc_bphy_intr_register) -RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_inline_ipsec_cfg) -RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_inline_ipsec_inb_cfg_read) -RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_inline_ipsec_inb_cfg) RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_rxc_time_cfg) RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_dev_configure) RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_lf_init) @@ -63,20 +58,15 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_int_misc_cb_unregister) RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_parse_hdr_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_afs_print) RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_lfs_print) -RTE_EXPORT_INTERNAL_SYMBOL(roc_cpt_cq_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_wait_queue_idle) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_disable) -RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_configure) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_configure_v2) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_dev_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_dev_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_lf_ring_init) -RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_lf_ring_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_lf_pffunc_cfg) -RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_lf_ring_chan_cfg) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_lf_chan_tbl_select) -RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_lf_chan_tbl_ena_dis) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_lf_chan_tbl_update) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_access_pair_group_create) RTE_EXPORT_INTERNAL_SYMBOL(roc_dpi_access_pair_group_destroy) @@ -97,53 +87,26 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_eswitch_nix_process_repte_notify_cb_register) RTE_EXPORT_INTERNAL_SYMBOL(roc_eswitch_nix_process_repte_notify_cb_unregister) RTE_EXPORT_INTERNAL_SYMBOL(roc_eswitch_nix_repte_stats) RTE_EXPORT_INTERNAL_SYMBOL(roc_eswitch_is_repte_pfs_vf) -RTE_EXPORT_INTERNAL_SYMBOL(roc_hash_md5_gen) -RTE_EXPORT_INTERNAL_SYMBOL(roc_hash_sha1_gen) -RTE_EXPORT_INTERNAL_SYMBOL(roc_hash_sha256_gen) -RTE_EXPORT_INTERNAL_SYMBOL(roc_hash_sha512_gen) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_npa_maxpools_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_npa_maxpools_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_npa_halo_ena_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_npa_halo_ena_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_lmt_base_addr_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_num_lmtlines_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_cpt_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_rvu_lf_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_rvu_lf_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_rvu_lf_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_mcs_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_mcs_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_mcs_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_af_rx_flow_vec_ctrl_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_ring_base_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_nix_list_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_cpt_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_npa_nix_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_nix_inl_meta_aura_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_nix_rx_inject_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_nix_rx_inject_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_nix_rx_chan_base_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_nix_rx_chan_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_idev_nix_inl_dev_pffunc_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_ot_ipsec_inb_sa_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_ot_ipsec_outb_sa_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_ow_ipsec_inb_sa_init) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ow_reass_inb_sa_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_ow_ipsec_outb_sa_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_is_supported) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_hw_info_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_active_lmac_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_lmac_mode_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_pn_threshold_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_ctrl_pkt_rule_alloc) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_ctrl_pkt_rule_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_ctrl_pkt_rule_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_port_cfg_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_port_cfg_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_custom_tag_cfg_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_intr_configure) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_port_recovery) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_port_reset) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_event_cb_register) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_event_cb_unregister) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_dev_init) @@ -151,21 +114,12 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_dev_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_rsrc_alloc) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_rsrc_free) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_sa_policy_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_sa_policy_read) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_pn_table_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_pn_table_read) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_rx_sc_cam_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_rx_sc_cam_read) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_rx_sc_cam_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_secy_policy_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_secy_policy_read) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_rx_sc_sa_map_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_rx_sc_sa_map_read) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_tx_sc_sa_map_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_tx_sc_sa_map_read) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_flowid_entry_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_flowid_entry_read) -RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_flowid_entry_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_sa_port_map_update) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_flowid_stats_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_mcs_secy_stats_get) @@ -179,32 +133,20 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_reg_write32) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_reg_save) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_addr_ap2mlip) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_addr_mlip2ap) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_addr_pa_to_offset) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_addr_offset_to_pa) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_scratch_write_job) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_scratch_is_valid_bit_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_scratch_is_done_bit_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_scratch_enqueue) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_scratch_dequeue) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_scratch_queue_reset) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_jcmdq_enqueue_lf) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_jcmdq_enqueue_sl) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_clk_force_on) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_clk_force_off) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_dma_stall_on) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_dma_stall_off) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_mlip_is_enabled) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_mlip_reset) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_dev_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_dev_fini) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_blk_init) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_blk_fini) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ml_sso_pf_func_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_model) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_is_lbk) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_is_esw) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_get_base_chan) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_get_rx_chan_cnt) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_get_vwqe_interval) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_is_sdp) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_is_pf) @@ -212,8 +154,6 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_get_pf) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_get_vf) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_is_vf_or_sdp) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_get_pf_func) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lf_inl_ipsec_cfg) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_cpt_ctx_cache_sync) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_max_pkt_len) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lf_alloc) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lf_free) @@ -226,16 +166,12 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_timeunit_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_count_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_alloc) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_free_all) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_config) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_ena_dis) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_pre_color_tbl_setup) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_connect) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_stats_read) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_stats_reset) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_lf_stats_read) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpf_lf_stats_reset) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lf_get_reg_count) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lf_reg_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_queues_ctx_dump) @@ -244,26 +180,16 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rq_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_cq_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_dump) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_sdp_prepare_tree) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_reass_profile_id_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_cpt_lfs_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_desc_dump) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_fc_config_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_fc_config_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_fc_mode_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_fc_mode_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_fc_npa_bp_cfg) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_pfc_mode_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_pfc_mode_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_chan_count_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpids_alloc) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_bpids_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rx_chan_cfg_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rx_chan_cfg_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_chan_bpid_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_meta_aura_check) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_lf_base_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_inj_lf_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_sa_base_get) @@ -273,33 +199,26 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_custom_profile_setup) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_custom_profile_release) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_rx_inject_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_spi_range) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_sa_sz) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_sa_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_reassembly_configure) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_fini) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_is_probed) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_is_multi_channel) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_is_enabled) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_is_enabled) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_rq_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_rq_put) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_rq_ena_dis) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inb_mode_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_soft_exp_poll_switch) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inb_is_with_inl_dev) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_rq) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_outb_sso_pffunc_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_cb_register) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_cb_unregister) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_inb_tag_update) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_sa_sync) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_ctx_write) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_cpt_lf_stats_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_ts_pkind_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_lock) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_unlock) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_meta_pool_cb_register) @@ -308,12 +227,8 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_custom_meta_pool_cb_register) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_xaq_realloc) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_qptr_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_is_cq_ena) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_stats_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_stats_reset) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_fini) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_cpt_setup) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_inl_dev_cpt_release) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rx_queue_intr_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rx_queue_intr_disable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_err_intr_ena_dis) @@ -322,7 +237,6 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_register_queue_irqs) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_unregister_queue_irqs) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_register_cq_irqs) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_unregister_cq_irqs) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_rxtx_start_stop) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_link_event_start_stop) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_loopback_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_addr_set) @@ -335,30 +249,19 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_promisc_mode_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_link_info_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_link_state_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_link_info_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_mtu_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_max_rx_len_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_stats_reset) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_fwdata_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_link_cb_register) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_link_cb_unregister) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_link_info_get_cb_register) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mac_link_info_get_cb_unregister) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mcast_mcam_entry_alloc) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mcast_mcam_entry_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mcast_mcam_entry_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mcast_mcam_entry_ena_dis) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mcast_list_setup) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_mcast_list_free) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_npc_promisc_ena_dis) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_npc_mac_addr_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_npc_mac_addr_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_npc_rx_ena_dis) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_npc_mcast_config) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lso_alt_flags_profile_setup) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lso_custom_fmt_setup) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lso_fmt_setup) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lso_fmt_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_lso_fmt_ipv4_frag_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_switch_hdr_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_eeprom_info_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rx_drop_re_set) @@ -367,34 +270,26 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_ptp_tx_ena_dis) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_ptp_clock_read) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_ptp_sync_time_adjust) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_ptp_info_cb_register) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_ptp_info_cb_unregister) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_ptp_is_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_ena_dis) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rq_ena_dis) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rq_is_sso_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rq_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rq_modify) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rq_multi_ena_dis) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rq_cman_config) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rq_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_cq_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_cq_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_init) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_resize) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_cq_head_tail_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_head_tail_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_q_err_cb_register) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_q_err_cb_unregister) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rss_key_default_fill) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rss_key_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rss_key_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rss_reta_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rss_reta_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rss_flowkey_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_rss_default_setup) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_num_xstats_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_sq_cnt_update) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_stats_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_stats_reset) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_stats_queue_get) @@ -407,20 +302,13 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_pfc_prepare_tree) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_mark_config) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_mark_format_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_sq_aura_fc) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_free_resources) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_shaper_profile_add) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_shaper_profile_update) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_shaper_profile_delete) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_add) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_pkt_mode_update) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_name_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_delete) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_smq_flush) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_hierarchy_disable) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_hierarchy_xmit_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_hierarchy_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_suspend_resume) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_prealloc_res) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_shaper_update) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_parent_update) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_init) @@ -428,15 +316,9 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_pfc_rlimit_sq) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_rlimit_sq) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_rsrc_count) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_rsrc_max) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_root_has_sp) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_egress_link_cfg_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_leaf_cnt) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_lvl) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_next) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_shaper_profile_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_shaper_profile_next) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_node_stats_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_is_user_hierarchy_enabled) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_tree_type_get) @@ -445,43 +327,20 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_lvl_is_leaf) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_shaper_default_red_algo) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_lvl_cnt_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_tm_lvl_have_link_access) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_vlan_mcam_entry_read) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_vlan_mcam_entry_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_vlan_mcam_entry_alloc_and_write) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_vlan_mcam_entry_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_vlan_mcam_entry_ena_dis) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_vlan_strip_vtag_ena_dis) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_vlan_insert_ena_dis) -RTE_EXPORT_INTERNAL_SYMBOL(roc_nix_vlan_tpid_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_lf_init_cb_register) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pf_func_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pool_op_range_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_aura_op_range_set) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_aura_op_range_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pool_op_pc_reset) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_aura_drop_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pool_bp_configure) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pool_create) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_aura_create) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_aura_limit_modify) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pool_destroy) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_aura_destroy) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pool_range_update_check) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_zero_aura_handle) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_aura_bp_configure) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_dev_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_dev_fini) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_dev_lock) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_dev_unlock) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_ctx_dump) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_buf_type_update) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_buf_type_mask) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_buf_type_limit_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_dpc_alloc) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_dpc_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pool_dpc_enable) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npa_pool_dpc_disable) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mark_actions_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mark_actions_sub_return) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_vtag_actions_get) @@ -497,31 +356,21 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_get_stats) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_clear_counter) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_free_entry) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_move) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_free_all_resources) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_alloc_entries) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_enable_all_entries) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_alloc_entry) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_ena_dis_entry) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_write_entry) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_write_rx_finalize) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_get_low_priority_mcam) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_profile_name_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_kex_capa_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_kex_key_type_config_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_fini) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_validate_portid_action) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_flow_parse) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_sdp_channel_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_skip_size_pkind_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_flow_create) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_flow_destroy) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_flow_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_mcam_merge_base_steering_rule) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_aged_flow_ctx_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_defrag_mcam_banks) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_get_key_type) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_flow_mcam_dump) RTE_EXPORT_INTERNAL_SYMBOL(roc_npc_flow_configure) @@ -544,15 +393,11 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_re_ml_zeta_put) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_queues_attach) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_queues_detach) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_msix_offsets_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_config_lf) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_af_reg_read) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_af_reg_write) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_rule_db_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_rule_db_len_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_rule_db_prog) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_qp_get_base) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_err_intr_unregister) -RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_err_intr_register) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_iq_enable) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_iq_disable) RTE_EXPORT_INTERNAL_SYMBOL(roc_ree_dev_init) @@ -561,7 +406,6 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_rvu_lf_dev_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_rvu_lf_dev_fini) RTE_EXPORT_INTERNAL_SYMBOL(roc_rvu_lf_pf_func_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_rvu_lf_msg_id_range_set) -RTE_EXPORT_INTERNAL_SYMBOL(roc_rvu_lf_msg_id_range_check) RTE_EXPORT_INTERNAL_SYMBOL(roc_rvu_lf_msg_process) RTE_EXPORT_INTERNAL_SYMBOL(roc_rvu_lf_irq_register) RTE_EXPORT_INTERNAL_SYMBOL(roc_rvu_lf_irq_unregister) @@ -574,22 +418,17 @@ RTE_EXPORT_INTERNAL_SYMBOL(roc_se_ctx_init) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hws_base_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_base_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_pf_func_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_ns_to_gw) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hws_link) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hws_unlink) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hws_stats_get) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hws_gwc_invalidate) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_agq_alloc) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_agq_free) -RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_agq_release) -RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_agq_from_tag) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_stats_get) -RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_hws_link_status) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_qos_config) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_init_xaq_aura) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_free_xaq_aura) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_alloc_xaq) -RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_release_xaq) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_set_priority) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_hwgrp_stash_config) RTE_EXPORT_INTERNAL_SYMBOL(roc_sso_rsrc_init) diff --git a/drivers/common/cnxk/roc_ree.h b/drivers/common/cnxk/roc_ree.h index bf994e7124..9e9bd983aa 100644 --- a/drivers/common/cnxk/roc_ree.h +++ b/drivers/common/cnxk/roc_ree.h @@ -111,12 +111,12 @@ int __roc_api roc_ree_dev_fini(struct roc_ree_vf *vf); int __roc_api roc_ree_queues_attach(struct roc_ree_vf *vf, uint8_t nb_queues); int __roc_api roc_ree_queues_detach(struct roc_ree_vf *vf); int __roc_api roc_ree_msix_offsets_get(struct roc_ree_vf *vf); -int __roc_api roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri, - uint32_t size); -int __roc_api roc_ree_af_reg_read(struct roc_ree_vf *vf, uint64_t reg, - uint64_t *val); -int __roc_api roc_ree_af_reg_write(struct roc_ree_vf *vf, uint64_t reg, - uint64_t val); +int roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri, + uint32_t size); +int roc_ree_af_reg_read(struct roc_ree_vf *vf, uint64_t reg, + uint64_t *val); +int roc_ree_af_reg_write(struct roc_ree_vf *vf, uint64_t reg, + uint64_t val); int __roc_api roc_ree_rule_db_get(struct roc_ree_vf *vf, char *rule_db, uint32_t rule_db_len, char *rule_dbi, uint32_t rule_dbi_len); @@ -128,7 +128,7 @@ int __roc_api roc_ree_rule_db_prog(struct roc_ree_vf *vf, const char *rule_db, uint32_t rule_dbi_len); uintptr_t __roc_api roc_ree_qp_get_base(struct roc_ree_vf *vf, uint16_t qp_id); void __roc_api roc_ree_err_intr_unregister(struct roc_ree_vf *vf); -int __roc_api roc_ree_err_intr_register(struct roc_ree_vf *vf); +int roc_ree_err_intr_register(struct roc_ree_vf *vf); int __roc_api roc_ree_iq_enable(struct roc_ree_vf *vf, const struct roc_ree_qp *qp, uint8_t pri, uint32_t size_div128); diff --git a/drivers/common/cnxk/roc_rvu_lf.h b/drivers/common/cnxk/roc_rvu_lf.h index 8c71876cbc..98ec6c4eb1 100644 --- a/drivers/common/cnxk/roc_rvu_lf.h +++ b/drivers/common/cnxk/roc_rvu_lf.h @@ -30,7 +30,7 @@ int __roc_api roc_rvu_lf_msg_process(struct roc_rvu_lf *roc_rvu_lf, int __roc_api roc_rvu_lf_msg_id_range_set(struct roc_rvu_lf *roc_rvu_lf, uint16_t from, uint16_t to); -bool __roc_api roc_rvu_lf_msg_id_range_check(struct roc_rvu_lf *roc_rvu_lf, uint16_t msg_id); +bool roc_rvu_lf_msg_id_range_check(struct roc_rvu_lf *roc_rvu_lf, uint16_t msg_id); typedef void (*roc_rvu_lf_intr_cb_fn)(void *cb_arg); typedef int (*roc_rvu_lf_msg_handler_cb_fn)(uint16_t vf, uint16_t msg_id, void *req, uint16_t req_len, diff --git a/drivers/common/cnxk/roc_sso.h b/drivers/common/cnxk/roc_sso.h index 9d8356abb1..43af938a8e 100644 --- a/drivers/common/cnxk/roc_sso.h +++ b/drivers/common/cnxk/roc_sso.h @@ -88,18 +88,18 @@ int __roc_api roc_sso_hwgrp_qos_config(struct roc_sso *roc_sso, uint16_t nb_qos); int __roc_api roc_sso_hwgrp_alloc_xaq(struct roc_sso *roc_sso, uint32_t npa_aura_id, uint16_t hwgrps); -int __roc_api roc_sso_hwgrp_release_xaq(struct roc_sso *roc_sso, - uint16_t hwgrps); +int roc_sso_hwgrp_release_xaq(struct roc_sso *roc_sso, + uint16_t hwgrps); int __roc_api roc_sso_hwgrp_set_priority(struct roc_sso *roc_sso, uint16_t hwgrp, uint8_t weight, uint8_t affinity, uint8_t priority); -uint64_t __roc_api roc_sso_ns_to_gw(uint64_t base, uint64_t ns); +uint64_t roc_sso_ns_to_gw(uint64_t base, uint64_t ns); int __roc_api roc_sso_hws_link(struct roc_sso *roc_sso, uint8_t hws, uint16_t hwgrp[], uint16_t nb_hwgrp, uint8_t set, bool use_mbox); int __roc_api roc_sso_hws_unlink(struct roc_sso *roc_sso, uint8_t hws, uint16_t hwgrp[], uint16_t nb_hwgrp, uint8_t set, bool use_mbox); -int __roc_api roc_sso_hwgrp_hws_link_status(struct roc_sso *roc_sso, - uint8_t hws, uint16_t hwgrp); +int roc_sso_hwgrp_hws_link_status(struct roc_sso *roc_sso, + uint8_t hws, uint16_t hwgrp); uintptr_t __roc_api roc_sso_hws_base_get(struct roc_sso *roc_sso, uint8_t hws); uintptr_t __roc_api roc_sso_hwgrp_base_get(struct roc_sso *roc_sso, uint16_t hwgrp); @@ -115,9 +115,9 @@ void __roc_api roc_sso_hws_gwc_invalidate(struct roc_sso *roc_sso, uint8_t *hws, int __roc_api roc_sso_hwgrp_agq_alloc(struct roc_sso *roc_sso, uint16_t hwgrp, struct roc_sso_agq_data *data, uint32_t *agq_id); void __roc_api roc_sso_hwgrp_agq_free(struct roc_sso *roc_sso, uint16_t hwgrp, uint32_t agq_id); -void __roc_api roc_sso_hwgrp_agq_release(struct roc_sso *roc_sso, uint16_t hwgrp); -uint32_t __roc_api roc_sso_hwgrp_agq_from_tag(struct roc_sso *roc_sso, uint16_t hwgrp, uint32_t tag, - uint8_t xqe_type); +void roc_sso_hwgrp_agq_release(struct roc_sso *roc_sso, uint16_t hwgrp); +uint32_t roc_sso_hwgrp_agq_from_tag(struct roc_sso *roc_sso, uint16_t hwgrp, uint32_t tag, + uint8_t xqe_type); /* Utility function */ uint16_t __roc_api roc_sso_pf_func_get(void); -- 2.53.0