From d9faa5890b6843a6a31e620752e865eba23f9564 Mon Sep 17 00:00:00 2001 From: "Sudharsan D.G" Date: Thu, 24 Oct 2019 09:06:33 -0700 Subject: [PATCH] Copp changes for supporting genetlink in vs (#522) --- tests/aspell.en.pws | 3 +++ vslib/src/sai_vs_hostintf.cpp | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/tests/aspell.en.pws b/tests/aspell.en.pws index ec357f88bbf0..25b08f831ae5 100644 --- a/tests/aspell.en.pws +++ b/tests/aspell.en.pws @@ -69,6 +69,7 @@ FDBs filename FIXME FlexCounter +genetlink getInstance getSwitchId getVid @@ -111,10 +112,12 @@ metadata mlnx mpls MTU +multicast mutex mutexes namespace namespaces +netdev NHG nhgm nlog diff --git a/vslib/src/sai_vs_hostintf.cpp b/vslib/src/sai_vs_hostintf.cpp index 089193c630c8..718dcd3e48fd 100644 --- a/vslib/src/sai_vs_hostintf.cpp +++ b/vslib/src/sai_vs_hostintf.cpp @@ -1122,6 +1122,16 @@ sai_status_t vs_create_hostif_tap_interface( return SAI_STATUS_FAILURE; } + /* The genetlink host interface is created to associate trap group to genetlink family and multicast group + * created by driver. It does not create any netdev interface. Hence skipping tap interface creation + */ + if (attr_type->value.s32 == SAI_HOSTIF_TYPE_GENETLINK) + { + SWSS_LOG_DEBUG("Skipping tap create for hostif type genetlink"); + + return SAI_STATUS_SUCCESS; + } + if (attr_type->value.s32 != SAI_HOSTIF_TYPE_NETDEV) { SWSS_LOG_ERROR("only SAI_HOSTIF_TYPE_NETDEV is supported");