Skip to content

Commit

Permalink
net/bnxt: remove unnecessary forward declarations
Browse files Browse the repository at this point in the history
[ upstream commit b3577e2 ]

This patch removes several redundant forward declarations of
functions and structure.

Fixes: 0b42b92 ("net/bnxt: fix xstats by id")
Fixes: cf4f055 ("net/bnxt: remove EEM system memory support")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
  • Loading branch information
Kalesh AP authored and steevenlee committed Jun 8, 2021
1 parent 0f04694 commit 5396d57
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions drivers/net/bnxt/bnxt.h
Expand Up @@ -593,13 +593,6 @@ struct bnxt_rep_info {
DEV_RX_OFFLOAD_SCATTER | \
DEV_RX_OFFLOAD_RSS_HASH)

#define MAX_TABLE_SUPPORT 4
#define MAX_DIR_SUPPORT 2
struct bnxt_dmabuf_info {
uint32_t entry_num;
int fd[MAX_DIR_SUPPORT][MAX_TABLE_SUPPORT];
};

#define BNXT_HWRM_SHORT_REQ_LEN sizeof(struct hwrm_short_input)

struct bnxt_flow_stat_info {
Expand Down Expand Up @@ -809,7 +802,6 @@ struct bnxt {
uint16_t port_svif;

struct tf tfp;
struct bnxt_dmabuf_info dmabuf;
struct bnxt_ulp_context *ulp_ctx;
struct bnxt_flow_stat_info *flow_stat;
uint8_t flow_xstat;
Expand Down
1 change: 0 additions & 1 deletion drivers/net/bnxt/bnxt_hwrm.h
Expand Up @@ -293,7 +293,6 @@ int bnxt_hwrm_get_dflt_vnic_svif(struct bnxt *bp, uint16_t fid,
uint16_t *vnic_id, uint16_t *svif);
int bnxt_hwrm_parent_pf_qcfg(struct bnxt *bp);
int bnxt_hwrm_port_phy_qcaps(struct bnxt *bp);
int bnxt_hwrm_oem_cmd(struct bnxt *bp, uint32_t entry_num);
int bnxt_clear_one_vnic_filter(struct bnxt *bp,
struct bnxt_filter_info *filter);
void bnxt_free_vf_info(struct bnxt *bp);
Expand Down
5 changes: 0 additions & 5 deletions drivers/net/bnxt/bnxt_stats.h
Expand Up @@ -18,11 +18,6 @@ int bnxt_dev_xstats_get_names_op(__rte_unused struct rte_eth_dev *eth_dev,
int bnxt_dev_xstats_get_op(struct rte_eth_dev *eth_dev,
struct rte_eth_xstat *xstats, unsigned int n);
int bnxt_dev_xstats_reset_op(struct rte_eth_dev *eth_dev);
int bnxt_dev_xstats_get_by_id_op(struct rte_eth_dev *dev, const uint64_t *ids,
uint64_t *values, unsigned int limit);
int bnxt_dev_xstats_get_names_by_id_op(struct rte_eth_dev *dev,
struct rte_eth_xstat_name *xstats_names,
const uint64_t *ids, unsigned int limit);

struct bnxt_xstats_name_off {
char name[RTE_ETH_XSTATS_NAME_SIZE];
Expand Down

0 comments on commit 5396d57

Please sign in to comment.