aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_armada/pp2/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dev_armada/pp2/init.c')
-rw-r--r--src/plugins/dev_armada/pp2/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/dev_armada/pp2/init.c b/src/plugins/dev_armada/pp2/init.c
index c0ae7268989..30fef34cd39 100644
--- a/src/plugins/dev_armada/pp2/init.c
+++ b/src/plugins/dev_armada/pp2/init.c
@@ -287,6 +287,7 @@ mvpp2_init (vlib_main_t *vm, vnet_dev_t *dev)
.config_change = mvpp2_port_cfg_change,
.config_change_validate = mvpp2_port_cfg_change_validate,
.format_status = format_mvpp2_port_status,
+ .clear_counters = mvpp2_port_clear_counters,
},
.data_size = sizeof (mvpp2_port_t),
.initial_data = &mvpp2_port,
@@ -302,6 +303,9 @@ mvpp2_init (vlib_main_t *vm, vnet_dev_t *dev)
.max_size = 4096,
.size_is_power_of_two = 1,
},
+ .ops = {
+ .clear_counters = mvpp2_rxq_clear_counters,
+ },
},
.tx_queue = {
.config = {
@@ -315,6 +319,7 @@ mvpp2_init (vlib_main_t *vm, vnet_dev_t *dev)
.ops = {
.alloc = mvpp2_txq_alloc,
.free = mvpp2_txq_free,
+ .clear_counters = mvpp2_txq_clear_counters,
},
},
};