Lines Matching full:du
51 struct xdp_diag_umem du = {}; in xsk_diag_put_umem() local
57 du.id = umem->id; in xsk_diag_put_umem()
58 du.size = umem->size; in xsk_diag_put_umem()
59 du.num_pages = umem->npgs; in xsk_diag_put_umem()
60 du.chunk_size = umem->chunk_size; in xsk_diag_put_umem()
61 du.headroom = umem->headroom; in xsk_diag_put_umem()
62 du.ifindex = (pool && pool->netdev) ? pool->netdev->ifindex : 0; in xsk_diag_put_umem()
63 du.queue_id = pool ? pool->queue_id : 0; in xsk_diag_put_umem()
64 du.flags = 0; in xsk_diag_put_umem()
66 du.flags |= XDP_DU_F_ZEROCOPY; in xsk_diag_put_umem()
67 du.refs = refcount_read(&umem->users); in xsk_diag_put_umem()
69 err = nla_put(nlskb, XDP_DIAG_UMEM, sizeof(du), &du); in xsk_diag_put_umem()
81 struct xdp_diag_stats du = {}; in xsk_diag_put_stats() local
83 du.n_rx_dropped = xs->rx_dropped; in xsk_diag_put_stats()
84 du.n_rx_invalid = xskq_nb_invalid_descs(xs->rx); in xsk_diag_put_stats()
85 du.n_rx_full = xs->rx_queue_full; in xsk_diag_put_stats()
86 du.n_fill_ring_empty = xs->pool ? xskq_nb_queue_empty_descs(xs->pool->fq) : 0; in xsk_diag_put_stats()
87 du.n_tx_invalid = xskq_nb_invalid_descs(xs->tx); in xsk_diag_put_stats()
88 du.n_tx_ring_empty = xskq_nb_queue_empty_descs(xs->tx); in xsk_diag_put_stats()
89 return nla_put(nlskb, XDP_DIAG_STATS, sizeof(du), &du); in xsk_diag_put_stats()