Thread (128 messages) 128 messages, 5 authors, 2021-11-05

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

On 10/28/2021 5:04 PM, Radu Nicolau wrote:
quoted hunk ↗ jump to hunk
@@ -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}};
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help