From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 48F7D1B873 for ; Tue, 15 May 2018 15:48:08 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id o78-v6so1282510wmg.0 for ; Tue, 15 May 2018 06:48:08 -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=iWcvC9XnKiuZwnre2/RARtrYvlke3qTac4IMfAXDo6s=; b=BZHQZcRb0eJzwbXDQ7ubQ+5hB4XKtlxF0FxQfPzuagKNvA1lVG/7Say5KqXVrQ4ewi iSBl0SY2wEC4bo3pkchUuTKxCJxqrniG+qDBx97irnzrqXHqsWJ9gZ2PJlRW0Rl0c2gt U24pIq3cGQMWVhJTyiYQEJ9m01iGbmRqiUwlRrtU7lVAG1BaW35IfBn+wNGLDN74UVRq y1qxE2AWyvpU71P553IwIbiO1ftBiwHT6NiQDEIEI/Mrl7LJ04yYFrC0EycgKixS5S5v 2vcI5OLP+u9ZbUnshfh53u8ckY6VWWBDhg/rbjxEjgWKFoTUhHU05zb7+M1oA0mJyse5 C7sw== 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=iWcvC9XnKiuZwnre2/RARtrYvlke3qTac4IMfAXDo6s=; b=YZ4A3AcYObratabuhtXXQ0rgQrBLJv3lMIsHk2999+GP7C5GVXOZr/QzHVh0mki9+E F5Ykomj+tdYG8YfpgKcyTmLARDwLIqfZUH6xwsosaFPHUNPRQ/gVpPZdJbaD5fWvRQLJ vGjYbtuertI7QLi3kfQY1B9BA+aJEryESnTKyVAZ+MYmdVCAQTAwRM8sQiOwkVJ0dVpn OeJ4duzOl75ue6xoI6Lz883ltBuVsI1Or4noUm1VtPqjXiFliKaoPjyU7XIc2QBS5DN9 N7i+X6GIucLzFT4xp1b/Qpr+VVcFI9ZilL9eOSxvqHCTr4HNnqGg9Nsj/WXraEZCc0AR Wa+g== X-Gm-Message-State: ALKqPwc2MC7XyIlZQqqTEOJzsKQGgAHl8cSM+YY/HlO9IuZHYudLL5qR 2XbGJUWN6lT4yVFDatk8gq1WmJM+ X-Google-Smtp-Source: AB8JxZrvS1UDaI4hMCQkpEIxFcM8A1iqY+a6wTvv2zkDLQsOWQ1TIYHCd5+6IEVGncATq7YdkinURg== X-Received: by 2002:a1c:170f:: with SMTP id 15-v6mr8121452wmx.90.1526392087968; Tue, 15 May 2018 06:48:07 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id z18-v6sm136634wrc.36.2018.05.15.06.48.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:48:07 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: Stephen Hemminger , dpdk stable Date: Tue, 15 May 2018 14:46:26 +0100 Message-Id: <20180515134731.9337-15-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'ethdev: explicit cast of buffered Tx number' 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: Tue, 15 May 2018 13:48:08 -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/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 4f76dca1c6dd8eff33bbbccbb5157ee3a437e85a Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 12 May 2018 10:00:27 +0800 Subject: [PATCH] ethdev: explicit cast of buffered Tx number [ upstream commit b90406b9f7340466cbda287cd7454fae68868348 ] In function 'rte_eth_tx_buffer_flush': rte_ethdev.h:4248:55: warning: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Wconversion] buffer->error_callback(&buffer->pkts[sent], to_send - sent, Fixes: d6c99e62c852 ("ethdev: add buffered Tx") Signed-off-by: Andy Green Reviewed-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 198aceb4f..6774a9c8b 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -4059,8 +4059,9 @@ rte_eth_tx_buffer_flush(uint16_t port_id, uint16_t queue_id, /* All packets sent, or to be dealt with by callback below */ if (unlikely(sent != to_send)) - buffer->error_callback(&buffer->pkts[sent], to_send - sent, - buffer->error_userdata); + buffer->error_callback(&buffer->pkts[sent], + (uint16_t)(to_send - sent), + buffer->error_userdata); return sent; } -- 2.14.2