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>
This commit is contained in:
parent
5a7e5accc6
commit
b90406b9f7
@ -4240,7 +4240,8 @@ 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_callback(&buffer->pkts[sent],
|
||||
(uint16_t)(to_send - sent),
|
||||
buffer->error_userdata);
|
||||
|
||||
return sent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user