Skip to content

Commit

Permalink
Copp changes for supporting genetlink in vs (sonic-net#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudharsan D.G authored and lguohan committed Oct 24, 2019
1 parent 1f4a1d7 commit d9faa58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/aspell.en.pws
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ FDBs
filename
FIXME
FlexCounter
genetlink
getInstance
getSwitchId
getVid
Expand Down Expand Up @@ -111,10 +112,12 @@ metadata
mlnx
mpls
MTU
multicast
mutex
mutexes
namespace
namespaces
netdev
NHG
nhgm
nlog
Expand Down
10 changes: 10 additions & 0 deletions vslib/src/sai_vs_hostintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d9faa58

Please sign in to comment.