Skip to content

Commit

Permalink
bnx2x: remove rx_pkt/rx_calls
Browse files Browse the repository at this point in the history
These fields are updated but never read.
Remove the overhead.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Dec 9, 2015
1 parent 4d6acb6 commit 5abe255
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,6 @@ struct bnx2x_fastpath {
/* The last maximal completed SGE */
u16 last_max_sge;
__le16 *rx_cons_sb;
unsigned long rx_pkt,
rx_calls;

/* TPA related */
struct bnx2x_agg_info *tpa_info;
Expand Down
4 changes: 0 additions & 4 deletions drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,6 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)
bnx2x_update_rx_prod(bp, fp, bd_prod_fw, sw_comp_prod,
fp->rx_sge_prod);

fp->rx_pkt += rx_pkt;
fp->rx_calls++;

return rx_pkt;
}

Expand Down Expand Up @@ -4433,7 +4430,6 @@ static int bnx2x_alloc_rx_bds(struct bnx2x_fastpath *fp,
/* Limit the CQE producer by the CQE ring size */
fp->rx_comp_prod = min_t(u16, NUM_RCQ_RINGS*RCQ_DESC_CNT,
cqe_ring_prod);
fp->rx_pkt = fp->rx_calls = 0;

bnx2x_fp_stats(bp, fp)->eth_q_stats.rx_skb_alloc_failed += failure_cnt;

Expand Down

0 comments on commit 5abe255

Please sign in to comment.