[dpdk-dev] ip_pipeline: fix build error for 32 bit gcc target
Commit Message
error log:
ip_pipeline/pipeline/pipeline_routing_be.c:1537: integer constant is
too large for 'long' type compilation terminated due to -Wfatal-errors
Fixes: 0ae7275810f1 ("examples/ip_pipeline: add more functions to routing pipeline")
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
---
examples/ip_pipeline/pipeline/pipeline_routing_be.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jasvinder Singh
> Sent: Friday, April 08, 2016 6:13 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] ip_pipeline: fix build error for 32 bit gcc target
>
> error log:
> ip_pipeline/pipeline/pipeline_routing_be.c:1537: integer constant is
> too large for 'long' type compilation terminated due to -Wfatal-errors
>
> Fixes: 0ae7275810f1 ("examples/ip_pipeline: add more functions to routing
> pipeline")
>
> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by:Pablo de Lara <pablo.de.lara.guarch@intel.com>
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jasvinder Singh
> Sent: Friday, April 8, 2016 6:13 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] ip_pipeline: fix build error for 32 bit gcc
> target
>
> error log:
> ip_pipeline/pipeline/pipeline_routing_be.c:1537: integer constant is too
> large for 'long' type compilation terminated due to -Wfatal-errors
>
> Fixes: 0ae7275810f1 ("examples/ip_pipeline: add more functions to routing
> pipeline")
>
> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
> > error log:
> > ip_pipeline/pipeline/pipeline_routing_be.c:1537: integer constant is
> > too large for 'long' type compilation terminated due to -Wfatal-errors
> >
> > Fixes: 0ae7275810f1 ("examples/ip_pipeline: add more functions to routing
> > pipeline")
> >
> > Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
>
> Acked-by:Pablo de Lara <pablo.de.lara.guarch@intel.com>
Applied, thanks
@@ -65,7 +65,7 @@
((((uint64_t) (pipe)) & 0xFFFFFFFF) << 32))
-#define MAC_SRC_DEFAULT 0x112233445566
+#define MAC_SRC_DEFAULT 0x112233445566ULL
#ifndef PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s
#define PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s 256