Message ID | 20241203173733.3181246-6-aleksander.lobakin@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 9e25dd9d65d27aa94220831fe6453d935988801c |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | xdp: a fistful of generic changes pt. I | expand |
diff --git a/net/core/xdp.c b/net/core/xdp.c index 885a2a664bce..de1e9cb78718 100644 --- a/net/core/xdp.c +++ b/net/core/xdp.c @@ -358,6 +358,9 @@ int xdp_rxq_info_reg_mem_model(struct xdp_rxq_info *xdp_rxq, if (IS_ERR(xdp_alloc)) return PTR_ERR(xdp_alloc); + if (type == MEM_TYPE_XSK_BUFF_POOL && allocator) + xsk_pool_set_rxq_info(allocator, xdp_rxq); + if (trace_mem_connect_enabled() && xdp_alloc) trace_mem_connect(xdp_alloc, xdp_rxq); return 0;