]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: remove rx_pkt/rx_calls
authorEric Dumazet <edumazet@google.com>
Tue, 8 Dec 2015 18:28:30 +0000 (10:28 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 02:28:37 +0000 (19:28 -0700)
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>
Orabug: 23718192
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

index 0b214b5d944a20bc819c29f7d774b528ced5a885..cae0956186ce9863df8bcaf5368eb222d7c98da5 100644 (file)
@@ -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;
index c66b0b0c880ea91edeb93f2b7055c9eaea29d705..bed26e47466f50879c32228acf0b2be3d667e266 100644 (file)
@@ -1124,9 +1124,6 @@ next_cqe:
        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;
 }
 
@@ -4435,7 +4432,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;