UPSTREAM: net: add umem reference in netdev{_rx}_queue

These references to the umem will be used to store information
on what kind of AF_XDP umem that is bound to a queue id, if any.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
(cherry picked from commit 661b8d1b0e3a745e25f05adef2ebd00d830eeea7)
Change-Id: I60a53512bcc2a04f78d59b4608cf2bbcba2e682e
Signed-off-by: zhaoyuenan <amktiao030215@gmail.com>
This commit is contained in:
Magnus Karlsson authored and Michael Bestas committed 2025-12-04 00:28:29 +02:00
1 parent 50464f8488
commit 6f8597e523
1 file changed
+6
+6
View File
@@ -599,6 +599,9 @@ struct netdev_queue {
/* Subordinate device that the queue has been assigned to */
struct net_device *sb_dev;
#ifdef CONFIG_XDP_SOCKETS
struct xdp_umem *umem;
#endif
/*
* write-mostly part
*/
@@ -736,6 +739,9 @@ struct netdev_rx_queue {
struct kobject kobj;
struct net_device *dev;
struct xdp_rxq_info xdp_rxq;
#ifdef CONFIG_XDP_SOCKETS
struct xdp_umem *umem;
#endif
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);