From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f53.google.com (mail-pg0-f53.google.com [74.125.83.53]) by dpdk.org (Postfix) with ESMTP id B0E6A9970 for ; Mon, 21 Aug 2017 11:38:14 +0200 (CEST) Received: by mail-pg0-f53.google.com with SMTP id y129so96883928pgy.4 for ; Mon, 21 Aug 2017 02:38:14 -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=p86rFkWyUK8qkzt7liJoUxfkRaeF9Gq+7vFflc067tQ=; b=Gt8fInWWM/BnweXQ8kYW31DeapKXcQC8wv0j0O4ADEl6ogDJQjVhLi4lEXm+H/KSRM hYzoVxt8GUpYb8mj1jHvJ5UPFq7AqQj0f6yLDausDWgGAWvI3mbZS+FCU6dFtfE/QCPJ fI40i/5XYoUUasrFsekhW5mUQunWnlsY1T+4npCxJFB1cqsTVLK7bq8Rv39jZTyzwpia n3C5cZ5/mkzTn6kY4ZqomkEUchXEA1owq3MT9vfB/rmix8uRqAtuBjV003re40u/TxGH KAQNthvw9d5No7+vbqFP/WerJ2SSFLyAQjlvWSWvN3TES0jVewg5bpET9FAJ5wkdnzE7 e1EA== 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=p86rFkWyUK8qkzt7liJoUxfkRaeF9Gq+7vFflc067tQ=; b=k3PFR8IU4M/BbKXKwWOMJK1kqpCSf6p3d7th3SUUQINJKLe2LEiyMYK0kuKdUrWE55 +D/uZVlVY7CdUPaH8jVWWrcCeWRoSbCCo2II+c+D1rhoOyKLOKSy5DAKkN5GFwoyzyZq xqG1NltwZm9jlN5oxzTNKQL8pdDLMY2iK2HvrzeGAu9LclH2jo2sYXhlm7HxCMpFJTsz /3c+6mDinDpozGI2XEY5Mr5NjHqcbFoJXv4QDS/IGxtfshcFWVYQFyo80fWegWXiCsj8 dumC706WfRvc6v/tpBX2dZdG8j6aHi7WLXnHVmBntbJupXWP+T+lJSzrqGDcWM/dI6Pa iQNA== X-Gm-Message-State: AHYfb5h9rXkHMIRSBHs/BYl7kW+uxMpn0TxRPxbC2wSQVAf4cmO2KX/p nU8j6Ma53UeC/uDZEo96Sg== X-Received: by 10.99.97.207 with SMTP id v198mr12790673pgb.346.1503308294061; Mon, 21 Aug 2017 02:38:14 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.38.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:38:13 -0700 (PDT) From: Yuanhan Liu To: Qi Zhang Cc: Jianfeng Tan , Mark Kavanagh , dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:31:13 +0800 Message-Id: <1503307878-16728-59-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/i40e: fix Rx data segment buffer length' has been queued to stable release 17.05.2 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: Mon, 21 Aug 2017 09:38:15 -0000 Hi, FYI, your patch has been queued to stable release 17.05.2 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/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From f338a398860e4190d1519e0c1ed1aa33860c614b 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 351cb94..07b09b2 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -2474,7 +2474,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