]> git.droids-corp.org - dpdk.git/blobdiff - app/proc-info/main.c
ethdev: change xstats reset function to return int
[dpdk.git] / app / proc-info / main.c
index 34eb7a7cc4e13b349746bf5e9da591f97b6ede28..94e808dc6ecdf60e3ab6da033d7bfb91d234ef83 100644 (file)
@@ -580,8 +580,16 @@ err:
 static void
 nic_xstats_clear(uint16_t port_id)
 {
+       int ret;
+
        printf("\n Clearing NIC xstats for port %d\n", port_id);
-       rte_eth_xstats_reset(port_id);
+       ret = rte_eth_xstats_reset(port_id);
+       if (ret != 0) {
+               printf("\n Error clearing xstats for port %d: %s\n", port_id,
+                      strerror(-ret));
+               return;
+       }
+
        printf("\n  NIC extended statistics for port %d cleared\n", port_id);
 }