summaryrefslogtreecommitdiffstats
path: root/src/plugins/marvell/pp2/pp2.c
diff options
context:
space:
mode:
authorJianlin Lv <Jianlin.Lv@arm.com>2019-10-30 13:35:38 +0800
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-11-07 13:32:36 +0000
commit1c3c9f0393e4bd3a5902efbc79cb9a4e6737bda2 (patch)
treef32b6a8449377e18bd95370039e28649a2992a05 /src/plugins/marvell/pp2/pp2.c
parent387123e675c222b52f720b6fd5ac0c7b3f016bcd (diff)
api: Add API support for PP2 plugin to stable/1908
Support create/delete interface with marvell PP2 API Type: feature Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com> Change-Id: I2a81024e0fcf2f389d39a5498167a752f8f807e5
Diffstat (limited to 'src/plugins/marvell/pp2/pp2.c')
-rw-r--r--src/plugins/marvell/pp2/pp2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/marvell/pp2/pp2.c b/src/plugins/marvell/pp2/pp2.c
index 411e28b212b..36b191a178b 100644
--- a/src/plugins/marvell/pp2/pp2.c
+++ b/src/plugins/marvell/pp2/pp2.c
@@ -300,6 +300,7 @@ mrvl_pp2_create_if (mrvl_pp2_create_if_args_t * args)
sw = vnet_get_hw_sw_interface (vnm, ppif->hw_if_index);
ppif->sw_if_index = sw->sw_if_index;
ppif->per_interface_next_index = ~0;
+ args->sw_if_index = sw->sw_if_index;
vnet_hw_interface_set_input_node (vnm, ppif->hw_if_index,
mrvl_pp2_input_node.index);
vnet_hw_interface_assign_rx_thread (vnm, ppif->hw_if_index, 0, ~0);