numam-dpdk/lib/librte_mbuf
Andy Green 553ff494cb mbuf: explicit cast of headroom on reset
GCC 8.1 warned:

rte_common.h:384:2:
warning: conversion from 'int' to 'uint16_t'
{aka 'short unsigned int'} may change value [-Wconversion]
  __extension__ ({ \
  ^~~~~~~~~~~~~
rte_mbuf.h:1204:16:
note: in expansion of macro 'RTE_MIN'
  m->data_off = RTE_MIN(RTE_PKTMBUF_HEADROOM, (uint16_t)m->buf_len);

RTE_PKTMBUF_HEADROOM is typ 128, so it doesn't make trouble.

Fixes: 08b563ffb1 ("mbuf: replace data pointer by an offset")
Cc: stable@dpdk.org

Signed-off-by: Andy Green <andy@warmcat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2018-05-21 00:21:05 +02:00
..
Makefile mbuf: remove control mbuf 2018-04-11 23:40:40 +02:00
meson.build
rte_mbuf_pool_ops.c mbuf: fix truncated strncpy 2018-04-04 17:34:20 +02:00
rte_mbuf_pool_ops.h
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 headroom on reset 2018-05-21 00:21:05 +02:00