From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from alln-iport-6.cisco.com (alln-iport-6.cisco.com [173.37.142.93]) by dpdk.org (Postfix) with ESMTP id 7557858F1 for ; Mon, 22 Feb 2016 02:45:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1022; q=dns/txt; s=iport; t=1456105545; x=1457315145; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=YKlpttsnsa6su1MdxQcewkTQJboCMBv5lhWpH2m07Bs=; b=S2BgnuQjRvKNMTE/5snjG+a2i3UvXabKu9ZG5RYiR6xJ3OyEBZlJ+E8g 7siQzmCv+V17ec/FHAfKXdNPN4CEh5REVL460aUg+1aSeRVYRp+G7Ob73 Hdx5m6CzbGnRFvyEQaqXQlC1AaLHX7l0lqOn8kMb2RAFdcwyQk0TsYeeQ A=; X-IronPort-AV: E=Sophos;i="5.22,483,1449532800"; d="scan'208";a="240896729" Received: from alln-core-12.cisco.com ([173.36.13.134]) by alln-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Feb 2016 01:45:44 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by alln-core-12.cisco.com (8.14.5/8.14.5) with ESMTP id u1M1jirF017308; Mon, 22 Feb 2016 01:45:44 GMT Received: by cisco.com (Postfix, from userid 392789) id 580EC3FAAD93; Sun, 21 Feb 2016 17:45:44 -0800 (PST) From: johndale To: dev@dpdk.org Date: Sun, 21 Feb 2016 17:45:16 -0800 Message-Id: <1456105516-520-1-git-send-email-johndale@cisco.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1456103190-1824-1-git-send-email-johndale@cisco.com> References: <1456103190-1824-1-git-send-email-johndale@cisco.com> Cc: johndale Subject: [dpdk-dev] [PATCH v3] enic: fix last packet being not sent bug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 01:45:45 -0000 The last packet of the tx burst function array was not being emitted until the subsequent call. The nic descriptor index was being set to the current tx descriptr instead of one past the the descriptor as required by nic. Signed-off-by: johndale --- Forgot sign-off, annotated message in wrong spot. drivers/net/enic/base/enic_vnic_wq.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/enic/base/enic_vnic_wq.h b/drivers/net/enic/base/enic_vnic_wq.h index e3ea574..b019109 100644 --- a/drivers/net/enic/base/enic_vnic_wq.h +++ b/drivers/net/enic/base/enic_vnic_wq.h @@ -69,11 +69,11 @@ static inline void enic_vnic_post_wq(struct vnic_wq *wq, buf->wr_id = wrid; buf = buf->next; - if (cq_entry) - enic_vnic_post_wq_index(wq); + wq->ring.desc_avail -= desc_skip_cnt; wq->to_use = buf; - wq->ring.desc_avail -= desc_skip_cnt; + if (cq_entry) + enic_vnic_post_wq_index(wq); } #endif /* _ENIC_VNIC_WQ_H_ */ -- 2.7.0