]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/pipeline/pipeline_routing.c
doc: fix nics features matrix for ixgbe
[dpdk.git] / examples / ip_pipeline / pipeline / pipeline_routing.c
index 635473083ffc7bd07c8b3633af06512999d2c26c..eab89f2ee179f0b158fde1fcaa6220588b7978b0 100644 (file)
@@ -319,7 +319,7 @@ app_pipeline_routing_add_route(struct app_params *app,
                if ((depth == 0) || (depth > 32))
                        return -1;
 
-               netmask = (~0) << (32 - depth);
+               netmask = (~0U) << (32 - depth);
                key->key.ipv4.ip &= netmask;
 
                /* data */
@@ -421,7 +421,7 @@ app_pipeline_routing_delete_route(struct app_params *app,
                if ((depth == 0) || (depth > 32))
                        return -1;
 
-               netmask = (~0) << (32 - depth);
+               netmask = (~0U) << (32 - depth);
                key->key.ipv4.ip &= netmask;
        }
        break;