mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 16:56:59 +07:00
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>
This commit is contained in:
parent
7ccc4f1887
commit
661b8d1b0e
@ -609,6 +609,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
|
||||
*/
|
||||
@ -738,6 +741,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
|
||||
} ____cacheline_aligned_in_smp;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user