[dpdk-dev] [PATCH v3 08/11] net/e1000: parse flex filter
Ferruh Yigit
ferruh.yigit at intel.com
Fri Jun 9 14:23:05 CEST 2017
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.zhao1 at 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 ||
~~~~~~~~~~~^~~~~~~
<...>
More information about the dev
mailing list