[dpdk-dev] [RFC v2 11/14] net: add rte prefix to ip defines

Stephen Hemminger stephen at networkplumber.org
Mon Apr 22 18:05:54 CEST 2019


On Wed, 10 Apr 2019 10:32:15 +0200
Olivier Matz <olivier.matz at 6wind.com> wrote:

> diff --git a/app/test-acl/main.c b/app/test-acl/main.c
> index b80179417..eb6294396 100644
> --- a/app/test-acl/main.c
> +++ b/app/test-acl/main.c
> @@ -625,7 +625,7 @@ parse_ipv4_net(const char *in, uint32_t *addr, uint32_t *mask_len)
>  	GET_CB_FIELD(in, d, 0, UINT8_MAX, '/');
>  	GET_CB_FIELD(in, m, 0, sizeof(uint32_t) * CHAR_BIT, 0);
>  
> -	addr[0] = IPv4(a, b, c, d);
> +	addr[0] = RTE_IPv4(a, b, c, d);

IPv4 is a DPDK only macro, could you leave it alone.


More information about the dev mailing list