From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] [PATCH net-next] tun: fix multiqueue rx Date: Sat, 17 Nov 2018 21:11:26 -0800 (PST) Message-ID: <20181117.211126.1736118365709071572.davem@davemloft.net> References: <20181116041016.39852-1-matthew.cover@stackpath.com> <20181116070015.1759-1-matthew.cover@stackpath.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jasowang@redhat.com, brouer@redhat.com, mst@redhat.com, edumazet@google.com, sd@queasysnail.net, netdev@vger.kernel.org, matthew.cover@stackpath.com To: werekraken@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:41396 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbeKRPae (ORCPT ); Sun, 18 Nov 2018 10:30:34 -0500 In-Reply-To: <20181116070015.1759-1-matthew.cover@stackpath.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Matthew Cover Date: Fri, 16 Nov 2018 00:00:15 -0700 > When writing packets to a descriptor associated with a combined queue, the > packets should end up on that queue. > > Before this change all packets written to any descriptor associated with a > tap interface end up on rx-0, even when the descriptor is associated with a > different queue. > > The rx traffic can be generated by either of the following. > 1. a simple tap program which spins up multiple queues and writes packets > to each of the file descriptors > 2. tx from a qemu vm with a tap multiqueue netdev > > The queue for rx traffic can be observed by either of the following (done > on the hypervisor in the qemu case). > 1. a simple netmap program which opens and reads from per-queue > descriptors > 2. configuring RPS and doing per-cpu captures with rxtxcpu > > Alternatively, if you printk() the return value of skb_get_rx_queue() just > before each instance of netif_receive_skb() in tun.c, you will get 65535 > for every skb. > > Calling skb_record_rx_queue() to set the rx queue to the queue_index fixes > the association between descriptor and rx queue. > > Signed-off-by: Matthew Cover If this is intended to target -stable as well, which some responses seem to indicate, you need to respin and submit this against 'net'. Thanks.