git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ethdev: make stats and xstats reset callbacks return int
[dpdk.git]
/
drivers
/
net
/
avp
/
avp_ethdev.c
diff --git
a/drivers/net/avp/avp_ethdev.c
b/drivers/net/avp/avp_ethdev.c
index
0509019
..
cd747b6
100644
(file)
--- a/
drivers/net/avp/avp_ethdev.c
+++ b/
drivers/net/avp/avp_ethdev.c
@@
-82,7
+82,7
@@
static void avp_dev_tx_queue_release(void *txq);
static int avp_dev_stats_get(struct rte_eth_dev *dev,
struct rte_eth_stats *stats);
static int avp_dev_stats_get(struct rte_eth_dev *dev,
struct rte_eth_stats *stats);
-static
void
avp_dev_stats_reset(struct rte_eth_dev *dev);
+static
int
avp_dev_stats_reset(struct rte_eth_dev *dev);
#define AVP_MAX_RX_BURST 64
#define AVP_MAX_RX_BURST 64
@@
-2275,7
+2275,7
@@
avp_dev_stats_get(struct rte_eth_dev *eth_dev, struct rte_eth_stats *stats)
return 0;
}
return 0;
}
-static
void
+static
int
avp_dev_stats_reset(struct rte_eth_dev *eth_dev)
{
struct avp_dev *avp = AVP_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private);
avp_dev_stats_reset(struct rte_eth_dev *eth_dev)
{
struct avp_dev *avp = AVP_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private);
@@
-2300,6
+2300,8
@@
avp_dev_stats_reset(struct rte_eth_dev *eth_dev)
txq->errors = 0;
}
}
txq->errors = 0;
}
}
+
+ return 0;
}
RTE_PMD_REGISTER_PCI(net_avp, rte_avp_pmd);
}
RTE_PMD_REGISTER_PCI(net_avp, rte_avp_pmd);