numam-dpdk/lib/librte_mbuf
Andy Green 0298bfb263 mbuf: explicit cast of external buffer length
GCC 8.1 warned:

rte_common.h:141:34:
warning: conversion from 'long unsigned int' to 'uint16_t'
{aka 'short unsigned int'} may change value [-Wconversion]
 #define RTE_PTR_DIFF(ptr1, ptr2) ((uintptr_t)(ptr1) - (uintptr_t)(ptr2))
                                  ^
rte_mbuf.h:1360:13:
note: in expansion of macro 'RTE_PTR_DIFF'
  *buf_len = RTE_PTR_DIFF(shinfo, buf_addr);

Fixes: a53aa2b9f3 ("mbuf: support attaching external buffer")

Signed-off-by: Andy Green <andy@warmcat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2018-05-21 00:21:12 +02:00
..
Makefile mbuf: remove control mbuf 2018-04-11 23:40:40 +02:00
meson.build build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
rte_mbuf_pool_ops.c mbuf: fix truncated strncpy 2018-04-04 17:34:20 +02:00
rte_mbuf_pool_ops.h add experimental tag to appropriate functions 2018-01-29 23:35:29 +01:00
rte_mbuf_ptype.c ethdev: introduce tunnel type MPLS-in-GRE and MPLS-in-UDP 2018-04-27 18:00:55 +01:00
rte_mbuf_ptype.h ethdev: introduce tunnel type MPLS-in-GRE and MPLS-in-UDP 2018-04-27 18:00:55 +01:00
rte_mbuf_version.map lib: clear experimental version tag in linker scripts 2018-05-14 03:37:28 +02:00
rte_mbuf.c ethdev: introduce new tunnel VXLAN-GPE 2018-04-27 18:00:55 +01:00
rte_mbuf.h mbuf: explicit cast of external buffer length 2018-05-21 00:21:12 +02:00