On 6/9/2017 4:11 AM, Wei Zhao wrote: > check if the rule is a flex byte rule, and get the flex info. > > Signed-off-by: Wei Zhao <wei.zh...@intel.com>
<...> > + const struct rte_flow_item_raw *raw_mask; <...> > + > + if (!raw_mask->length || > + !raw_mask->pattern || > + !raw_mask->relative) { This gives following clang build error: .../drivers/net/e1000/igb_flow.c:1094:17: error: address of array 'raw_mask->pattern' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] !raw_mask->pattern || ~~~~~~~~~~~^~~~~~~ <...>