Skip to content
Snippets Groups Projects
Commit 1294b515 authored by Anjan Chanda's avatar Anjan Chanda
Browse files

libethernet: bcm: do not overwrite stats available through proc

parent a6ae4bf6
No related branches found
No related tags found
No related merge requests found
...@@ -286,6 +286,8 @@ int bcm_eth_get_stats(const char *ifname, struct eth_stats *s) ...@@ -286,6 +286,8 @@ int bcm_eth_get_stats(const char *ifname, struct eth_stats *s)
/* get from proc first */ /* get from proc first */
ret_proc = bcm_eth_get_stats_from_proc(ifname, s); ret_proc = bcm_eth_get_stats_from_proc(ifname, s);
if (!ret_proc)
return 0;
memset(&data, 0, sizeof(struct ethswctl_data)); memset(&data, 0, sizeof(struct ethswctl_data));
ret = bcm_eth_get_unit_port(ifname, &unit, &port); ret = bcm_eth_get_unit_port(ifname, &unit, &port);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment