aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_armada/pp2/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dev_armada/pp2/port.c')
-rw-r--r--src/plugins/dev_armada/pp2/port.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/plugins/dev_armada/pp2/port.c b/src/plugins/dev_armada/pp2/port.c
index a42432ca648..4dbea1f8e67 100644
--- a/src/plugins/dev_armada/pp2/port.c
+++ b/src/plugins/dev_armada/pp2/port.c
@@ -75,6 +75,8 @@ mvpp2_port_init (vlib_main_t *vm, vnet_dev_port_t *port)
log_debug (dev, "port %u %U", port->port_id, format_pp2_ppio_link_info, &li);
+ mvpp2_port_add_counters (vm, port);
+
done:
if (rv != VNET_DEV_OK)
mvpp2_port_stop (vm, port);
@@ -145,12 +147,13 @@ mvpp2_port_poll (vlib_main_t *vm, vnet_dev_port_t *port)
}
}
- if (changes.change.any == 0)
- return;
-
- mp->last_link_info = li;
+ if (changes.change.any)
+ {
+ mp->last_link_info = li;
+ vnet_dev_port_state_change (vm, port, changes);
+ }
- vnet_dev_port_state_change (vm, port, changes);
+ mvpp2_port_get_stats (vm, port);
}
vnet_dev_rv_t