xsk: Add new statistics
[linux-2.6-microblaze.git] / net / xdp / xsk_buff_pool.c
index 540ed75..89cf355 100644 (file)
@@ -235,6 +235,7 @@ static struct xdp_buff_xsk *__xp_alloc(struct xsk_buff_pool *pool)
 
        for (;;) {
                if (!xskq_cons_peek_addr_unchecked(pool->fq, &addr)) {
+                       pool->fq->queue_empty_descs++;
                        xp_release(xskb);
                        return NULL;
                }