Re: [dpdk-dev] [PATCH v13 5/7] net/iavf: add xstats support for inline IPsec crypto
From: Ferruh Yigit <hidden>
Date: 2021-10-29 19:32:36
From: Ferruh Yigit <hidden>
Date: 2021-10-29 19:32:36
On 10/28/2021 5:04 PM, Radu Nicolau wrote:
@@ -1619,6 +1668,7 @@ static int iavf_dev_xstats_get(struct rte_eth_dev *dev, struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); struct iavf_vsi *vsi = &vf->vsi; struct virtchnl_eth_stats *pstats = NULL; + struct iavf_eth_xstats iavf_xtats = {0};
Build error [1] on FreeBSD reported by David M, will fix it in next-net [2]
[1]
../drivers/net/iavf/iavf_ethdev.c:1757:39: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
struct iavf_eth_xstats iavf_xtats = {0};
^
{}
[2]
- struct iavf_eth_xstats iavf_xtats = {0};
+ struct iavf_eth_xstats iavf_xtats = {{0}};