From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id 47E862BF2 for ; Wed, 23 May 2018 14:10:42 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id o78-v6so8623079wmg.0 for ; Wed, 23 May 2018 05:10:42 -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=+IUYMJWSSy923g/cZlUHUX4FvaHjgqw+ahgCOVgmiMI=; b=BnSz6l8BDcQnzl96C+9teu7USPwE5YlbCtsd6yS1g0oae+8L/1t32To1A9pPDkipG2 0z0EGQryzd46AtNfutThU/+LydN8XbKMAW7yfwza9fLbJGZTA0Jdr2xl29cwHv0Ieywi 4d1Gsn9P+dIv5Lv1wHW5AjoLzWqAyJe7bBT19nVs/px+C/8CRI2sND3I1SbOGz3tK/QK RVD4A3j7FyhXqlLcMXpI9HY0Cl3vzR7QytFsWls8f5uqQSB8xNjOx+RFQbIo0WF3nwaM 9dHrn9pyLtn0feep/jvigrnPqUYDQQQQEg5XCW934ZEq2xfLtiqc9J2NiQe+PEajn5ka e5YQ== 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=+IUYMJWSSy923g/cZlUHUX4FvaHjgqw+ahgCOVgmiMI=; b=ZjStLbakVjbUHprAWfMBResS6U9PSxRn3OmSeQzLlSCy01qnO17HdernVK2E78gZWG m0RMLzZe25qomPoHmffOdrw5TctAgxsWNx1bDnC7YigyjkrP2scFMHk4F69FJADwzPZj /wkC5/Jb6j2QfF94s0I49nUc05l4evuty4+xy1j2JRyzZ0MvVo1W0tPc4jJqju2PxYx1 LsATd8PIuPy8sWKYCevc7wznOkr1iOensiQwIQQxoU+E1VD40kPO7cAV0i8v3rVbimlc /KZftzm+Hq8CcMSaREeI2qhQWI6yLWMJGGhuZ8cvP73xNTCSDEBggxMV0BWfQzzGbInW 3vIA== X-Gm-Message-State: ALKqPwc4OmOl5TRGvq3x3GAw2CZ4Y7ETSUFl3pRmV0IMlN+wf3GES/m+ 47qSo+wMSVFYwElZEUbxe04= X-Google-Smtp-Source: AB8JxZqEOfoulMyjCVA6UNbpGAO7/KFEvLMXv5a5W1o5hr/LzhJAX0scZGYgKuWbRYdJsYJPg3FlGA== X-Received: by 2002:a1c:7a0b:: with SMTP id v11-v6mr4362380wmc.58.1527077441983; Wed, 23 May 2018 05:10:41 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id u68-v6sm1992867wmu.40.2018.05.23.05.10.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:10:41 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: Bruce Richardson , dpdk stable Date: Wed, 23 May 2018 13:09:26 +0100 Message-Id: <20180523121010.8385-15-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'mbuf: explicit cast of headroom on reset' 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: Wed, 23 May 2018 12:10:42 -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/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From c200960a49e0d71e99fbdc52c76b39e788cd7325 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 17 May 2018 21:49:37 +0800 Subject: [PATCH] mbuf: explicit cast of headroom on reset [ upstream commit 553ff494cb4d7fa9539911d3bbb4d94de5f69f20 ] GCC 8.1 warned: rte_common.h:384:2: warning: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Wconversion] __extension__ ({ \ ^~~~~~~~~~~~~ rte_mbuf.h:1204:16: note: in expansion of macro 'RTE_MIN' m->data_off = RTE_MIN(RTE_PKTMBUF_HEADROOM, (uint16_t)m->buf_len); RTE_PKTMBUF_HEADROOM is typ 128, so it doesn't make trouble. Fixes: 08b563ffb19d ("mbuf: replace data pointer by an offset") Signed-off-by: Andy Green Acked-by: Bruce Richardson --- lib/librte_mbuf/rte_mbuf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index a95001b76..a66ac781c 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -1166,7 +1166,8 @@ rte_pktmbuf_priv_size(struct rte_mempool *mp) */ static inline void rte_pktmbuf_reset_headroom(struct rte_mbuf *m) { - m->data_off = RTE_MIN(RTE_PKTMBUF_HEADROOM, (uint16_t)m->buf_len); + m->data_off = (uint16_t)RTE_MIN((uint16_t)RTE_PKTMBUF_HEADROOM, + (uint16_t)m->buf_len); } /** -- 2.14.2