Commit b5418e13 authored by Jose Abreu's avatar Jose Abreu Committed by David S. Miller

net: stmmac: Add a counter for Split Header packets

Add a counter that increments each time a packet with split header is
received.
Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 67afd6d1
...@@ -75,6 +75,7 @@ struct stmmac_extra_stats { ...@@ -75,6 +75,7 @@ struct stmmac_extra_stats {
unsigned long rx_missed_cntr; unsigned long rx_missed_cntr;
unsigned long rx_overflow_cntr; unsigned long rx_overflow_cntr;
unsigned long rx_vlan; unsigned long rx_vlan;
unsigned long rx_split_hdr_pkt_n;
/* Tx/Rx IRQ error info */ /* Tx/Rx IRQ error info */
unsigned long tx_undeflow_irq; unsigned long tx_undeflow_irq;
unsigned long tx_process_stopped_irq; unsigned long tx_process_stopped_irq;
......
...@@ -65,6 +65,7 @@ static const struct stmmac_stats stmmac_gstrings_stats[] = { ...@@ -65,6 +65,7 @@ static const struct stmmac_stats stmmac_gstrings_stats[] = {
STMMAC_STAT(rx_missed_cntr), STMMAC_STAT(rx_missed_cntr),
STMMAC_STAT(rx_overflow_cntr), STMMAC_STAT(rx_overflow_cntr),
STMMAC_STAT(rx_vlan), STMMAC_STAT(rx_vlan),
STMMAC_STAT(rx_split_hdr_pkt_n),
/* Tx/Rx IRQ error info */ /* Tx/Rx IRQ error info */
STMMAC_STAT(tx_undeflow_irq), STMMAC_STAT(tx_undeflow_irq),
STMMAC_STAT(tx_process_stopped_irq), STMMAC_STAT(tx_process_stopped_irq),
......
...@@ -3503,6 +3503,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue) ...@@ -3503,6 +3503,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue)
len = hlen; len = hlen;
prefetch(page_address(buf->sec_page)); prefetch(page_address(buf->sec_page));
priv->xstats.rx_split_hdr_pkt_n++;
} }
skb = napi_alloc_skb(&ch->rx_napi, len); skb = napi_alloc_skb(&ch->rx_napi, len);
......
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