netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Magnus Karlsson <magnus.karlsson@intel.com>
To: magnus.karlsson@intel.com, bjorn.topel@intel.com, ast@kernel.org,
	daniel@iogearbox.net, netdev@vger.kernel.org
Subject: [PATCH bpf-next 1/2] net: add umem reference in netdev{_rx}_queue
Date: Tue, 18 Sep 2018 12:12:17 +0200	[thread overview]
Message-ID: <1537265538-5882-2-git-send-email-magnus.karlsson@intel.com> (raw)
In-Reply-To: <1537265538-5882-1-git-send-email-magnus.karlsson@intel.com>

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>
---
 include/linux/netdevice.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index e2b3bd7..9915d47 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -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;
 
 /*
-- 
2.7.4

  reply	other threads:[~2018-09-18 15:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-18 10:12 [PATCH bpf-next 0/2] xsk: fix bug when trying to use both copy and zero-copy mode Magnus Karlsson
2018-09-18 10:12 ` Magnus Karlsson [this message]
2018-09-18 10:12 ` [PATCH bpf-next 2/2] xsk: fix bug when trying to use both copy and zero-copy on one queue id Magnus Karlsson
2018-09-18 17:22   ` Y Song
2018-09-19  1:55     ` Jakub Kicinski
2018-09-19  7:18       ` Magnus Karlsson
2018-09-20  9:17         ` Magnus Karlsson
2018-09-20 14:41           ` Jakub Kicinski
2018-09-24  8:37             ` Magnus Karlsson
2018-09-19  7:14     ` Magnus Karlsson
2018-09-20  4:47       ` Y Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1537265538-5882-2-git-send-email-magnus.karlsson@intel.com \
    --to=magnus.karlsson@intel.com \
    --cc=ast@kernel.org \
    --cc=bjorn.topel@intel.com \
    --cc=daniel@iogearbox.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).