Commit 5abe2558 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

bnx2x: remove rx_pkt/rx_calls

These fields are updated but never read.
Remove the overhead.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d6acb62
...@@ -590,8 +590,6 @@ struct bnx2x_fastpath { ...@@ -590,8 +590,6 @@ struct bnx2x_fastpath {
/* The last maximal completed SGE */ /* The last maximal completed SGE */
u16 last_max_sge; u16 last_max_sge;
__le16 *rx_cons_sb; __le16 *rx_cons_sb;
unsigned long rx_pkt,
rx_calls;
/* TPA related */ /* TPA related */
struct bnx2x_agg_info *tpa_info; struct bnx2x_agg_info *tpa_info;
......
...@@ -1122,9 +1122,6 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) ...@@ -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, bnx2x_update_rx_prod(bp, fp, bd_prod_fw, sw_comp_prod,
fp->rx_sge_prod); fp->rx_sge_prod);
fp->rx_pkt += rx_pkt;
fp->rx_calls++;
return rx_pkt; return rx_pkt;
} }
...@@ -4433,7 +4430,6 @@ static int bnx2x_alloc_rx_bds(struct bnx2x_fastpath *fp, ...@@ -4433,7 +4430,6 @@ static int bnx2x_alloc_rx_bds(struct bnx2x_fastpath *fp,
/* Limit the CQE producer by the CQE ring size */ /* Limit the CQE producer by the CQE ring size */
fp->rx_comp_prod = min_t(u16, NUM_RCQ_RINGS*RCQ_DESC_CNT, fp->rx_comp_prod = min_t(u16, NUM_RCQ_RINGS*RCQ_DESC_CNT,
cqe_ring_prod); cqe_ring_prod);
fp->rx_pkt = fp->rx_calls = 0;
bnx2x_fp_stats(bp, fp)->eth_q_stats.rx_skb_alloc_failed += failure_cnt; bnx2x_fp_stats(bp, fp)->eth_q_stats.rx_skb_alloc_failed += failure_cnt;
......
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