From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 0FCF38E9E for ; Mon, 23 Nov 2015 15:45:23 +0100 (CET) Received: by wmec201 with SMTP id c201so108219980wme.1 for ; Mon, 23 Nov 2015 06:45:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lzNL9Jmr1lJm6cKvCl0BgA8KcsxCAsPggqh3GEBJw0s=; b=AfWMDjjYHDT7xFI0VI8q8Rlett8Aol1hqDKkCgjYzSqOpX/qg5dEDKOrOI67Hkyil4 4DDggQ6Z5z1bnrTxb/JmsnqgR6L60ehdBDawQ7dBrUrlhDuWmNk5J0ZoC7830uB5pmCk 6CO29ccLUWQLA7zPDxOXq3UNMnOOA6RUNdIwdPLNew/DVPCM9jdSyhmLRI8CZgSPKDCq NizQL3iHVHnspwyoxfD7rNnqjmjFbgj32U4HSHL8007zivKswvxGFJHlO008fpLxMnhd r+v8OeifX6lkSu+ntgiimciJ3z3gGcgN41Y+gHcwHj3bLto4/EvAtD/A/N6ZC3A5prOf 9SFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lzNL9Jmr1lJm6cKvCl0BgA8KcsxCAsPggqh3GEBJw0s=; b=INN6ZaePRyQmflxRMpZ2BhL1xk3MP6IFFj/FsKnPve0n5j1Ztt4p4Mp/6BEIlP9z4q LPwqX48O4FTkV47yXYjkmg+nHtxdgbLDXgEoHZ6VFSbMvCwqc8DZLm4XcFTjDgbqAKIb Yl3O0o5FOfhJJCTmb7QIWDddeDIg7Wmll2rkJ9TgcSun70qOZTCGlU7vUFChmjSwmqsz /TSRn4ZixQCDgodIerg+oHxUZePke/FyMo7pLrIdleuIdtBd9X8a477azNBneflfbB75 0Rny6CcObpeY5OvIy+6Ejkqw/gWUhN5fqQcMR6uEXo0Npg9MZQg1G4aH10RerEMZM7sO 4Wqw== X-Gm-Message-State: ALoCoQmsrcuhhZbea7+0AkZ7bHHZJKbyCBYTvMKss+i3YXkWZ/PY2UAxTbP3hukiQWW4lJvBCUDa X-Received: by 10.28.63.22 with SMTP id m22mr17581279wma.58.1448289922917; Mon, 23 Nov 2015 06:45:22 -0800 (PST) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id t64sm13611959wmf.23.2015.11.23.06.45.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Nov 2015 06:45:22 -0800 (PST) From: Adrien Mazarguil To: dev@dpdk.org Date: Mon, 23 Nov 2015 15:44:38 +0100 Message-Id: <1448289889-9590-4-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1448289889-9590-1-git-send-email-adrien.mazarguil@6wind.com> References: <1448289889-9590-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 03/14] mlx4: fix TX for scattered mbufs with too many segments 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, 23 Nov 2015 14:45:23 -0000 Buffers with too many segments are linearized to overcome MLX4_PMD_SGE_WR_N, unfortunately the last segment is never sent. Fixes: be11b35817e0 ("mlx4: move scattered Tx processing to helper function") Signed-off-by: Jesper Wramberg Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index f46a09e..75543bb 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -1195,6 +1195,8 @@ tx_burst_sg(struct txq *txq, unsigned int segs, struct txq_elt *elt, sge->length = size; sge->lkey = txq->mr_linear->lkey; sent_size += size; + /* Include last segment. */ + segs++; } return (struct tx_burst_sg_ret){ .length = sent_size, -- 2.1.0