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 3D6E8606A31C for ; Sun, 29 Nov 2026 20:55:26 +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=AD5qpt3z Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BEF914113C; Sun, 29 Nov 2026 21:51:20 +0100 (CET) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTPS id 087A0410FB for ; Sun, 29 Nov 2026 21:51:17 +0100 (CET) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-cdb2e0062bbso3624827a12.1 for ; Sun, 29 Nov 2026 12:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1795985475; x=1796590275; 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=zWwdWxuIwXPd/9x/gtthfwbRlIzAUamkFMcZbKqCi3A=; b=AD5qpt3zb0c4YS1i03XV6MefPHw64ien6Ah+vRDGma2aBCbUg4G399YmguEcavIxi7 mwhmYIzEuzNRoJKxKT5vqy47Tyttii+d5sslbPZlYBe9T+FCDSjmbfEmDgNihEYT9Iz+ 4px94wVptRVJ4s2B4ixyCO8gniwEolAPXZJV25W2VzGKD6SqRiMLb6ogNJiZEcBTmVgu ZZA0oYM1l/xPRn4LpRLkm+c9JMZurqLvq+LYNFKbFWnAZIdih/IE6VyCkK9MEnbvTuiF 0elXByv2hP9dqtzkOs4ywpVVRrhLS38aaX1Agti3x6fn/YB/vfzMkDQ0nv+Ifnfpqdhw 3EwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795985475; x=1796590275; 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=zWwdWxuIwXPd/9x/gtthfwbRlIzAUamkFMcZbKqCi3A=; b=eNUCQotL0X99LUaLhO5F9DqwSwyExZBIS9XQgMxKLnQKrKKipjp9Oe8NU/IDW5ZuBt YzjDd/XGjO1CkZWJXzrClUHk3uzW5J+4Avkz3HdsODDcEmGOl3xM335UlhsRRE1OvvRO iXx9WlShrFe9jEP6m8quJ9Z/LAta3iE+SQLQJbbV0Pb/n7+Z5m97ZtJj4qbJ04wIb6Zc P7YjQgKVXmZ3WGsVbz2Ih3wX8Dc4LRYmrNGhxgH6jfYZww/5osoW9nF/6BJZgaNwFIX3 cpSR+otmym2XmpjpqHf1coavnLT+K4kfDOoPmN4O4sF3GgI1CPlQMsNEl3lfKVb6m0Pq Pang== X-Gm-Message-State: APuU4Z85tn/4kGqtAMSyAF+YDIBKljr+TjRTmUZcmIWhibXrM03VsMXY 1E609XFdsJwr58jjyxcWfv4pZSsXjuz7n7robCswLUJM8+kzdx/29XwUpvtSnH0boJy6rUmpok7 g/JNQLko= X-Gm-Gg: AZFdTZdik/FtO6yzFWm7uwviRr4umotOQZNxAOE/cgkBjPQIispdCuMB/iaXlqoR5QM S8nInft1SKuRP3LwW2/qHPCyX2gfdXkgtZh4iNhcU/MbpRXmMxT6QLiE/dON8lP0FfcHGiEWQfo 5ptQyz1Jny7bFESkeA/Pd8IpC0jO5fvxiMvuTefZrb1jbs53JGdYRmXztSsdzN92x0WseJLIbY0 Cijisvi5S8zzAxmdFKTHXVSFNNvcnRc6+oWo3DZ55t8r62ApyZ03bpm12vg0Myt2YC4BSUpTx4c cwcR3bMFxQNIKUd4j7MTGayCiW4aCUO/ldBgqfXUR5TIfjLOhaTiNmuHzIO4iwRXVlXD7lA//Yn E7OlbZdnh19mVGiE6lNVJQpeJbSRt0HVsQQH+SrfGM6VRs4qrTYJK0cs6Lu7+qASAIOqLp+/c+E YfRDHMO3xa1nlQrKf2vT1ip91ty5ouot1R+k3A7mkWKNT/dXn4VeohuIImFi0IRsPLA3RJkCD5+ ispPrBqHkikaXz6JVyOapgkXxIJQ1kzU+pDWyv68v2JuFLCqzPYV3YtGE2kA7AnPtGmi4QPUex/ 9spwv/BgL7wNxYBZkWk4ZvLAJU+Byx+nOn43yMxTU5TcXLHerhgFdT1AXbeO0tKJMQ9X/w== X-Received: by 2002:a17:90b:2ecb:b0:3b0:accf:5c66 with SMTP id 98e67ed59e1d1-3b41c989fecmr28181398a91.49.1795985475402; Sun, 29 Nov 2026 12:51:15 -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.51.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 12:51:14 -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 45/45] common/cnxk: make internal roc functions static Date: Sun, 29 Nov 2026 12:49:30 -0800 Message-ID: <20261129205006.1440292-46-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 23 roc functions are used only in the file that defines them. Make them static and drop their declarations from the roc headers. Nine of them are called before their definition, so they get a forward declaration after the includes. Signed-off-by: Stephen Hemminger --- drivers/common/cnxk/cnxk_security.c | 6 +++--- drivers/common/cnxk/cnxk_security.h | 11 ----------- drivers/common/cnxk/roc_bphy_irq.c | 2 +- drivers/common/cnxk/roc_bphy_irq.h | 2 -- drivers/common/cnxk/roc_ml.c | 15 ++++++++++----- drivers/common/cnxk/roc_ml.h | 5 ----- drivers/common/cnxk/roc_nix.c | 4 +++- drivers/common/cnxk/roc_nix.h | 13 ------------- drivers/common/cnxk/roc_nix_fc.c | 11 +++++++---- drivers/common/cnxk/roc_nix_inl.c | 2 +- drivers/common/cnxk/roc_nix_inl.h | 2 -- drivers/common/cnxk/roc_nix_ops.c | 2 +- drivers/common/cnxk/roc_nix_rss.c | 2 +- drivers/common/cnxk/roc_nix_tm_ops.c | 2 +- drivers/common/cnxk/roc_npa.c | 8 ++++++-- drivers/common/cnxk/roc_npa.h | 3 --- drivers/common/cnxk/roc_npc.c | 2 +- drivers/common/cnxk/roc_npc.h | 2 -- drivers/common/cnxk/roc_ree.c | 6 ++++-- drivers/common/cnxk/roc_ree.h | 4 ---- drivers/common/cnxk/roc_sso.c | 2 +- drivers/common/cnxk/roc_sso.h | 1 - 22 files changed, 40 insertions(+), 67 deletions(-) diff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c index 4e160f2e74..54c5afca8b 100644 --- a/drivers/common/cnxk/cnxk_security.c +++ b/drivers/common/cnxk/cnxk_security.c @@ -596,7 +596,7 @@ cnxk_ot_ipsec_outb_sa_fill(struct roc_ot_ipsec_outb_sa *sa, return 0; } -uint8_t +static 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) @@ -632,7 +632,7 @@ cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo, return ivlen; } -uint8_t +static 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) @@ -678,7 +678,7 @@ cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo, return icv; } -uint8_t +static 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 d44cd19e75..f1625bd94c 100644 --- a/drivers/common/cnxk/cnxk_security.h +++ b/drivers/common/cnxk/cnxk_security.h @@ -26,17 +26,6 @@ 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 -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 -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 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, diff --git a/drivers/common/cnxk/roc_bphy_irq.c b/drivers/common/cnxk/roc_bphy_irq.c index 7b39b61537..771e576ce2 100644 --- a/drivers/common/cnxk/roc_bphy_irq.c +++ b/drivers/common/cnxk/roc_bphy_irq.c @@ -274,7 +274,7 @@ roc_bphy_irq_handler_set(struct roc_bphy_irq_chip *chip, int cpu, int irq_num, return retval; } -bool +static bool roc_bphy_intr_available(struct roc_bphy_irq_chip *irq_chip, int irq_num) { if (irq_num < 0 || (uint64_t)irq_num >= irq_chip->max_irq) diff --git a/drivers/common/cnxk/roc_bphy_irq.h b/drivers/common/cnxk/roc_bphy_irq.h index 6b18c01299..9d0247d3ca 100644 --- a/drivers/common/cnxk/roc_bphy_irq.h +++ b/drivers/common/cnxk/roc_bphy_irq.h @@ -33,8 +33,6 @@ 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); -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); __roc_api int roc_bphy_intr_register(struct roc_bphy_irq_chip *irq_chip, diff --git a/drivers/common/cnxk/roc_ml.c b/drivers/common/cnxk/roc_ml.c index 6f9869125a..9e0bedde95 100644 --- a/drivers/common/cnxk/roc_ml.c +++ b/drivers/common/cnxk/roc_ml.c @@ -5,6 +5,11 @@ #include "roc_api.h" #include "roc_priv.h" +static void roc_ml_clk_force_on(struct roc_ml *roc_ml); +static void roc_ml_clk_force_off(struct roc_ml *roc_ml); +static void roc_ml_dma_stall_on(struct roc_ml *roc_ml); +static void roc_ml_dma_stall_off(struct roc_ml *roc_ml); + #define TIME_SEC_IN_MS 1000 static int @@ -94,7 +99,7 @@ roc_ml_addr_mlip2ap(struct roc_ml *roc_ml, void *addr) return PLT_PTR_ADD(addr, ml_mlr_base - ML_AXI_START_ADDR); } -bool +static bool roc_ml_scratch_is_valid_bit_set(struct roc_ml *roc_ml) { union ml_scratch_fw_ctrl_s reg_fw_ctrl; @@ -225,7 +230,7 @@ roc_ml_jcmdq_enqueue_sl(struct roc_ml *roc_ml, struct ml_job_cmd_s *job_cmd) return ret; } -void +static void roc_ml_clk_force_on(struct roc_ml *roc_ml) { uint64_t reg_val = 0; @@ -235,7 +240,7 @@ roc_ml_clk_force_on(struct roc_ml *roc_ml) roc_ml_reg_write64(roc_ml, reg_val, ML_CFG); } -void +static void roc_ml_clk_force_off(struct roc_ml *roc_ml) { uint64_t reg_val = 0; @@ -247,7 +252,7 @@ roc_ml_clk_force_off(struct roc_ml *roc_ml) roc_ml_reg_write64(roc_ml, reg_val, ML_CFG); } -void +static void roc_ml_dma_stall_on(struct roc_ml *roc_ml) { uint64_t reg_val = 0; @@ -257,7 +262,7 @@ roc_ml_dma_stall_on(struct roc_ml *roc_ml) roc_ml_reg_write64(roc_ml, reg_val, ML_JOB_MGR_CTRL); } -void +static void roc_ml_dma_stall_off(struct roc_ml *roc_ml) { uint64_t reg_val = 0; diff --git a/drivers/common/cnxk/roc_ml.h b/drivers/common/cnxk/roc_ml.h index 43cb7e9c3a..892396e11d 100644 --- a/drivers/common/cnxk/roc_ml.h +++ b/drivers/common/cnxk/roc_ml.h @@ -121,7 +121,6 @@ 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 */ -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); @@ -130,10 +129,6 @@ 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_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); diff --git a/drivers/common/cnxk/roc_nix.c b/drivers/common/cnxk/roc_nix.c index ce957d061f..9cb112a6d0 100644 --- a/drivers/common/cnxk/roc_nix.c +++ b/drivers/common/cnxk/roc_nix.c @@ -6,6 +6,8 @@ #include "roc_nix_flow_vec.h" #include "roc_priv.h" +static int roc_nix_af_rx_flow_vec_ctrl_set(struct roc_nix *roc_nix); + bool roc_nix_is_lbk(struct roc_nix *roc_nix) { @@ -619,7 +621,7 @@ nix_af_rx_flow_vec_ctrl_set(struct mbox *mbox) return rc; } -int +static int roc_nix_af_rx_flow_vec_ctrl_set(struct roc_nix *roc_nix) { struct nix *nix = roc_nix_to_nix_priv(roc_nix); diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h index f3729f5e77..bcec15dd82 100644 --- a/drivers/common/cnxk/roc_nix.h +++ b/drivers/common/cnxk/roc_nix.h @@ -853,7 +853,6 @@ 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_nix_tm_hierarchy_xmit_enable(struct roc_nix *roc_nix, enum roc_nix_tm_tree tree); /* @@ -963,8 +962,6 @@ 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_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); @@ -987,12 +984,6 @@ void roc_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t en 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_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); @@ -1006,11 +997,7 @@ 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_nix_af_rx_flow_vec_ctrl_set(struct roc_nix *roc_nix); - /* RSS */ -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, diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnxk/roc_nix_fc.c index 8c78ff9733..f8efcc2639 100644 --- a/drivers/common/cnxk/roc_nix_fc.c +++ b/drivers/common/cnxk/roc_nix_fc.c @@ -5,6 +5,9 @@ #include "roc_api.h" #include "roc_priv.h" +static int roc_nix_chan_bpid_set(struct roc_nix *roc_nix, uint16_t chan, uint64_t bpid, + int ena, bool cpt_chan); + static int nix_fc_rxchan_bpid_set(struct roc_nix *roc_nix, bool enable) { @@ -617,7 +620,7 @@ roc_nix_bpids_alloc(struct roc_nix *roc_nix, uint8_t type, uint8_t bp_cnt, uint1 return nix_bpids_alloc(&nix->dev, type, bp_cnt, bpids); } -int +static int roc_nix_rx_chan_cfg_get(struct roc_nix *roc_nix, uint16_t chan, bool is_cpt, uint64_t *cfg) { struct nix *nix = roc_nix_to_nix_priv(roc_nix); @@ -643,7 +646,7 @@ roc_nix_rx_chan_cfg_get(struct roc_nix *roc_nix, uint16_t chan, bool is_cpt, uin return rc; } -int +static int roc_nix_rx_chan_cfg_set(struct roc_nix *roc_nix, uint16_t chan, bool is_cpt, uint64_t val) { struct nix *nix = roc_nix_to_nix_priv(roc_nix); @@ -674,10 +677,10 @@ roc_nix_rx_chan_cfg_set(struct roc_nix *roc_nix, uint16_t chan, bool is_cpt, uin #define NIX_BPID2_OFF 32 #define NIX_BPID3_OFF 44 -int +static int roc_nix_chan_bpid_set(struct roc_nix *roc_nix, uint16_t chan, uint64_t bpid, int ena, bool cpt_chan) { - uint64_t cfg; + uint64_t cfg = 0; int rc; if (!roc_feature_nix_has_rxchan_multi_bpid()) diff --git a/drivers/common/cnxk/roc_nix_inl.c b/drivers/common/cnxk/roc_nix_inl.c index 53d749080c..6e4d661997 100644 --- a/drivers/common/cnxk/roc_nix_inl.c +++ b/drivers/common/cnxk/roc_nix_inl.c @@ -1197,7 +1197,7 @@ roc_nix_inl_inb_spi_range(struct roc_nix *roc_nix, bool inb_inl_dev, return mask; } -uint32_t +static uint32_t roc_nix_inl_inb_sa_sz(struct roc_nix *roc_nix, bool inl_dev_sa) { struct idev_cfg *idev = idev_get_cfg(); diff --git a/drivers/common/cnxk/roc_nix_inl.h b/drivers/common/cnxk/roc_nix_inl.h index b9aee487c9..90b86bb172 100644 --- a/drivers/common/cnxk/roc_nix_inl.h +++ b/drivers/common/cnxk/roc_nix_inl.h @@ -173,8 +173,6 @@ 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_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); diff --git a/drivers/common/cnxk/roc_nix_ops.c b/drivers/common/cnxk/roc_nix_ops.c index 9ec7c09084..e7211d7288 100644 --- a/drivers/common/cnxk/roc_nix_ops.c +++ b/drivers/common/cnxk/roc_nix_ops.c @@ -161,7 +161,7 @@ nix_lso_tun_tcp(struct nix_lso_format_cfg *req, bool outer_v4, bool inner_v4) field++; } -int +static int roc_nix_lso_alt_flags_profile_setup(struct roc_nix *roc_nix, nix_lso_alt_flg_format_t *fmt) { struct nix *nix = roc_nix_to_nix_priv(roc_nix); diff --git a/drivers/common/cnxk/roc_nix_rss.c b/drivers/common/cnxk/roc_nix_rss.c index ac5df654ff..3b7a8d42da 100644 --- a/drivers/common/cnxk/roc_nix_rss.c +++ b/drivers/common/cnxk/roc_nix_rss.c @@ -5,7 +5,7 @@ #include "roc_api.h" #include "roc_priv.h" -void +static void roc_nix_rss_key_default_fill(struct roc_nix *roc_nix, uint8_t key[ROC_NIX_RSS_KEY_LEN]) { diff --git a/drivers/common/cnxk/roc_nix_tm_ops.c b/drivers/common/cnxk/roc_nix_tm_ops.c index 406234b5c7..128a5c7f15 100644 --- a/drivers/common/cnxk/roc_nix_tm_ops.c +++ b/drivers/common/cnxk/roc_nix_tm_ops.c @@ -434,7 +434,7 @@ roc_nix_tm_hierarchy_disable(struct roc_nix *roc_nix) return rc; } -int +static int roc_nix_tm_hierarchy_xmit_enable(struct roc_nix *roc_nix, enum roc_nix_tm_tree tree) { struct nix *nix = roc_nix_to_nix_priv(roc_nix); diff --git a/drivers/common/cnxk/roc_npa.c b/drivers/common/cnxk/roc_npa.c index 107fce8b61..de63d8ef06 100644 --- a/drivers/common/cnxk/roc_npa.c +++ b/drivers/common/cnxk/roc_npa.c @@ -5,6 +5,10 @@ #include "roc_api.h" #include "roc_priv.h" +static void roc_npa_dev_unlock(void); + +static void roc_npa_dev_lock(void); + static roc_npa_lf_init_cb_t lf_init_cb; int @@ -1733,7 +1737,7 @@ roc_npa_dev_fini(struct roc_npa *roc_npa) return dev_fini(&npa->dev, npa->pci_dev); } -void +static void roc_npa_dev_lock(void) { struct idev_cfg *idev = idev_get_cfg(); @@ -1742,7 +1746,7 @@ roc_npa_dev_lock(void) plt_spinlock_lock(&idev->npa_dev_lock); } -void +static void roc_npa_dev_unlock(void) { struct idev_cfg *idev = idev_get_cfg(); diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk/roc_npa.h index c715348e65..2fa828c803 100644 --- a/drivers/common/cnxk/roc_npa.h +++ b/drivers/common/cnxk/roc_npa.h @@ -900,7 +900,4 @@ int roc_npa_ctx_dump(void); int roc_npa_aura_drop_set(uint64_t aura_handle, uint64_t limit, bool ena); -void roc_npa_dev_lock(void); -void roc_npa_dev_unlock(void); - #endif /* _ROC_NPA_H_ */ diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.c index aecea84ee1..de73e0b47b 100644 --- a/drivers/common/cnxk/roc_npc.c +++ b/drivers/common/cnxk/roc_npc.c @@ -1577,7 +1577,7 @@ npc_inline_dev_ipsec_action_free(struct npc *npc, struct roc_npc_flow *flow) return 1; } -void +static void roc_npc_sdp_channel_get(struct roc_npc *roc_npc, uint16_t *chan_base, uint16_t *chan_mask) { struct roc_nix *roc_nix = roc_npc->roc_nix; diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h index 8481cca824..1f602d458a 100644 --- a/drivers/common/cnxk/roc_npc.h +++ b/drivers/common/cnxk/roc_npc.h @@ -497,8 +497,6 @@ int __roc_api roc_npc_mcam_merge_base_steering_rule(struct roc_npc *roc_npc, int __roc_api roc_npc_mcam_default_rule_action_get(struct roc_npc *roc_npc, uint64_t *action); 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_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_ree.c b/drivers/common/cnxk/roc_ree.c index 447b52d0fa..19799118ec 100644 --- a/drivers/common/cnxk/roc_ree.c +++ b/drivers/common/cnxk/roc_ree.c @@ -5,6 +5,8 @@ #include "roc_api.h" #include "roc_priv.h" +static int roc_ree_af_reg_read(struct roc_ree_vf *vf, uint64_t reg, uint64_t *val); + #define REE0_PF 19 #define REE1_PF 20 @@ -135,7 +137,7 @@ ree_send_mbox_msg(struct roc_ree_vf *vf) return 0; } -int +static int roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri, uint32_t size) { struct ree_lf_req_msg *req; @@ -162,7 +164,7 @@ roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri, uint32_t size) return 0; } -int +static int roc_ree_af_reg_read(struct roc_ree_vf *vf, uint64_t reg, uint64_t *val) { struct ree_rd_wr_reg_msg *msg; diff --git a/drivers/common/cnxk/roc_ree.h b/drivers/common/cnxk/roc_ree.h index 5afe7da8b4..98c85463c7 100644 --- a/drivers/common/cnxk/roc_ree.h +++ b/drivers/common/cnxk/roc_ree.h @@ -111,10 +111,6 @@ 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_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_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); diff --git a/drivers/common/cnxk/roc_sso.c b/drivers/common/cnxk/roc_sso.c index 98accfc399..2ec76a7585 100644 --- a/drivers/common/cnxk/roc_sso.c +++ b/drivers/common/cnxk/roc_sso.c @@ -638,7 +638,7 @@ roc_sso_hwgrp_agq_free(struct roc_sso *roc_sso, uint16_t hwgrp, uint32_t agq_id) sso_agq_op_wait(roc_sso, hwgrp); } -void +static void roc_sso_hwgrp_agq_release(struct roc_sso *roc_sso, uint16_t hwgrp) { struct sso *sso = roc_sso_to_sso_priv(roc_sso); diff --git a/drivers/common/cnxk/roc_sso.h b/drivers/common/cnxk/roc_sso.h index da16cc1efb..df7c441228 100644 --- a/drivers/common/cnxk/roc_sso.h +++ b/drivers/common/cnxk/roc_sso.h @@ -110,7 +110,6 @@ 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_sso_hwgrp_agq_release(struct roc_sso *roc_sso, uint16_t hwgrp); /* Utility function */ uint16_t __roc_api roc_sso_pf_func_get(void); -- 2.53.0