]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/pipeline/pipeline_firewall.c
doc: fix nics features matrix for ixgbe
[dpdk.git] / examples / ip_pipeline / pipeline / pipeline_firewall.c
index 3d7ea7aa184adfa5b65a55c1399900dd141ac038..320b25d4629c6be383781d0f658c3e124472dfe3 100644 (file)
@@ -256,10 +256,10 @@ app_pipeline_firewall_key_check_and_normalize(struct pipeline_firewall_key *key)
                        return -1;
 
                if (src_ip_depth)
-                       src_ip_netmask = (~0) << (32 - src_ip_depth);
+                       src_ip_netmask = (~0U) << (32 - src_ip_depth);
 
                if (dst_ip_depth)
-                       dst_ip_netmask = ((~0) << (32 - dst_ip_depth));
+                       dst_ip_netmask = ((~0U) << (32 - dst_ip_depth));
 
                key->key.ipv4_5tuple.src_ip &= src_ip_netmask;
                key->key.ipv4_5tuple.dst_ip &= dst_ip_netmask;