Thread (32 messages) 32 messages, 8 authors, 2021-01-14

Re: [dpdk-dev] [PATCH v3 0/2] Support i40e PMD on Windows

From: Thomas Monjalon <hidden>
Date: 2021-01-14 22:55:40

22/12/2020 01:45, Pallavi Kadam:
Pallavi Kadam (2):
  eal: add rte_random.c file on windows
  build: i40e PMD on Windows
Applied, thanks

For info, I've fixed an additional warning in i40e compilation on Windows:
	drivers/net/i40e/i40e_hash.c:357:22: warning:
	comparison of integers of different signs:
	'enum rte_flow_item_type' and 'unsigned long long'
--- a/drivers/net/i40e/i40e_hash.c
+++ b/drivers/net/i40e/i40e_hash.c
@@ -354,9 +354,10 @@ i40e_hash_get_pattern_type(const struct rte_flow_item pattern[],
                }
 
                /* Check the previous item allows this sub-item. */
-               if (prev_item_type >= RTE_DIM(pattern_next_allow_items) ||
+               if (prev_item_type >= (enum rte_flow_item_type)
+                               RTE_DIM(pattern_next_allow_items) ||
                    !(pattern_next_allow_items[prev_item_type] &
-                   BIT_ULL(pattern->type)))
+                               BIT_ULL(pattern->type)))
                        goto not_sup;
 
                /* For VLAN item, it does no matter about to pattern type
@@ -372,7 +373,8 @@ i40e_hash_get_pattern_type(const struct rte_flow_item pattern[],
                }
 
                prev_item_type = last_item_type;
-               assert(last_item_type < RTE_DIM(pattern_item_header));
+               assert(last_item_type < (enum rte_flow_item_type)
+                               RTE_DIM(pattern_item_header));
                item_hdr = pattern_item_header[last_item_type];
                assert(item_hdr);


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help