Re: [dpdk-dev] [PATCH] ethdev: fix VXLAN mask initialization value

2021-04-09 Thread Ferruh Yigit
On 4/8/2021 5:31 PM, Ivan Malov wrote: On 4/8/2021 7:48 AM, Gregory Etelson wrote: In GCC compiler, __builtin_constant_p(exp) is a function. The function returns the integer 1 if the argument is known to be a compile-time constant. Therefore, __builtin_constant_p(0xff << 8) returned 1. As th

Re: [dpdk-dev] [PATCH] ethdev: fix VXLAN mask initialization value

2021-04-08 Thread Ivan Malov
On 4/8/2021 7:48 AM, Gregory Etelson wrote: > In GCC compiler, __builtin_constant_p(exp) is a function. > The function returns the integer 1 if the argument is known to be > a compile-time constant. > Therefore, __builtin_constant_p(0xff << 8) returned 1. > As the result, rte_flow_item_vxlan_m

Re: [dpdk-dev] [PATCH] ethdev: fix VXLAN mask initialization value

2021-04-08 Thread Ferruh Yigit
On 4/8/2021 7:48 AM, Gregory Etelson wrote: In GCC compiler, __builtin_constant_p(exp) is a function. The function returns the integer 1 if the argument is known to be a compile-time constant. Therefore, __builtin_constant_p(0xff << 8) returned 1. As the result, rte_flow_item_vxlan_mask was i

[dpdk-dev] [PATCH] ethdev: fix VXLAN mask initialization value

2021-04-07 Thread Gregory Etelson
In GCC compiler, __builtin_constant_p(exp) is a function. The function returns the integer 1 if the argument is known to be a compile-time constant. Therefore, __builtin_constant_p(0xff << 8) returned 1. As the result, rte_flow_item_vxlan_mask was initiated to {{ {flags = 0x0, rsvd0 = {0x0, 0