Skip to content
Snippets Groups Projects
Commit d94e3029 authored by Amit Kumar's avatar Amit Kumar
Browse files

libethernet: removed unwanted code in rmon stats

parent a82181db
No related branches found
No related tags found
1 merge request!21libethernet: removed unwanted code in rmon stats
Pipeline #166910 passed
...@@ -417,19 +417,13 @@ int bcm_eth_get_stats(const char *ifname, struct eth_stats *s) ...@@ -417,19 +417,13 @@ int bcm_eth_get_stats(const char *ifname, struct eth_stats *s)
int bcm_eth_get_rmon_stats(const char *ifname, struct eth_rmon_stats *rmon) int bcm_eth_get_rmon_stats(const char *ifname, struct eth_rmon_stats *rmon)
{ {
struct ethswctl_data data; struct ethswctl_data data;
int unit = -1;
int port = -1;
int ret; int ret;
if (!rmon) if (!rmon)
return -1; return -1;
memset(&data, 0, sizeof(struct ethswctl_data)); memset(&data, 0, sizeof(struct ethswctl_data));
ret = bcm_eth_get_unit_port(ifname, &unit, &port);
if (ret)
return -1;
//data.op = ETHSWDUMPMIB;
data.op = ETHSWEMACGET; data.op = ETHSWEMACGET;
strncpy(data.ifname, ifname, OBJIFNAMSIZ); strncpy(data.ifname, ifname, OBJIFNAMSIZ);
data.addressing_flag |= (ETHSW_ADDRESSING_DEV); data.addressing_flag |= (ETHSW_ADDRESSING_DEV);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment