Re: [dpdk-dev] [PATCH v6 5/8] rte_mbuf.h: avoid implicit demotion in 64-bit arith

2018-05-21 Thread Andy Green
On 05/21/2018 08:27 PM, Bruce Richardson wrote: On Mon, May 21, 2018 at 10:01:18AM +0800, Andy Green wrote: /projects/lagopus/src/dpdk/build/include/rte_mbuf.h: In function 'rte_validate_tx_offload': /projects/lagopus/src/dpdk/build/include/rte_mbuf.h: 2112:19: warning: conversion to 'uint64_t

Re: [dpdk-dev] [PATCH v6 5/8] rte_mbuf.h: avoid implicit demotion in 64-bit arith

2018-05-21 Thread Bruce Richardson
On Mon, May 21, 2018 at 10:01:18AM +0800, Andy Green wrote: > /projects/lagopus/src/dpdk/build/include/rte_mbuf.h: > In function 'rte_validate_tx_offload': > /projects/lagopus/src/dpdk/build/include/rte_mbuf.h: > 2112:19: warning: conversion to 'uint64_t' > {aka 'long unsigned int'} from 'int' may

[dpdk-dev] [PATCH v6 5/8] rte_mbuf.h: avoid implicit demotion in 64-bit arith

2018-05-20 Thread Andy Green
/projects/lagopus/src/dpdk/build/include/rte_mbuf.h: In function 'rte_validate_tx_offload': /projects/lagopus/src/dpdk/build/include/rte_mbuf.h: 2112:19: warning: conversion to 'uint64_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] inner_l3_offset +=