> -----Original Message----- > From: Wu, Jingjing <jingjing...@intel.com> > Sent: Wednesday, February 1, 2023 4:49 PM > To: Liu, Mingxia <mingxia....@intel.com>; dev@dpdk.org > Cc: Xing, Beilei <beilei.x...@intel.com> > Subject: RE: [PATCH v3 1/6] common/idpf: add hw statistics > > > @@ -327,6 +407,11 @@ idpf_dev_start(struct rte_eth_dev *dev) > > goto err_vport; > > } > > > > + if (idpf_dev_stats_reset(dev)) { > > + PMD_DRV_LOG(ERR, "Failed to reset stats"); > > + goto err_vport; > > If stats reset fails, will block the start process and roll back? I think > print ERR > may be enough. > [Liu, Mingxia] Good idea, I'll delete the error process of rolling back. > > + } > > + > > vport->stopped = 0; > > > > return 0; > > @@ -606,6 +691,8 @@ static const struct eth_dev_ops idpf_eth_dev_ops > = { > > .tx_queue_release = idpf_dev_tx_queue_release, > > .mtu_set = idpf_dev_mtu_set, > > .dev_supported_ptypes_get = idpf_dev_supported_ptypes_get, > > + .stats_get = idpf_dev_stats_get, > > + .stats_reset = idpf_dev_stats_reset, > > }; > > > > static uint16_t > > -- > > 2.25.1
- [PATCH 0/6] add idpf pmd enhancement features Mingxia Liu
- [PATCH v2 1/6] common/idpf: add hw statistics Mingxia Liu
- [PATCH v2 2/6] common/idpf: add RSS set/get ops Mingxia Liu
- [PATCH v2 3/6] common/idpf: support single q scatter RX ... Mingxia Liu
- [PATCH v2 4/6] common/idpf: add rss_offload hash in sing... Mingxia Liu
- [PATCH v2 5/6] common/idpf: add alarm to support handle ... Mingxia Liu
- [PATCH v2 6/6] common/idpf: add xstats ops Mingxia Liu
- [PATCH v3 0/6] add idpf pmd enhancement features Mingxia Liu
- [PATCH v3 1/6] common/idpf: add hw statistics Mingxia Liu
- RE: [PATCH v3 1/6] common/idpf: add hw statistic... Wu, Jingjing
- RE: [PATCH v3 1/6] common/idpf: add hw stati... Liu, Mingxia
- [PATCH v3 2/6] common/idpf: add RSS set/get ops Mingxia Liu
- RE: [PATCH v3 2/6] common/idpf: add RSS set/get ... Wu, Jingjing
- RE: [PATCH v3 2/6] common/idpf: add RSS set/... Liu, Mingxia
- [PATCH v3 3/6] common/idpf: support single q scatter... Mingxia Liu
- RE: [PATCH v3 3/6] common/idpf: support single q... Wu, Jingjing
- RE: [PATCH v3 3/6] common/idpf: support sing... Liu, Mingxia
- [PATCH v3 4/6] common/idpf: add rss_offload hash in ... Mingxia Liu
- [PATCH v3 5/6] common/idpf: add alarm to support han... Mingxia Liu
- RE: [PATCH v3 5/6] common/idpf: add alarm to sup... Wu, Jingjing
- RE: [PATCH v3 5/6] common/idpf: add alarm to... Liu, Mingxia