From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CD184A046B; Thu, 9 Jan 2020 16:47:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A073E1DED8; Thu, 9 Jan 2020 16:47:04 +0100 (CET) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by dpdk.org (Postfix) with ESMTP id 08C131DE8F for ; Thu, 9 Jan 2020 16:47:03 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id E6661A04F9; Thu, 9 Jan 2020 16:47:02 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 09 Jan 2020 15:47:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: vhost/virtio X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eupm90@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 383] dpdk virtio_user lack of notifications make vhost_net+napi stops tx buffers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D383 Bug ID: 383 Summary: dpdk virtio_user lack of notifications make vhost_net+napi stops tx buffers Product: DPDK Version: unspecified Hardware: All OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: vhost/virtio Assignee: dev@dpdk.org Reporter: eupm90@gmail.com Target Milestone: --- Using the current testpmd vhost_user as: ./app/testpmd -l 6,7,8 --vdev=3D'net_vhost1,iface=3D/tmp/vhost-user1' --vdev=3D'net_vhost2,iface=3D/tmp/vhost-user2' -- -a -i --rxq=3D1 --txq=3D1= --txd=3D1024 --forward-mode=3Drxonly And starting qemu using packed=3Don on the interface: -netdev vhost-user,chardev=3Dcharnet1,id=3Dhostnet1 -device virtio-net-pci,rx_queue_size=3D256,...,packed=3Don And start to tx in the guest using: ./dpdk/build/app/testpmd -l 1,2 --vdev=3Deth_af_packet0,iface=3Deth0 -- \ --forward-mode=3Dtxonly --txq=3D1 --txd=3D256 --auto-start --txpkts 150= 0 \ --stats-period 1 After first burst of packets (512 or a little more), sendto() will start to return EBUSY. kernel NAPI is refusing to send more packets to virtio_net de= vice until it free old skbs. However, virtio_net driver is unable to free old buffers since host does not return them in `vhost_flush_dequeue_packed` until shadow queue is = full except for MAX_PKT_BURST (32) packets. Sometimes we are lucky and reach this point, or packets are small enough to fill the queue and flush, but if the packets and the virtqueue are big enou= gh, we will not be able to tx anymore. --=20 You are receiving this mail because: You are the assignee for the bug.=