ethdev: fix build warning on 64-bit value
authorDavid Marchand <david.marchand@redhat.com>
Mon, 27 Apr 2020 13:23:41 +0000 (15:23 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 28 Apr 2020 09:34:40 +0000 (11:34 +0200)
Building OVS with dpdk, sparse complains about 64-bit constant being
passed as a normal integer that can't fit it:
error: constant 0xffffffffffffffff is so big it is unsigned long

Fixes: ecbc8570131d ("ethdev: add PFCP header to flow API")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_ethdev/rte_flow.h

index 132b44e..1fb94f3 100644 (file)
@@ -1534,7 +1534,7 @@ struct rte_flow_item_pfcp {
 #ifndef __cplusplus
 static const struct rte_flow_item_pfcp rte_flow_item_pfcp_mask = {
        .s_field = 0x01,
-       .seid = RTE_BE64(0xffffffffffffffff),
+       .seid = RTE_BE64(UINT64_C(0xffffffffffffffff)),
 };
 #endif