From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrei Vagin 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 Message-ID: <20180810010428.6096-1-avagin@openvz.org> Cc: netdev@vger.kernel.org, Andrei Vagin To: "David S. Miller" Return-path: Received: from mail-ed1-f68.google.com ([209.85.208.68]:38618 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbeHJDcB (ORCPT ); Thu, 9 Aug 2018 23:32:01 -0400 Received: by mail-ed1-f68.google.com with SMTP id t2-v6so3877283edr.5 for ; Thu, 09 Aug 2018 18:04:34 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: From: Andrei Vagin __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 --- 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