ethdev: explicit cast of buffered Tx number
authorAndy Green <andy@warmcat.com>
Sat, 12 May 2018 02:00:27 +0000 (10:00 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 20:45:29 +0000 (22:45 +0200)
commitb90406b9f7340466cbda287cd7454fae68868348
treec0032af782093d5927cca22e457b699407776872
parent5a7e5accc695e5cf0ed840f59042dba4cbe0aae3
ethdev: explicit cast of buffered Tx number

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")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_ethdev/rte_ethdev.h