Commit d76a6111 authored by Yuval Mintz's avatar Yuval Mintz Committed by David S. Miller

bnx2x: Semantic change of empty lines

This patch removes unnecessary blank lines and adds a few where such are needed
(between variable declarations and code)
Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ada7c19e
...@@ -34,12 +34,10 @@ ...@@ -34,12 +34,10 @@
#define BCM_DCBNL #define BCM_DCBNL
#endif #endif
#include "bnx2x_hsi.h" #include "bnx2x_hsi.h"
#include "../cnic_if.h" #include "../cnic_if.h"
#define BNX2X_MIN_MSIX_VEC_CNT(bp) ((bp)->min_msix_vec_cnt) #define BNX2X_MIN_MSIX_VEC_CNT(bp) ((bp)->min_msix_vec_cnt)
#include <linux/mdio.h> #include <linux/mdio.h>
...@@ -114,7 +112,6 @@ do { \ ...@@ -114,7 +112,6 @@ do { \
#define BNX2X_ERROR(fmt, ...) \ #define BNX2X_ERROR(fmt, ...) \
pr_err("[%s:%d]" fmt, __func__, __LINE__, ##__VA_ARGS__) pr_err("[%s:%d]" fmt, __func__, __LINE__, ##__VA_ARGS__)
/* before we have a dev->name use dev_info() */ /* before we have a dev->name use dev_info() */
#define BNX2X_DEV_INFO(fmt, ...) \ #define BNX2X_DEV_INFO(fmt, ...) \
do { \ do { \
...@@ -147,7 +144,6 @@ do { \ ...@@ -147,7 +144,6 @@ do { \
#define U64_HI(x) ((u32)(((u64)(x)) >> 32)) #define U64_HI(x) ((u32)(((u64)(x)) >> 32))
#define HILO_U64(hi, lo) ((((u64)(hi)) << 32) + (lo)) #define HILO_U64(hi, lo) ((((u64)(hi)) << 32) + (lo))
#define REG_ADDR(bp, offset) ((bp->regview) + (offset)) #define REG_ADDR(bp, offset) ((bp->regview) + (offset))
#define REG_RD(bp, offset) readl(REG_ADDR(bp, offset)) #define REG_RD(bp, offset) readl(REG_ADDR(bp, offset))
...@@ -387,7 +383,6 @@ union db_prod { ...@@ -387,7 +383,6 @@ union db_prod {
#define BIT_VEC64_ELEM_SHIFT 6 #define BIT_VEC64_ELEM_SHIFT 6
#define BIT_VEC64_ELEM_MASK ((u64)BIT_VEC64_ELEM_SZ - 1) #define BIT_VEC64_ELEM_MASK ((u64)BIT_VEC64_ELEM_SZ - 1)
#define __BIT_VEC64_SET_BIT(el, bit) \ #define __BIT_VEC64_SET_BIT(el, bit) \
do { \ do { \
el = ((el) | ((u64)0x1 << (bit))); \ el = ((el) | ((u64)0x1 << (bit))); \
...@@ -398,7 +393,6 @@ union db_prod { ...@@ -398,7 +393,6 @@ union db_prod {
el = ((el) & (~((u64)0x1 << (bit)))); \ el = ((el) & (~((u64)0x1 << (bit)))); \
} while (0) } while (0)
#define BIT_VEC64_SET_BIT(vec64, idx) \ #define BIT_VEC64_SET_BIT(vec64, idx) \
__BIT_VEC64_SET_BIT((vec64)[(idx) >> BIT_VEC64_ELEM_SHIFT], \ __BIT_VEC64_SET_BIT((vec64)[(idx) >> BIT_VEC64_ELEM_SHIFT], \
(idx) & BIT_VEC64_ELEM_MASK) (idx) & BIT_VEC64_ELEM_MASK)
...@@ -419,8 +413,6 @@ union db_prod { ...@@ -419,8 +413,6 @@ union db_prod {
/*******************************************************/ /*******************************************************/
/* Number of u64 elements in SGE mask array */ /* Number of u64 elements in SGE mask array */
#define RX_SGE_MASK_LEN (NUM_RX_SGE / BIT_VEC64_ELEM_SZ) #define RX_SGE_MASK_LEN (NUM_RX_SGE / BIT_VEC64_ELEM_SZ)
#define RX_SGE_MASK_LEN_MASK (RX_SGE_MASK_LEN - 1) #define RX_SGE_MASK_LEN_MASK (RX_SGE_MASK_LEN - 1)
...@@ -580,12 +572,10 @@ struct bnx2x_fastpath { ...@@ -580,12 +572,10 @@ struct bnx2x_fastpath {
txdata_ptr[FIRST_TX_COS_INDEX] \ txdata_ptr[FIRST_TX_COS_INDEX] \
->var) ->var)
#define IS_ETH_FP(fp) ((fp)->index < BNX2X_NUM_ETH_QUEUES((fp)->bp)) #define IS_ETH_FP(fp) ((fp)->index < BNX2X_NUM_ETH_QUEUES((fp)->bp))
#define IS_FCOE_FP(fp) ((fp)->index == FCOE_IDX((fp)->bp)) #define IS_FCOE_FP(fp) ((fp)->index == FCOE_IDX((fp)->bp))
#define IS_FCOE_IDX(idx) ((idx) == FCOE_IDX(bp)) #define IS_FCOE_IDX(idx) ((idx) == FCOE_IDX(bp))
/* MC hsi */ /* MC hsi */
#define MAX_FETCH_BD 13 /* HW max BDs per packet */ #define MAX_FETCH_BD 13 /* HW max BDs per packet */
#define RX_COPY_THRESH 92 #define RX_COPY_THRESH 92
...@@ -693,12 +683,10 @@ struct bnx2x_fastpath { ...@@ -693,12 +683,10 @@ struct bnx2x_fastpath {
FW_DROP_LEVEL(bp)) FW_DROP_LEVEL(bp))
#define RCQ_TH_HI(bp) (RCQ_TH_LO(bp) + DROPLESS_FC_HEADROOM) #define RCQ_TH_HI(bp) (RCQ_TH_LO(bp) + DROPLESS_FC_HEADROOM)
/* This is needed for determining of last_max */ /* This is needed for determining of last_max */
#define SUB_S16(a, b) (s16)((s16)(a) - (s16)(b)) #define SUB_S16(a, b) (s16)((s16)(a) - (s16)(b))
#define SUB_S32(a, b) (s32)((s32)(a) - (s32)(b)) #define SUB_S32(a, b) (s32)((s32)(a) - (s32)(b))
#define BNX2X_SWCID_SHIFT 17 #define BNX2X_SWCID_SHIFT 17
#define BNX2X_SWCID_MASK ((0x1 << BNX2X_SWCID_SHIFT) - 1) #define BNX2X_SWCID_MASK ((0x1 << BNX2X_SWCID_SHIFT) - 1)
...@@ -723,7 +711,6 @@ struct bnx2x_fastpath { ...@@ -723,7 +711,6 @@ struct bnx2x_fastpath {
DPM_TRIGER_TYPE); \ DPM_TRIGER_TYPE); \
} while (0) } while (0)
/* TX CSUM helpers */ /* TX CSUM helpers */
#define SKB_CS_OFF(skb) (offsetof(struct tcphdr, check) - \ #define SKB_CS_OFF(skb) (offsetof(struct tcphdr, check) - \
skb->csum_offset) skb->csum_offset)
...@@ -766,7 +753,6 @@ struct bnx2x_fastpath { ...@@ -766,7 +753,6 @@ struct bnx2x_fastpath {
#define BNX2X_RX_SUM_FIX(cqe) \ #define BNX2X_RX_SUM_FIX(cqe) \
BNX2X_PRS_FLAG_OVERETH_IPV4(cqe->fast_path_cqe.pars_flags.flags) BNX2X_PRS_FLAG_OVERETH_IPV4(cqe->fast_path_cqe.pars_flags.flags)
#define FP_USB_FUNC_OFF \ #define FP_USB_FUNC_OFF \
offsetof(struct cstorm_status_block_u, func) offsetof(struct cstorm_status_block_u, func)
#define FP_CSB_FUNC_OFF \ #define FP_CSB_FUNC_OFF \
...@@ -1068,7 +1054,6 @@ struct bnx2x_slowpath { ...@@ -1068,7 +1054,6 @@ struct bnx2x_slowpath {
struct eth_classify_rules_ramrod_data e2; struct eth_classify_rules_ramrod_data e2;
} mac_rdata; } mac_rdata;
union { union {
struct tstorm_eth_mac_filter_config e1x; struct tstorm_eth_mac_filter_config e1x;
struct eth_filter_rules_ramrod_data e2; struct eth_filter_rules_ramrod_data e2;
...@@ -1119,7 +1104,6 @@ struct bnx2x_slowpath { ...@@ -1119,7 +1104,6 @@ struct bnx2x_slowpath {
#define bnx2x_sp_mapping(bp, var) \ #define bnx2x_sp_mapping(bp, var) \
(bp->slowpath_mapping + offsetof(struct bnx2x_slowpath, var)) (bp->slowpath_mapping + offsetof(struct bnx2x_slowpath, var))
/* attn group wiring */ /* attn group wiring */
#define MAX_DYNAMIC_ATTN_GRPS 8 #define MAX_DYNAMIC_ATTN_GRPS 8
...@@ -1225,7 +1209,6 @@ enum { ...@@ -1225,7 +1209,6 @@ enum {
BNX2X_SP_RTNL_HYPERVISOR_VLAN, BNX2X_SP_RTNL_HYPERVISOR_VLAN,
}; };
struct bnx2x_prev_path_list { struct bnx2x_prev_path_list {
struct list_head list; struct list_head list;
u8 bus; u8 bus;
...@@ -1755,7 +1738,6 @@ extern int num_queues; ...@@ -1755,7 +1738,6 @@ extern int num_queues;
#define FUNC_FLG_SPQ 0x0010 #define FUNC_FLG_SPQ 0x0010
#define FUNC_FLG_LEADING 0x0020 /* PF only */ #define FUNC_FLG_LEADING 0x0020 /* PF only */
struct bnx2x_func_init_params { struct bnx2x_func_init_params {
/* dma */ /* dma */
dma_addr_t fw_stat_map; /* valid iff FUNC_FLG_STATS */ dma_addr_t fw_stat_map; /* valid iff FUNC_FLG_STATS */
...@@ -1853,9 +1835,6 @@ struct bnx2x_func_init_params { ...@@ -1853,9 +1835,6 @@ struct bnx2x_func_init_params {
#define skip_queue(bp, idx) (NO_FCOE(bp) && IS_FCOE_IDX(idx)) #define skip_queue(bp, idx) (NO_FCOE(bp) && IS_FCOE_IDX(idx))
/** /**
* bnx2x_set_mac_one - configure a single MAC address * bnx2x_set_mac_one - configure a single MAC address
* *
...@@ -2000,7 +1979,6 @@ void bnx2x_igu_clear_sb_gen(struct bnx2x *bp, u8 func, u8 idu_sb_id, ...@@ -2000,7 +1979,6 @@ void bnx2x_igu_clear_sb_gen(struct bnx2x *bp, u8 func, u8 idu_sb_id,
#define UNLOAD_CLOSE 1 #define UNLOAD_CLOSE 1
#define UNLOAD_RECOVERY 2 #define UNLOAD_RECOVERY 2
/* DMAE command defines */ /* DMAE command defines */
#define DMAE_TIMEOUT -1 #define DMAE_TIMEOUT -1
#define DMAE_PCI_ERROR -2 /* E2 and onward */ #define DMAE_PCI_ERROR -2 /* E2 and onward */
...@@ -2102,7 +2080,6 @@ void bnx2x_igu_clear_sb_gen(struct bnx2x *bp, u8 func, u8 idu_sb_id, ...@@ -2102,7 +2080,6 @@ void bnx2x_igu_clear_sb_gen(struct bnx2x *bp, u8 func, u8 idu_sb_id,
#define SP_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct eth_spe)) #define SP_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct eth_spe))
#define MAX_SP_DESC_CNT (SP_DESC_CNT - 1) #define MAX_SP_DESC_CNT (SP_DESC_CNT - 1)
#define BNX2X_BTR 4 #define BNX2X_BTR 4
#define MAX_SPQ_PENDING 8 #define MAX_SPQ_PENDING 8
......
...@@ -165,7 +165,6 @@ static u16 bnx2x_free_tx_pkt(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata, ...@@ -165,7 +165,6 @@ static u16 bnx2x_free_tx_pkt(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata,
dma_unmap_single(&bp->pdev->dev, BD_UNMAP_ADDR(tx_start_bd), dma_unmap_single(&bp->pdev->dev, BD_UNMAP_ADDR(tx_start_bd),
BD_UNMAP_LEN(tx_start_bd), DMA_TO_DEVICE); BD_UNMAP_LEN(tx_start_bd), DMA_TO_DEVICE);
nbd = le16_to_cpu(tx_start_bd->nbd) - 1; nbd = le16_to_cpu(tx_start_bd->nbd) - 1;
#ifdef BNX2X_STOP_ON_ERROR #ifdef BNX2X_STOP_ON_ERROR
if ((nbd - 1) > (MAX_SKB_FRAGS + 2)) { if ((nbd - 1) > (MAX_SKB_FRAGS + 2)) {
...@@ -733,7 +732,6 @@ static void bnx2x_tpa_stop(struct bnx2x *bp, struct bnx2x_fastpath *fp, ...@@ -733,7 +732,6 @@ static void bnx2x_tpa_stop(struct bnx2x *bp, struct bnx2x_fastpath *fp,
dev_kfree_skb_any(skb); dev_kfree_skb_any(skb);
} }
/* put new data in bin */ /* put new data in bin */
rx_buf->data = new_data; rx_buf->data = new_data;
...@@ -899,7 +897,6 @@ int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) ...@@ -899,7 +897,6 @@ int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)
cqe_fp); cqe_fp);
goto next_rx; goto next_rx;
} }
queue = cqe->end_agg_cqe.queue_index; queue = cqe->end_agg_cqe.queue_index;
tpa_info = &fp->tpa_info[queue]; tpa_info = &fp->tpa_info[queue];
...@@ -1004,7 +1001,6 @@ int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) ...@@ -1004,7 +1001,6 @@ int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)
le16_to_cpu(cqe_fp->vlan_tag)); le16_to_cpu(cqe_fp->vlan_tag));
napi_gro_receive(&fp->napi, skb); napi_gro_receive(&fp->napi, skb);
next_rx: next_rx:
rx_buf->data = NULL; rx_buf->data = NULL;
...@@ -2322,10 +2318,10 @@ static void bnx2x_nic_load_afex_dcc(struct bnx2x *bp, int load_code) ...@@ -2322,10 +2318,10 @@ static void bnx2x_nic_load_afex_dcc(struct bnx2x *bp, int load_code)
static void bnx2x_bz_fp(struct bnx2x *bp, int index) static void bnx2x_bz_fp(struct bnx2x *bp, int index)
{ {
struct bnx2x_fastpath *fp = &bp->fp[index]; struct bnx2x_fastpath *fp = &bp->fp[index];
int cos; int cos;
struct napi_struct orig_napi = fp->napi; struct napi_struct orig_napi = fp->napi;
struct bnx2x_agg_info *orig_tpa_info = fp->tpa_info; struct bnx2x_agg_info *orig_tpa_info = fp->tpa_info;
/* bzero bnx2x_fastpath contents */ /* bzero bnx2x_fastpath contents */
if (fp->tpa_info) if (fp->tpa_info)
memset(fp->tpa_info, 0, ETH_MAX_AGGREGATION_QUEUES_E1H_E2 * memset(fp->tpa_info, 0, ETH_MAX_AGGREGATION_QUEUES_E1H_E2 *
...@@ -2435,7 +2431,6 @@ int bnx2x_load_cnic(struct bnx2x *bp) ...@@ -2435,7 +2431,6 @@ int bnx2x_load_cnic(struct bnx2x *bp)
if (bp->state == BNX2X_STATE_OPEN) if (bp->state == BNX2X_STATE_OPEN)
bnx2x_cnic_notify(bp, CNIC_CTL_START_CMD); bnx2x_cnic_notify(bp, CNIC_CTL_START_CMD);
DP(NETIF_MSG_IFUP, "Ending successfully CNIC-related load\n"); DP(NETIF_MSG_IFUP, "Ending successfully CNIC-related load\n");
return 0; return 0;
...@@ -2961,7 +2956,6 @@ int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode, bool keep_link) ...@@ -2961,7 +2956,6 @@ int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode, bool keep_link)
bnx2x_set_reset_global(bp); bnx2x_set_reset_global(bp);
} }
/* The last driver must disable a "close the gate" if there is no /* The last driver must disable a "close the gate" if there is no
* parity attention or "process kill" pending. * parity attention or "process kill" pending.
*/ */
...@@ -4480,7 +4474,6 @@ int bnx2x_alloc_mem_bp(struct bnx2x *bp) ...@@ -4480,7 +4474,6 @@ int bnx2x_alloc_mem_bp(struct bnx2x *bp)
alloc_err: alloc_err:
bnx2x_free_mem_bp(bp); bnx2x_free_mem_bp(bp);
return -ENOMEM; return -ENOMEM;
} }
int bnx2x_reload_if_running(struct net_device *dev) int bnx2x_reload_if_running(struct net_device *dev)
...@@ -4522,7 +4515,6 @@ int bnx2x_get_cur_phy_idx(struct bnx2x *bp) ...@@ -4522,7 +4515,6 @@ int bnx2x_get_cur_phy_idx(struct bnx2x *bp)
} }
return sel_phy_idx; return sel_phy_idx;
} }
int bnx2x_get_link_cfg_idx(struct bnx2x *bp) int bnx2x_get_link_cfg_idx(struct bnx2x *bp)
{ {
...@@ -4739,7 +4731,6 @@ int bnx2x_resume(struct pci_dev *pdev) ...@@ -4739,7 +4731,6 @@ int bnx2x_resume(struct pci_dev *pdev)
return rc; return rc;
} }
void bnx2x_set_ctx_validation(struct bnx2x *bp, struct eth_context *cxt, void bnx2x_set_ctx_validation(struct bnx2x *bp, struct eth_context *cxt,
u32 cid) u32 cid)
{ {
...@@ -4757,7 +4748,6 @@ static void storm_memset_hc_timeout(struct bnx2x *bp, u8 port, ...@@ -4757,7 +4748,6 @@ static void storm_memset_hc_timeout(struct bnx2x *bp, u8 port,
u8 fw_sb_id, u8 sb_index, u8 fw_sb_id, u8 sb_index,
u8 ticks) u8 ticks)
{ {
u32 addr = BAR_CSTRORM_INTMEM + u32 addr = BAR_CSTRORM_INTMEM +
CSTORM_STATUS_BLOCK_DATA_TIMEOUT_OFFSET(fw_sb_id, sb_index); CSTORM_STATUS_BLOCK_DATA_TIMEOUT_OFFSET(fw_sb_id, sb_index);
REG_WR8(bp, addr, ticks); REG_WR8(bp, addr, ticks);
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include "bnx2x.h" #include "bnx2x.h"
#include "bnx2x_sriov.h" #include "bnx2x_sriov.h"
...@@ -1171,7 +1170,6 @@ static inline u8 bnx2x_cnic_eth_cl_id(struct bnx2x *bp, u8 cl_idx) ...@@ -1171,7 +1170,6 @@ static inline u8 bnx2x_cnic_eth_cl_id(struct bnx2x *bp, u8 cl_idx)
static inline u8 bnx2x_cnic_fw_sb_id(struct bnx2x *bp) static inline u8 bnx2x_cnic_fw_sb_id(struct bnx2x *bp)
{ {
/* the 'first' id is allocated for the cnic */ /* the 'first' id is allocated for the cnic */
return bp->base_fw_ndsb; return bp->base_fw_ndsb;
} }
...@@ -1181,7 +1179,6 @@ static inline u8 bnx2x_cnic_igu_sb_id(struct bnx2x *bp) ...@@ -1181,7 +1179,6 @@ static inline u8 bnx2x_cnic_igu_sb_id(struct bnx2x *bp)
return bp->igu_base_sb; return bp->igu_base_sb;
} }
static inline void bnx2x_init_fcoe_fp(struct bnx2x *bp) static inline void bnx2x_init_fcoe_fp(struct bnx2x *bp)
{ {
struct bnx2x_fastpath *fp = bnx2x_fcoe_fp(bp); struct bnx2x_fastpath *fp = bnx2x_fcoe_fp(bp);
......
...@@ -253,7 +253,6 @@ static void bnx2x_dcbx_get_ets_feature(struct bnx2x *bp, ...@@ -253,7 +253,6 @@ static void bnx2x_dcbx_get_ets_feature(struct bnx2x *bp,
memset(&pg_help_data, 0, sizeof(struct pg_help_data)); memset(&pg_help_data, 0, sizeof(struct pg_help_data));
if (GET_FLAGS(error, DCBX_LOCAL_ETS_ERROR)) if (GET_FLAGS(error, DCBX_LOCAL_ETS_ERROR))
DP(BNX2X_MSG_DCB, "DCBX_LOCAL_ETS_ERROR\n"); DP(BNX2X_MSG_DCB, "DCBX_LOCAL_ETS_ERROR\n");
...@@ -298,7 +297,6 @@ static void bnx2x_dcbx_get_ets_feature(struct bnx2x *bp, ...@@ -298,7 +297,6 @@ static void bnx2x_dcbx_get_ets_feature(struct bnx2x *bp,
static void bnx2x_dcbx_get_pfc_feature(struct bnx2x *bp, static void bnx2x_dcbx_get_pfc_feature(struct bnx2x *bp,
struct dcbx_pfc_feature *pfc, u32 error) struct dcbx_pfc_feature *pfc, u32 error)
{ {
if (GET_FLAGS(error, DCBX_LOCAL_PFC_ERROR)) if (GET_FLAGS(error, DCBX_LOCAL_PFC_ERROR))
DP(BNX2X_MSG_DCB, "DCBX_LOCAL_PFC_ERROR\n"); DP(BNX2X_MSG_DCB, "DCBX_LOCAL_PFC_ERROR\n");
...@@ -367,7 +365,6 @@ static int bnx2x_dcbx_read_mib(struct bnx2x *bp, ...@@ -367,7 +365,6 @@ static int bnx2x_dcbx_read_mib(struct bnx2x *bp,
struct lldp_remote_mib *remote_mib ; struct lldp_remote_mib *remote_mib ;
struct lldp_local_mib *local_mib; struct lldp_local_mib *local_mib;
switch (read_mib_type) { switch (read_mib_type) {
case DCBX_READ_LOCAL_MIB: case DCBX_READ_LOCAL_MIB:
mib_size = sizeof(struct lldp_local_mib); mib_size = sizeof(struct lldp_local_mib);
...@@ -629,7 +626,6 @@ static int bnx2x_dcbx_read_shmem_neg_results(struct bnx2x *bp) ...@@ -629,7 +626,6 @@ static int bnx2x_dcbx_read_shmem_neg_results(struct bnx2x *bp)
return 0; return 0;
} }
#ifdef BCM_DCBNL #ifdef BCM_DCBNL
static inline static inline
u8 bnx2x_dcbx_dcbnl_app_up(struct dcbx_app_priority_entry *ent) u8 bnx2x_dcbx_dcbnl_app_up(struct dcbx_app_priority_entry *ent)
...@@ -896,13 +892,11 @@ static void bnx2x_dcbx_admin_mib_updated_params(struct bnx2x *bp, ...@@ -896,13 +892,11 @@ static void bnx2x_dcbx_admin_mib_updated_params(struct bnx2x *bp,
} }
af->app.default_pri = (u8)dp->admin_default_priority; af->app.default_pri = (u8)dp->admin_default_priority;
} }
/* Write the data. */ /* Write the data. */
bnx2x_write_data(bp, (u32 *)&admin_mib, offset, bnx2x_write_data(bp, (u32 *)&admin_mib, offset,
sizeof(struct lldp_admin_mib)); sizeof(struct lldp_admin_mib));
} }
void bnx2x_dcbx_set_state(struct bnx2x *bp, bool dcb_on, u32 dcbx_enabled) void bnx2x_dcbx_set_state(struct bnx2x *bp, bool dcb_on, u32 dcbx_enabled)
...@@ -1181,7 +1175,6 @@ static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp, ...@@ -1181,7 +1175,6 @@ static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp,
BNX2X_ERR("dcbx error: Both groups must have priorities\n"); BNX2X_ERR("dcbx error: Both groups must have priorities\n");
} }
#ifndef POWER_OF_2 #ifndef POWER_OF_2
#define POWER_OF_2(x) ((0 != x) && (0 == (x & (x-1)))) #define POWER_OF_2(x) ((0 != x) && (0 == (x & (x-1))))
#endif #endif
...@@ -1524,7 +1517,6 @@ static void bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params( ...@@ -1524,7 +1517,6 @@ static void bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params(
} }
} }
static void bnx2x_dcbx_2cos_limit_cee_fill_cos_params(struct bnx2x *bp, static void bnx2x_dcbx_2cos_limit_cee_fill_cos_params(struct bnx2x *bp,
struct pg_help_data *help_data, struct pg_help_data *help_data,
struct dcbx_ets_feature *ets, struct dcbx_ets_feature *ets,
...@@ -1533,7 +1525,6 @@ static void bnx2x_dcbx_2cos_limit_cee_fill_cos_params(struct bnx2x *bp, ...@@ -1533,7 +1525,6 @@ static void bnx2x_dcbx_2cos_limit_cee_fill_cos_params(struct bnx2x *bp,
u32 pri_join_mask, u32 pri_join_mask,
u8 num_of_dif_pri) u8 num_of_dif_pri)
{ {
/* default E2 settings */ /* default E2 settings */
cos_data->num_of_cos = DCBX_COS_MAX_NUM_E2; cos_data->num_of_cos = DCBX_COS_MAX_NUM_E2;
...@@ -1629,7 +1620,6 @@ static u8 bnx2x_dcbx_cee_fill_strict_pri(struct bnx2x *bp, ...@@ -1629,7 +1620,6 @@ static u8 bnx2x_dcbx_cee_fill_strict_pri(struct bnx2x *bp,
u8 num_spread_of_entries, u8 num_spread_of_entries,
u8 strict_app_pris) u8 strict_app_pris)
{ {
if (bnx2x_dcbx_spread_strict_pri(bp, cos_data, entry, if (bnx2x_dcbx_spread_strict_pri(bp, cos_data, entry,
num_spread_of_entries, num_spread_of_entries,
strict_app_pris)) { strict_app_pris)) {
...@@ -1876,7 +1866,6 @@ void bnx2x_dcbx_pmf_update(struct bnx2x *bp) ...@@ -1876,7 +1866,6 @@ void bnx2x_dcbx_pmf_update(struct bnx2x *bp)
* dcbx negotiation. * dcbx negotiation.
*/ */
bnx2x_dcbx_update_tc_mapping(bp); bnx2x_dcbx_update_tc_mapping(bp);
} }
} }
......
...@@ -134,8 +134,6 @@ enum { ...@@ -134,8 +134,6 @@ enum {
#define PFC_BRB1_REG_HIGH_LLFC_LOW_THRESHOLD 130 #define PFC_BRB1_REG_HIGH_LLFC_LOW_THRESHOLD 130
#define PFC_BRB1_REG_HIGH_LLFC_HIGH_THRESHOLD 170 #define PFC_BRB1_REG_HIGH_LLFC_HIGH_THRESHOLD 170
struct cos_entry_help_data { struct cos_entry_help_data {
u32 pri_join_mask; u32 pri_join_mask;
u32 cos_bw; u32 cos_bw;
...@@ -170,7 +168,6 @@ struct cos_help_data { ...@@ -170,7 +168,6 @@ struct cos_help_data {
(!(IS_DCBX_PFC_PRI_ONLY_NON_PAUSE((bp), (pg_pri)) || \ (!(IS_DCBX_PFC_PRI_ONLY_NON_PAUSE((bp), (pg_pri)) || \
IS_DCBX_PFC_PRI_ONLY_PAUSE((bp), (pg_pri)))) IS_DCBX_PFC_PRI_ONLY_PAUSE((bp), (pg_pri))))
struct pg_entry_help_data { struct pg_entry_help_data {
u8 num_of_dif_pri; u8 num_of_dif_pri;
u8 pg; u8 pg;
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#define DRV_DUMP_USTORM_WAITP_ADDRESS 0x338a80 #define DRV_DUMP_USTORM_WAITP_ADDRESS 0x338a80
#define DRV_DUMP_CSTORM_WAITP_ADDRESS 0x238a80 #define DRV_DUMP_CSTORM_WAITP_ADDRESS 0x238a80
/* Possible Chips */ /* Possible Chips */
#define DUMP_CHIP_E1 1 #define DUMP_CHIP_E1 1
#define DUMP_CHIP_E1H 2 #define DUMP_CHIP_E1H 2
......
...@@ -733,7 +733,6 @@ static bool bnx2x_is_reg_in_chip(struct bnx2x *bp, ...@@ -733,7 +733,6 @@ static bool bnx2x_is_reg_in_chip(struct bnx2x *bp,
return false; return false;
} }
static bool bnx2x_is_wreg_in_chip(struct bnx2x *bp, static bool bnx2x_is_wreg_in_chip(struct bnx2x *bp,
const struct wreg_addr *wreg_info) const struct wreg_addr *wreg_info)
{ {
...@@ -3071,7 +3070,6 @@ static void bnx2x_get_strings(struct net_device *dev, u32 stringset, u8 *buf) ...@@ -3071,7 +3070,6 @@ static void bnx2x_get_strings(struct net_device *dev, u32 stringset, u8 *buf)
} }
} }
for (i = 0, j = 0; i < BNX2X_NUM_STATS; i++) { for (i = 0, j = 0; i < BNX2X_NUM_STATS; i++) {
if (IS_MF_MODE_STAT(bp) && IS_PORT_STAT(i)) if (IS_MF_MODE_STAT(bp) && IS_PORT_STAT(i))
continue; continue;
...@@ -3194,7 +3192,6 @@ static int bnx2x_set_phys_id(struct net_device *dev, ...@@ -3194,7 +3192,6 @@ static int bnx2x_set_phys_id(struct net_device *dev,
static int bnx2x_get_rss_flags(struct bnx2x *bp, struct ethtool_rxnfc *info) static int bnx2x_get_rss_flags(struct bnx2x *bp, struct ethtool_rxnfc *info)
{ {
switch (info->flow_type) { switch (info->flow_type) {
case TCP_V4_FLOW: case TCP_V4_FLOW:
case TCP_V6_FLOW: case TCP_V6_FLOW:
...@@ -3430,7 +3427,6 @@ static int bnx2x_set_channels(struct net_device *dev, ...@@ -3430,7 +3427,6 @@ static int bnx2x_set_channels(struct net_device *dev,
{ {
struct bnx2x *bp = netdev_priv(dev); struct bnx2x *bp = netdev_priv(dev);
DP(BNX2X_MSG_ETHTOOL, DP(BNX2X_MSG_ETHTOOL,
"set-channels command parameters: rx = %d, tx = %d, other = %d, combined = %d\n", "set-channels command parameters: rx = %d, tx = %d, other = %d, combined = %d\n",
channels->rx_count, channels->tx_count, channels->other_count, channels->rx_count, channels->tx_count, channels->other_count,
......
...@@ -142,7 +142,6 @@ static inline int bnx2x_exe_queue_add(struct bnx2x *bp, ...@@ -142,7 +142,6 @@ static inline int bnx2x_exe_queue_add(struct bnx2x *bp,
spin_unlock_bh(&o->lock); spin_unlock_bh(&o->lock);
return rc; return rc;
} }
static inline void __bnx2x_exe_queue_reset_pending( static inline void __bnx2x_exe_queue_reset_pending(
...@@ -163,13 +162,11 @@ static inline void __bnx2x_exe_queue_reset_pending( ...@@ -163,13 +162,11 @@ static inline void __bnx2x_exe_queue_reset_pending(
static inline void bnx2x_exe_queue_reset_pending(struct bnx2x *bp, static inline void bnx2x_exe_queue_reset_pending(struct bnx2x *bp,
struct bnx2x_exe_queue_obj *o) struct bnx2x_exe_queue_obj *o)
{ {
spin_lock_bh(&o->lock); spin_lock_bh(&o->lock);
__bnx2x_exe_queue_reset_pending(bp, o); __bnx2x_exe_queue_reset_pending(bp, o);
spin_unlock_bh(&o->lock); spin_unlock_bh(&o->lock);
} }
/** /**
...@@ -308,7 +305,6 @@ static inline int bnx2x_state_wait(struct bnx2x *bp, int state, ...@@ -308,7 +305,6 @@ static inline int bnx2x_state_wait(struct bnx2x *bp, int state,
/* can take a while if any port is running */ /* can take a while if any port is running */
int cnt = 5000; int cnt = 5000;
if (CHIP_REV_IS_EMUL(bp)) if (CHIP_REV_IS_EMUL(bp))
cnt *= 20; cnt *= 20;
...@@ -456,7 +452,6 @@ static int bnx2x_get_n_elements(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o, ...@@ -456,7 +452,6 @@ static int bnx2x_get_n_elements(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o,
DP(BNX2X_MSG_SP, "copied element number %d to address %p element was:\n", DP(BNX2X_MSG_SP, "copied element number %d to address %p element was:\n",
counter, next); counter, next);
next += stride + size; next += stride + size;
} }
} }
return counter * ETH_ALEN; return counter * ETH_ALEN;
...@@ -518,7 +513,6 @@ static int bnx2x_check_vlan_mac_add(struct bnx2x *bp, ...@@ -518,7 +513,6 @@ static int bnx2x_check_vlan_mac_add(struct bnx2x *bp,
return 0; return 0;
} }
/* check_del() callbacks */ /* check_del() callbacks */
static struct bnx2x_vlan_mac_registry_elem * static struct bnx2x_vlan_mac_registry_elem *
bnx2x_check_mac_del(struct bnx2x *bp, bnx2x_check_mac_del(struct bnx2x *bp,
...@@ -609,7 +603,6 @@ static bool bnx2x_check_move_always_err( ...@@ -609,7 +603,6 @@ static bool bnx2x_check_move_always_err(
return false; return false;
} }
static inline u8 bnx2x_vlan_mac_get_rx_tx_flag(struct bnx2x_vlan_mac_obj *o) static inline u8 bnx2x_vlan_mac_get_rx_tx_flag(struct bnx2x_vlan_mac_obj *o)
{ {
struct bnx2x_raw_obj *raw = &o->raw; struct bnx2x_raw_obj *raw = &o->raw;
...@@ -626,7 +619,6 @@ static inline u8 bnx2x_vlan_mac_get_rx_tx_flag(struct bnx2x_vlan_mac_obj *o) ...@@ -626,7 +619,6 @@ static inline u8 bnx2x_vlan_mac_get_rx_tx_flag(struct bnx2x_vlan_mac_obj *o)
return rx_tx_flag; return rx_tx_flag;
} }
void bnx2x_set_mac_in_nig(struct bnx2x *bp, void bnx2x_set_mac_in_nig(struct bnx2x *bp,
bool add, unsigned char *dev_addr, int index) bool add, unsigned char *dev_addr, int index)
{ {
...@@ -707,7 +699,6 @@ static inline void bnx2x_vlan_mac_set_rdata_hdr_e2(u32 cid, int type, ...@@ -707,7 +699,6 @@ static inline void bnx2x_vlan_mac_set_rdata_hdr_e2(u32 cid, int type,
hdr->rule_cnt = (u8)rule_cnt; hdr->rule_cnt = (u8)rule_cnt;
} }
/* hw_config() callbacks */ /* hw_config() callbacks */
static void bnx2x_set_one_mac_e2(struct bnx2x *bp, static void bnx2x_set_one_mac_e2(struct bnx2x *bp,
struct bnx2x_vlan_mac_obj *o, struct bnx2x_vlan_mac_obj *o,
...@@ -960,7 +951,6 @@ static void bnx2x_set_one_vlan_mac_e2(struct bnx2x *bp, ...@@ -960,7 +951,6 @@ static void bnx2x_set_one_vlan_mac_e2(struct bnx2x *bp,
u16 vlan = elem->cmd_data.vlan_mac.u.vlan_mac.vlan; u16 vlan = elem->cmd_data.vlan_mac.u.vlan_mac.vlan;
u8 *mac = elem->cmd_data.vlan_mac.u.vlan_mac.mac; u8 *mac = elem->cmd_data.vlan_mac.u.vlan_mac.mac;
/* Reset the ramrod data buffer for the first rule */ /* Reset the ramrod data buffer for the first rule */
if (rule_idx == 0) if (rule_idx == 0)
memset(data, 0, sizeof(*data)); memset(data, 0, sizeof(*data));
...@@ -1818,8 +1808,6 @@ int bnx2x_config_vlan_mac( ...@@ -1818,8 +1808,6 @@ int bnx2x_config_vlan_mac(
return rc; return rc;
} }
/** /**
* bnx2x_vlan_mac_del_all - delete elements with given vlan_mac_flags spec * bnx2x_vlan_mac_del_all - delete elements with given vlan_mac_flags spec
* *
...@@ -1934,7 +1922,6 @@ static inline void bnx2x_init_vlan_mac_common(struct bnx2x_vlan_mac_obj *o, ...@@ -1934,7 +1922,6 @@ static inline void bnx2x_init_vlan_mac_common(struct bnx2x_vlan_mac_obj *o,
state, pstate, type); state, pstate, type);
} }
void bnx2x_init_mac_obj(struct bnx2x *bp, void bnx2x_init_mac_obj(struct bnx2x *bp,
struct bnx2x_vlan_mac_obj *mac_obj, struct bnx2x_vlan_mac_obj *mac_obj,
u8 cl_id, u32 cid, u8 func_id, void *rdata, u8 cl_id, u32 cid, u8 func_id, void *rdata,
...@@ -2092,7 +2079,6 @@ void bnx2x_init_vlan_mac_obj(struct bnx2x *bp, ...@@ -2092,7 +2079,6 @@ void bnx2x_init_vlan_mac_obj(struct bnx2x *bp,
bnx2x_execute_vlan_mac, bnx2x_execute_vlan_mac,
bnx2x_exeq_get_vlan_mac); bnx2x_exeq_get_vlan_mac);
} }
} }
/* RX_MODE verbs: DROP_ALL/ACCEPT_ALL/ACCEPT_ALL_MULTI/ACCEPT_ALL_VLAN/NORMAL */ /* RX_MODE verbs: DROP_ALL/ACCEPT_ALL/ACCEPT_ALL_MULTI/ACCEPT_ALL_VLAN/NORMAL */
...@@ -2245,7 +2231,6 @@ static inline void bnx2x_rx_mode_set_cmd_state_e2(struct bnx2x *bp, ...@@ -2245,7 +2231,6 @@ static inline void bnx2x_rx_mode_set_cmd_state_e2(struct bnx2x *bp,
} }
cmd->state = cpu_to_le16(state); cmd->state = cpu_to_le16(state);
} }
static int bnx2x_set_rx_mode_e2(struct bnx2x *bp, static int bnx2x_set_rx_mode_e2(struct bnx2x *bp,
...@@ -2286,7 +2271,6 @@ static int bnx2x_set_rx_mode_e2(struct bnx2x *bp, ...@@ -2286,7 +2271,6 @@ static int bnx2x_set_rx_mode_e2(struct bnx2x *bp,
false); false);
} }
/* /*
* If FCoE Queue configuration has been requested configure the Rx and * If FCoE Queue configuration has been requested configure the Rx and
* internal switching modes for this queue in separate rules. * internal switching modes for this queue in separate rules.
...@@ -2909,7 +2893,6 @@ static int bnx2x_mcast_validate_e2(struct bnx2x *bp, ...@@ -2909,7 +2893,6 @@ static int bnx2x_mcast_validate_e2(struct bnx2x *bp,
default: default:
BNX2X_ERR("Unknown command: %d\n", cmd); BNX2X_ERR("Unknown command: %d\n", cmd);
return -EINVAL; return -EINVAL;
} }
/* Increase the total number of MACs pending to be configured */ /* Increase the total number of MACs pending to be configured */
...@@ -3223,7 +3206,6 @@ static int bnx2x_mcast_validate_e1(struct bnx2x *bp, ...@@ -3223,7 +3206,6 @@ static int bnx2x_mcast_validate_e1(struct bnx2x *bp,
default: default:
BNX2X_ERR("Unknown command: %d\n", cmd); BNX2X_ERR("Unknown command: %d\n", cmd);
return -EINVAL; return -EINVAL;
} }
/* We want to ensure that commands are executed one by one for 57710. /* We want to ensure that commands are executed one by one for 57710.
...@@ -3342,7 +3324,6 @@ static inline int bnx2x_mcast_handle_restore_cmd_e1( ...@@ -3342,7 +3324,6 @@ static inline int bnx2x_mcast_handle_restore_cmd_e1(
return -1; return -1;
} }
static inline int bnx2x_mcast_handle_pending_cmds_e1( static inline int bnx2x_mcast_handle_pending_cmds_e1(
struct bnx2x *bp, struct bnx2x_mcast_ramrod_params *p) struct bnx2x *bp, struct bnx2x_mcast_ramrod_params *p)
{ {
...@@ -3352,7 +3333,6 @@ static inline int bnx2x_mcast_handle_pending_cmds_e1( ...@@ -3352,7 +3333,6 @@ static inline int bnx2x_mcast_handle_pending_cmds_e1(
union bnx2x_mcast_config_data cfg_data = {NULL}; union bnx2x_mcast_config_data cfg_data = {NULL};
int cnt = 0; int cnt = 0;
/* If nothing to be done - return */ /* If nothing to be done - return */
if (list_empty(&o->pending_cmds_head)) if (list_empty(&o->pending_cmds_head))
return 0; return 0;
...@@ -3550,7 +3530,6 @@ static int bnx2x_mcast_setup_e1(struct bnx2x *bp, ...@@ -3550,7 +3530,6 @@ static int bnx2x_mcast_setup_e1(struct bnx2x *bp,
/* Ramrod completion is pending */ /* Ramrod completion is pending */
return 1; return 1;
} }
} }
static int bnx2x_mcast_get_registry_size_exact(struct bnx2x_mcast_obj *o) static int bnx2x_mcast_get_registry_size_exact(struct bnx2x_mcast_obj *o)
...@@ -3848,7 +3827,6 @@ static bool bnx2x_credit_pool_always_true(struct bnx2x_credit_pool_obj *o, ...@@ -3848,7 +3827,6 @@ static bool bnx2x_credit_pool_always_true(struct bnx2x_credit_pool_obj *o,
return true; return true;
} }
static bool bnx2x_credit_pool_get_entry( static bool bnx2x_credit_pool_get_entry(
struct bnx2x_credit_pool_obj *o, struct bnx2x_credit_pool_obj *o,
int *offset) int *offset)
...@@ -4018,7 +3996,6 @@ void bnx2x_init_mac_credit_pool(struct bnx2x *bp, ...@@ -4018,7 +3996,6 @@ void bnx2x_init_mac_credit_pool(struct bnx2x *bp,
/* this should never happen! Block MAC operations. */ /* this should never happen! Block MAC operations. */
bnx2x_init_credit_pool(p, 0, 0); bnx2x_init_credit_pool(p, 0, 0);
} }
} }
} }
...@@ -4215,7 +4192,6 @@ int bnx2x_config_rss(struct bnx2x *bp, ...@@ -4215,7 +4192,6 @@ int bnx2x_config_rss(struct bnx2x *bp,
return rc; return rc;
} }
void bnx2x_init_rss_config_obj(struct bnx2x *bp, void bnx2x_init_rss_config_obj(struct bnx2x *bp,
struct bnx2x_rss_config_obj *rss_obj, struct bnx2x_rss_config_obj *rss_obj,
u8 cl_id, u32 cid, u8 func_id, u8 engine_id, u8 cl_id, u32 cid, u8 func_id, u8 engine_id,
...@@ -4288,7 +4264,6 @@ int bnx2x_queue_state_change(struct bnx2x *bp, ...@@ -4288,7 +4264,6 @@ int bnx2x_queue_state_change(struct bnx2x *bp,
return !!test_bit(pending_bit, pending); return !!test_bit(pending_bit, pending);
} }
static int bnx2x_queue_set_pending(struct bnx2x_queue_sp_obj *obj, static int bnx2x_queue_set_pending(struct bnx2x_queue_sp_obj *obj,
struct bnx2x_queue_state_params *params) struct bnx2x_queue_state_params *params)
{ {
...@@ -4403,7 +4378,6 @@ static void bnx2x_q_fill_init_general_data(struct bnx2x *bp, ...@@ -4403,7 +4378,6 @@ static void bnx2x_q_fill_init_general_data(struct bnx2x *bp,
gen_data->mtu = cpu_to_le16(params->mtu); gen_data->mtu = cpu_to_le16(params->mtu);
gen_data->func_id = o->func_id; gen_data->func_id = o->func_id;
gen_data->cos = params->cos; gen_data->cos = params->cos;
gen_data->traffic_type = gen_data->traffic_type =
...@@ -4530,7 +4504,6 @@ static void bnx2x_q_fill_init_rx_data(struct bnx2x_queue_sp_obj *o, ...@@ -4530,7 +4504,6 @@ static void bnx2x_q_fill_init_rx_data(struct bnx2x_queue_sp_obj *o,
cpu_to_le16(params->silent_removal_value); cpu_to_le16(params->silent_removal_value);
rx_data->silent_vlan_mask = rx_data->silent_vlan_mask =
cpu_to_le16(params->silent_removal_mask); cpu_to_le16(params->silent_removal_mask);
} }
/* initialize the general, tx and rx parts of a queue object */ /* initialize the general, tx and rx parts of a queue object */
...@@ -4706,7 +4679,6 @@ static inline int bnx2x_q_send_setup_tx_only(struct bnx2x *bp, ...@@ -4706,7 +4679,6 @@ static inline int bnx2x_q_send_setup_tx_only(struct bnx2x *bp,
&params->params.tx_only; &params->params.tx_only;
u8 cid_index = tx_only_params->cid_index; u8 cid_index = tx_only_params->cid_index;
if (cid_index >= o->max_cos) { if (cid_index >= o->max_cos) {
BNX2X_ERR("queue[%d]: cid_index (%d) is out of range\n", BNX2X_ERR("queue[%d]: cid_index (%d) is out of range\n",
o->cl_id, cid_index); o->cl_id, cid_index);
...@@ -4816,7 +4788,6 @@ static inline int bnx2x_q_send_update(struct bnx2x *bp, ...@@ -4816,7 +4788,6 @@ static inline int bnx2x_q_send_update(struct bnx2x *bp,
return -EINVAL; return -EINVAL;
} }
/* Clear the ramrod data */ /* Clear the ramrod data */
memset(rdata, 0, sizeof(*rdata)); memset(rdata, 0, sizeof(*rdata));
...@@ -5636,7 +5607,6 @@ static inline void bnx2x_func_reset_cmn(struct bnx2x *bp, ...@@ -5636,7 +5607,6 @@ static inline void bnx2x_func_reset_cmn(struct bnx2x *bp,
drv->reset_hw_cmn(bp); drv->reset_hw_cmn(bp);
} }
static inline int bnx2x_func_hw_reset(struct bnx2x *bp, static inline int bnx2x_func_hw_reset(struct bnx2x *bp,
struct bnx2x_func_state_params *params) struct bnx2x_func_state_params *params)
{ {
......
...@@ -1377,7 +1377,6 @@ void bnx2x_init_vlan_credit_pool(struct bnx2x *bp, ...@@ -1377,7 +1377,6 @@ void bnx2x_init_vlan_credit_pool(struct bnx2x *bp,
struct bnx2x_credit_pool_obj *p, u8 func_id, struct bnx2x_credit_pool_obj *p, u8 func_id,
u8 func_num); u8 func_num);
/****************** RSS CONFIGURATION ****************/ /****************** RSS CONFIGURATION ****************/
void bnx2x_init_rss_config_obj(struct bnx2x *bp, void bnx2x_init_rss_config_obj(struct bnx2x *bp,
struct bnx2x_rss_config_obj *rss_obj, struct bnx2x_rss_config_obj *rss_obj,
......
...@@ -3024,7 +3024,6 @@ void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf, ...@@ -3024,7 +3024,6 @@ void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs_param) int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs_param)
{ {
struct bnx2x *bp = netdev_priv(pci_get_drvdata(dev)); struct bnx2x *bp = netdev_priv(pci_get_drvdata(dev));
DP(BNX2X_MSG_IOV, "bnx2x_sriov_configure called with %d, BNX2X_NR_VIRTFN(bp) was %d\n", DP(BNX2X_MSG_IOV, "bnx2x_sriov_configure called with %d, BNX2X_NR_VIRTFN(bp) was %d\n",
......
...@@ -722,7 +722,6 @@ u32 bnx2x_crc_vf_bulletin(struct bnx2x *bp, ...@@ -722,7 +722,6 @@ u32 bnx2x_crc_vf_bulletin(struct bnx2x *bp,
struct pf_vf_bulletin_content *bulletin); struct pf_vf_bulletin_content *bulletin);
int bnx2x_post_vf_bulletin(struct bnx2x *bp, int vf); int bnx2x_post_vf_bulletin(struct bnx2x *bp, int vf);
enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp); enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp);
/* VF side vfpf channel functions */ /* VF side vfpf channel functions */
......
...@@ -1002,7 +1002,6 @@ static int bnx2x_storm_stats_update(struct bnx2x *bp) ...@@ -1002,7 +1002,6 @@ static int bnx2x_storm_stats_update(struct bnx2x *bp)
qstats->valid_bytes_received_lo = qstats->valid_bytes_received_lo =
qstats->total_bytes_received_lo; qstats->total_bytes_received_lo;
UPDATE_EXTEND_TSTAT(rcv_ucast_pkts, UPDATE_EXTEND_TSTAT(rcv_ucast_pkts,
total_unicast_packets_received); total_unicast_packets_received);
UPDATE_EXTEND_TSTAT(rcv_mcast_pkts, UPDATE_EXTEND_TSTAT(rcv_mcast_pkts,
......
...@@ -40,7 +40,6 @@ struct nig_stats { ...@@ -40,7 +40,6 @@ struct nig_stats {
u32 egress_mac_pkt1_hi; u32 egress_mac_pkt1_hi;
}; };
enum bnx2x_stats_event { enum bnx2x_stats_event {
STATS_EVENT_PMF = 0, STATS_EVENT_PMF = 0,
STATS_EVENT_LINK_UP, STATS_EVENT_LINK_UP,
...@@ -208,7 +207,6 @@ struct bnx2x_eth_stats { ...@@ -208,7 +207,6 @@ struct bnx2x_eth_stats {
u32 eee_tx_lpi; u32 eee_tx_lpi;
}; };
struct bnx2x_eth_q_stats { struct bnx2x_eth_q_stats {
u32 total_unicast_bytes_received_hi; u32 total_unicast_bytes_received_hi;
u32 total_unicast_bytes_received_lo; u32 total_unicast_bytes_received_lo;
...@@ -331,7 +329,6 @@ struct bnx2x_fw_port_stats_old { ...@@ -331,7 +329,6 @@ struct bnx2x_fw_port_stats_old {
u32 mac_discard; u32 mac_discard;
}; };
/**************************************************************************** /****************************************************************************
* Macros * Macros
****************************************************************************/ ****************************************************************************/
...@@ -536,7 +533,6 @@ struct bnx2x_fw_port_stats_old { ...@@ -536,7 +533,6 @@ struct bnx2x_fw_port_stats_old {
SUB_EXTEND_64(qstats->t##_hi, qstats->t##_lo, diff); \ SUB_EXTEND_64(qstats->t##_hi, qstats->t##_lo, diff); \
} while (0) } while (0)
/* forward */ /* forward */
struct bnx2x; struct bnx2x;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment