From: Andrei Vagin <avagin@openvz.org>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Andrei Vagin <avagin@gmail.com>
Subject: [PATCH net-next] net: add an empty __netif_set_xps_queue() stab in the !CONFIG_XPS case
Date: Thu, 9 Aug 2018 18:04:28 -0700 [thread overview]
Message-ID: <20180810010428.6096-1-avagin@openvz.org> (raw)
From: Andrei Vagin <avagin@gmail.com>
__netif_set_xps_queue() is used in drivers/net/virtio_net.c.
Fixes: 4d99f6602cb5 ("net: allow to call netif_reset_xps_queues() under cpus_read_lock")
Signed-off-by: Andrei Vagin <avagin@gmail.com>
---
include/linux/netdevice.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 282e2e95ad5b..a5e4b0a18f90 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -3406,6 +3406,13 @@ static inline int netif_attrmask_next_and(int n, const unsigned long *src1p,
return n + 1;
}
#else
+static inline int __netif_set_xps_queue(struct net_device *dev,
+ const unsigned long *mask,
+ u16 index, bool is_rxqs_map)
+{
+ return 0;
+}
+
static inline int netif_set_xps_queue(struct net_device *dev,
const struct cpumask *mask,
u16 index)
--
2.17.1
next reply other threads:[~2018-08-10 3:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-10 1:04 Andrei Vagin [this message]
2018-08-12 17:25 ` [PATCH net-next] net: add an empty __netif_set_xps_queue() stab in the !CONFIG_XPS case kbuild test robot
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=20180810010428.6096-1-avagin@openvz.org \
--to=avagin@openvz.org \
--cc=avagin@gmail.com \
--cc=davem@davemloft.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