[dpdk-dev] [PATCH v5 4/4] net/mlx5: support e-switch flow count action

Shahaf Shuler shahafs at mellanox.com
Mon Oct 22 22:10:34 CEST 2018


Ferruh,

Monday, October 22, 2018 12:15 PM, Ferruh Yigit:
> Subject: Re: [dpdk-dev] [PATCH v5 4/4] net/mlx5: support e-switch flow
> count action
> 
> Getting following build error with clang, will not pull from mlx tree until issue
> resolved, thanks.
> 
> .../drivers/net/mlx5/mlx5_flow_tcf.c:2507:6: warning: cast from 'const struct
> rtattr *' to 'char *' drops const qualifier [-Wcast-qual]
>                                  RTA_DATA(arg), RTA_PAYLOAD(arg));
>                                  ^
> /usr/include/linux/rtnetlink.h:183:42: note: expanded from macro
> 'RTA_DATA'
> #define RTA_DATA(rta)   ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
>                                          ^
> .../drivers/net/mlx5/mlx5_flow_tcf.c:2593:31: warning: cast from 'const
> struct nlmsghdr *' to 'char *' drops const qualifier [-Wcast-qual]
>         struct tcmsg *t = NLMSG_DATA(nlh);

I updated next-net-mlx with the fix for this issue. Can you confirm it is fixed? 




More information about the dev mailing list