From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 598C01C01 for ; Mon, 30 Apr 2018 16:54:51 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id g21-v6so8321962wrb.8 for ; Mon, 30 Apr 2018 07:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=b9wLN2rbicuO9uKikg9uZETElV3pa7cHn8HMgWIqwh4=; b=PfzNG3BjnIoL4B3dp9avL0CX4PghmVb0bHiBek4UDgaNMBlmGGa7Nh6gmC2lNoYk3v CbPLZgzbEBwgqfv3YWJou3uDlKjgAYpAIolP+pxln1Act9grSXwlfVTa9U2XjIYOnuY0 U+Nk2wUnTGmsowvko9F1NSR3u5NLgzTko0ZIlfZ9CkhAqJhRpf/6Caf7T+YUtn5OVOE5 vpVn/8xcLUDJNpmCb27VroWR0B6CD0ZxUiDmDJVVILbT2q+nzoTmxJyaBF4DPp/ERaQh XANRvX4GLQfPW1UOyijwGpZVEGWzVSpFJZvoPniLrYIJIEgQ4mXFafeffpeOWDl1ok1U v6vA== 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=b9wLN2rbicuO9uKikg9uZETElV3pa7cHn8HMgWIqwh4=; b=D44ZgbChhz2HiMoiiYVF3WfNiWKTHccPm1uilufotYJyb3XncWC/wmK3dWSBzXo3K1 Di9Wtg+dicERPV4I3An1fXM3rs252YNDgww5XSQnK1sdCBQfOlojRea1wrBChnI/QYLL G3Lu6i0i/eUH8fk1OJYNDpBnP8kp3owmUdEHrSy6sg7UMNFgdCllfkCOqFeKHfsGqu/f eZKgErl98G8zlmAz3qWkt+BI0gCpYA6YZaUFFkm3hxE5wX95+tbHh8kI9X9YQEGWxY9o 1aPAxHBREb/E59rWc/JX1JIXNT8acET4VSDMBQTPkZUgdSfr38Msr1htfMj8WSCVkNeP PNOA== X-Gm-Message-State: ALQs6tCXp4K3WSAmYIBK1W2yFRPtBPVP88bjm1/lLhZ2SEJr5MLnqjmk 2q2fg8hF57qa63LjAMiopY4= X-Google-Smtp-Source: AB8JxZrnVpD1VBdS+HSsSk3QKa7P49aRGWTuaI5q6PZX31AdarKQppQFcBeNi8dweRL/Z1zUcsBfzg== X-Received: by 2002:adf:ad61:: with SMTP id p88-v6mr8605689wrc.24.1525100091108; Mon, 30 Apr 2018 07:54:51 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id v111-v6sm7896748wrb.30.2018.04.30.07.54.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:54:50 -0700 (PDT) From: luca.boccassi@gmail.com To: Ajit Khaparde Cc: dpdk stable Date: Mon, 30 Apr 2018 15:53:49 +0100 Message-Id: <20180430145402.23057-30-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430145402.23057-1-luca.boccassi@gmail.com> References: <20180430144223.18657-85-luca.boccassi@gmail.com> <20180430145402.23057-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bnxt: fix mbuf data offset initialization' has been queued to stable release 18.02.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, 30 Apr 2018 14:54:51 -0000 Hi, FYI, your patch has been queued to stable release 18.02.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 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From b8fb4861efc31670d77b585313b9daac56d72934 Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Fri, 20 Apr 2018 07:22:02 -0700 Subject: [PATCH] net/bnxt: fix mbuf data offset initialization [ upstream commit c4fed4ff4fb20dc43036c6874c00846750990704 ] Initialize mbuf->data_off to RTE_PKTMBUF_HEADROOM after allocation. Without this, it might be possible that the DMA address provided to the HW may not be in sync to what is indicated to the application in bnxt_rx_pkt. Fixes: 2eb53b134aae ("net/bnxt: add initial Rx code") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_rxr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c index 8f7ebf8c7..829a95f9f 100644 --- a/drivers/net/bnxt/bnxt_rxr.c +++ b/drivers/net/bnxt/bnxt_rxr.c @@ -74,6 +74,7 @@ static inline int bnxt_alloc_rx_data(struct bnxt_rx_queue *rxq, } rx_buf->mbuf = mbuf; + mbuf->data_off = RTE_PKTMBUF_HEADROOM; rxbd->addr = rte_cpu_to_le_64(rte_mbuf_data_iova_default(mbuf)); @@ -101,6 +102,7 @@ static inline int bnxt_alloc_ag_data(struct bnxt_rx_queue *rxq, rx_buf->mbuf = mbuf; + mbuf->data_off = RTE_PKTMBUF_HEADROOM; rxbd->addr = rte_cpu_to_le_64(rte_mbuf_data_iova_default(mbuf)); -- 2.14.2