xsk: add id to umem

This commit adds an id to the umem structure. The id uniquely
identifies a umem instance, and will be exposed to user-space via the
socket monitoring interface.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
此提交包含在:
Björn Töpel
2019-01-24 19:59:38 +01:00
提交者 Daniel Borkmann
父節點 1d0dc06930
當前提交 50e74c0131
共有 2 個檔案被更改,包括 14 行新增0 行删除

查看文件

@@ -42,6 +42,7 @@ struct xdp_umem {
struct work_struct work;
struct page **pgs;
u32 npgs;
int id;
struct net_device *dev;
struct xdp_umem_fq_reuse *fq_reuse;
u16 queue_id;