From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] virtio-net: add missing virtqueue kick when flushing packets Date: Fri, 13 Apr 2018 11:27:12 -0400 (EDT) Message-ID: <20180413.112712.74483562688980325.davem@davemloft.net> References: <1523602705-5155-1-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mst@redhat.com, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ktaka@nii.ac.jp, daniel@iogearbox.net To: jasowang@redhat.com Return-path: In-Reply-To: <1523602705-5155-1-git-send-email-jasowang@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Jason Wang Date: Fri, 13 Apr 2018 14:58:25 +0800 > We tends to batch submitting packets during XDP_TX. This requires to > kick virtqueue after a batch, we tried to do it through > xdp_do_flush_map() which only makes sense for devmap not XDP_TX. So > explicitly kick the virtqueue in this case. > > Reported-by: Kimitoshi Takahashi > Tested-by: Kimitoshi Takahashi > Cc: Daniel Borkmann > Fixes: 186b3c998c50 ("virtio-net: support XDP_REDIRECT") > Signed-off-by: Jason Wang Applied and queued up for -stable, thanks Jason.