From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id B45DFF64 for ; Mon, 30 Apr 2018 16:43:50 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id i3so14593926wmf.3 for ; Mon, 30 Apr 2018 07:43:50 -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 :mime-version:content-transfer-encoding; bh=Li978wNsBfI+JubTT6T4ztBizD4lqM13CZ0LjZe2sAQ=; b=VfE9uDpXXIdJIwTMRbHQDZhSzbGamj5Vnh7qAyMutw340NiCsdxuZyHjV7qclY2hEo yEVyuShoRJqq3XpyAWRLQQDsTOHRmspPUIeVLB0k6QdVWahfl5A9Ls9yx2Wc8HGYNuib XSCc5cwg/ZBZ1E8SMfjgmUFP1of4dgPk8hdK6nSILLtz73sM4MQTLkLZHmcdTAiPHNuq KSGjNEUIRUIbIaBoPTCrAf/U13GIGghD93GxKtQzUA76isYNnDujTu4Vt+qOOQRtnoNu M459VBxeLv0FpkzH5gM2UflZIq4cp434Uh/jY9LAfG5ePzz9Ia5zhXb5HpdHt5wROWl5 WnoA== 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:mime-version:content-transfer-encoding; bh=Li978wNsBfI+JubTT6T4ztBizD4lqM13CZ0LjZe2sAQ=; b=B9LtkVKQO1eoO/hQwPiqmHnn/gM7IvslKPPDGyzaunFJpG/8d2SQ9XcWnqX9n1GVdu 3Jz8HbUliBwOv1hUQUkEtO4XFaJuhnwSVSkqQfqOPu2KaBr6zitcnnL1adTbgvgkfncI AbOS99qM9V/5ilqkY6pdDUWTYdtOzJhiwcXQjbwNbqHjPRhd43wfufwOCOveaH/PNy8v sa2YYZ+PZm31DjSHkKYM4Juox2OTLYOVg2exsduXzbZdWUwelXuXR1nD7koJlMlostYB Ut2dXJqR6NmwAA3DjlEtdasSxbl2w3wZr6wFjTkkNRGZ7jCRLjQ0UDL9+FxiYWANZvNy VQyw== X-Gm-Message-State: ALQs6tDhbKePBxu73/D/zr3XCEU6wPRYKPnsdyq/A4BoZZSwDqGV0orq CVp6mM5sBk8R1CMenJmOW0s= X-Google-Smtp-Source: AB8JxZpKRdE1T5HtKnKnTpZQRn4IPeBHFjOTQvUIXFyfGs+/ZMBATPEFQyCuYB7gVE150HIBWe0ZMQ== X-Received: by 10.28.143.143 with SMTP id r137mr7359398wmd.103.1525099430465; Mon, 30 Apr 2018 07:43:50 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id c18sm8290244wmd.13.2018.04.30.07.43.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:43:49 -0700 (PDT) From: luca.boccassi@gmail.com To: Gowrishankar Muthukrishnan Cc: Sunil Kumar Kori , dpdk stable Date: Mon, 30 Apr 2018 15:41:08 +0100 Message-Id: <20180430144223.18657-53-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'event/dpaa: fix integer overflow of max ports' 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:43:50 -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 2308778eb07095de05e234344835b1b10716acdf Mon Sep 17 00:00:00 2001 From: Gowrishankar Muthukrishnan Date: Fri, 13 Apr 2018 10:36:31 +0530 Subject: [PATCH] event/dpaa: fix integer overflow of max ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 100915c0a51121fdbbb3be04aa73823f54e20cda ] dev_info->max_event_ports is uint8_t. dpaa_event_dev_info_get assigns DPAA_EVENT_MAX_EVENT_PORT (which is RTE_MAX_LCORE, upto 256 in ppc64le) into this variable, which breaks compile in ppc64le. drivers/event/dpaa/dpaa_eventdev.c: In function ‘dpaa_event_dev_info_get’: rte_config.h:23:23: error: large integer implicitly truncated to unsigned type [-Werror=overflow] #define RTE_MAX_LCORE 256 Fixes: 9caac5dd1e ("event/dpaa: introduce PMD") Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Sunil Kumar Kori --- drivers/event/dpaa/dpaa_eventdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/dpaa/dpaa_eventdev.h b/drivers/event/dpaa/dpaa_eventdev.h index 918fe35ce..583e46ca4 100644 --- a/drivers/event/dpaa/dpaa_eventdev.h +++ b/drivers/event/dpaa/dpaa_eventdev.h @@ -26,7 +26,7 @@ #define DPAA_EVENT_MAX_QUEUE_FLOWS 2048 #define DPAA_EVENT_MAX_QUEUE_PRIORITY_LEVELS 8 #define DPAA_EVENT_MAX_EVENT_PRIORITY_LEVELS 0 -#define DPAA_EVENT_MAX_EVENT_PORT RTE_MAX_LCORE +#define DPAA_EVENT_MAX_EVENT_PORT RTE_MIN(RTE_MAX_LCORE, INT8_MAX) #define DPAA_EVENT_MAX_PORT_DEQUEUE_DEPTH 8 #define DPAA_EVENT_PORT_DEQUEUE_TIMEOUT_NS 100UL #define DPAA_EVENT_PORT_DEQUEUE_TIMEOUT_INVALID ((uint64_t)-1) -- 2.14.2