sfc: add extra RX drop counters for nodesc_trunc and noskb_drop
Added a counter rx_noskb_drop for failure to allocate an skb. Summed the per-channel rx_nodesc_trunc counters earlier so that they can be included in rx_dropped. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
d762d03849
commit
e4d112e4f9
@@ -777,6 +777,7 @@ struct vfdi_status;
|
||||
* interrupt has occurred.
|
||||
* @stats_lock: Statistics update lock. Must be held when calling
|
||||
* efx_nic_type::{update,start,stop}_stats.
|
||||
* @n_rx_noskb_drops: Count of RX packets dropped due to failure to allocate an skb
|
||||
*
|
||||
* This is stored in the private area of the &struct net_device.
|
||||
*/
|
||||
@@ -930,6 +931,7 @@ struct efx_nic {
|
||||
spinlock_t biu_lock;
|
||||
int last_irq_cpu;
|
||||
spinlock_t stats_lock;
|
||||
atomic_t n_rx_noskb_drops;
|
||||
};
|
||||
|
||||
static inline int efx_dev_registered(struct efx_nic *efx)
|
||||
|
Reference in New Issue
Block a user