From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f52.google.com (mail-pg0-f52.google.com [74.125.83.52]) by dpdk.org (Postfix) with ESMTP id 522D42B9D for ; Wed, 9 Aug 2017 05:47:45 +0200 (CEST) Received: by mail-pg0-f52.google.com with SMTP id l64so22719791pge.5 for ; Tue, 08 Aug 2017 20:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hUTdyf0teFFsKvOkJQlcs92AuH5wjQtgiw+XMSb7kwY=; b=PXD/jVJXZ1gvP0TOX8VJG0Rvzre5YjuTK0z1jo0frQSjJil5aXFVWebleDT0/RF5tq geaqwBnQ10cPE8lUFKbKgfnpLrGEIq24Bfdw5CH9GJNk4UOFbNxiEUx/LEsYRGQ8ru6X ks9Tw7luVf4Pfxdm5pBL6unmW14UXX0V2RJJjRHUv/e/fqsKeU+kCoU2YHAx7ftMtXJ/ qkYk8zVkRj5KyikPgKTQ1IZBGsTo3NJR2Sqew8qA0GABTI46x9gOHLRlWuXJG++pkGAa peiLSf/ARCa41cI2Snw/BooTiMUpUcqjRdVEaamqqH3SoAJeYh3gTJ3yez5Us4wupbLe B5PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hUTdyf0teFFsKvOkJQlcs92AuH5wjQtgiw+XMSb7kwY=; b=Zy0l5VMyruIdfpodvvAaaBAWnE5KzUkZWcFOI9GuMFmDRoPt5QeQ37Q0irG/MkrUyQ Wnd5PwGiEThUww9YLTy3pd2zNjcG+NXjCRn+YdPf/A3RnZMGZDpyKXlPJsL2plT8AhY0 BEsuyRPnV7G9VJP4UIzstGWw8CSBxhf8GTu49QBvhVLSmDHABCTCUEiKDL1U4bMo97Fs QcilyzBPPlqVh/+RVTRWdS3DrKPd11LGqD7GDG8aUa/Py9hmfH5g798Uogknz1h626Sl xqGsIxpYu5cj3isBMf1AqsjdqWun2o1LzWL0tW8SvgvDn8W6oCc76XQ12F8cV/h57+de eLag== X-Gm-Message-State: AHYfb5gj3fP1nkl69VdEs/loqB9rYNKLN4XKoRPJ0G47gdxcc5S5Og4t VqglFc0zVd1nOeqP X-Received: by 10.98.59.90 with SMTP id i87mr6865645pfa.300.1502250464478; Tue, 08 Aug 2017 20:47:44 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id q3sm5093921pfl.89.2017.08.08.20.47.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 20:47:43 -0700 (PDT) From: Yuanhan Liu To: Qi Zhang Cc: Jianfeng Tan , Mark Kavanagh , dpdk stable , Yuanhan Liu Date: Wed, 9 Aug 2017 11:43:57 +0800 Message-Id: <1502250240-6599-15-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502250240-6599-1-git-send-email-yliu@fridaylinux.org> References: <1502250240-6599-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/i40e: fix Rx data segment buffer length' has been queued to LTS release 16.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Aug 2017 03:47:45 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 08/11/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 8426b5db0a4afaa7ed8d1b4b961789067cad885f Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Wed, 2 Aug 2017 15:22:09 +0800 Subject: [PATCH] net/i40e: fix Rx data segment buffer length [ upstream commit 1ff8e79591a6cc99c475a50e87adb30d9b20569a ] Buffer length be configured for each data segment should not exceed the requested value, or device may fill data that exceed the boundary of memory that be reserved. Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Jianfeng Tan Signed-off-by: Qi Zhang Reviewed-by: Mark Kavanagh Tested-by: Mark Kavanagh --- drivers/net/i40e/i40e_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 602e40c..ba33b2a 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -2324,7 +2324,7 @@ i40e_rx_queue_config(struct i40e_rx_queue *rxq) case I40E_FLAG_HEADER_SPLIT_DISABLED: default: rxq->rx_hdr_len = 0; - rxq->rx_buf_len = RTE_ALIGN(buf_size, + rxq->rx_buf_len = RTE_ALIGN_FLOOR(buf_size, (1 << I40E_RXQ_CTX_DBUFF_SHIFT)); rxq->hs_mode = i40e_header_split_none; break; -- 2.7.4