Skip to content

Commit d9faa58

Browse files
Sudharsan D.Glguohan
Sudharsan D.G
authored andcommitted
Copp changes for supporting genetlink in vs (sonic-net#522)
1 parent 1f4a1d7 commit d9faa58

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/aspell.en.pws

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ FDBs
6969
filename
7070
FIXME
7171
FlexCounter
72+
genetlink
7273
getInstance
7374
getSwitchId
7475
getVid
@@ -111,10 +112,12 @@ metadata
111112
mlnx
112113
mpls
113114
MTU
115+
multicast
114116
mutex
115117
mutexes
116118
namespace
117119
namespaces
120+
netdev
118121
NHG
119122
nhgm
120123
nlog

vslib/src/sai_vs_hostintf.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,16 @@ sai_status_t vs_create_hostif_tap_interface(
11221122
return SAI_STATUS_FAILURE;
11231123
}
11241124

1125+
/* The genetlink host interface is created to associate trap group to genetlink family and multicast group
1126+
* created by driver. It does not create any netdev interface. Hence skipping tap interface creation
1127+
*/
1128+
if (attr_type->value.s32 == SAI_HOSTIF_TYPE_GENETLINK)
1129+
{
1130+
SWSS_LOG_DEBUG("Skipping tap create for hostif type genetlink");
1131+
1132+
return SAI_STATUS_SUCCESS;
1133+
}
1134+
11251135
if (attr_type->value.s32 != SAI_HOSTIF_TYPE_NETDEV)
11261136
{
11271137
SWSS_LOG_ERROR("only SAI_HOSTIF_TYPE_NETDEV is supported");

0 commit comments

Comments
 (0)