diff --git a/inc/saiport.h b/inc/saiport.h index caf319e6c..c2e9db2a1 100644 --- a/inc/saiport.h +++ b/inc/saiport.h @@ -231,6 +231,9 @@ typedef enum _sai_port_breakout_mode_type_t /** 4 lanes breakout Mode */ SAI_PORT_BREAKOUT_MODE_TYPE_4_LANE = 2, + /** 8 lanes breakout Mode */ + SAI_PORT_BREAKOUT_MODE_TYPE_8_LANE = 3, + /** Breakout mode max count */ SAI_PORT_BREAKOUT_MODE_TYPE_MAX } sai_port_breakout_mode_type_t; diff --git a/meta/ancestry.pl b/meta/ancestry.pl index c005f83e6..dd5271989 100755 --- a/meta/ancestry.pl +++ b/meta/ancestry.pl @@ -177,6 +177,7 @@ sub BuildCommitHistory next if $enumName eq "SAI_API_MAX"; next if $enumName eq "SAI_OBJECT_TYPE_MAX"; next if $enumName eq "SAI_PORT_INTERFACE_TYPE_MAX"; + next if $enumName eq "SAI_PORT_BREAKOUT_MODE_TYPE_MAX"; LogError "wrong initializer on $enumName $enumValue" if not $enumValue =~ /^0x[0-9a-f]{8}$/; @@ -207,6 +208,7 @@ sub BuildCommitHistory { #print "elsif (defined $enumName $IGNORED{$enumName} and $IGNORED{$enumName} eq $HISTORY{$enumTypeName}{$enumName}{name})"; + next if $HISTORY{$enumTypeName}{$enumValue} eq "SAI_PORT_BREAKOUT_MODE_TYPE_MAX"; LogWarning "Both enums have the same value $enumName and $HISTORY{$enumTypeName}{$enumValue} = $enumValue"; } } diff --git a/meta/checkheaders.pl b/meta/checkheaders.pl index ac77450cc..46c40cb35 100755 --- a/meta/checkheaders.pl +++ b/meta/checkheaders.pl @@ -194,6 +194,7 @@ sub CheckHash next if $key eq "SAI_OBJECT_TYPE_MAX"; next if $key eq "SAI_API_MAX"; next if $key eq "SAI_PORT_INTERFACE_TYPE_MAX"; + next if $key eq "SAI_PORT_BREAKOUT_MODE_TYPE_MAX"; # NOTE: some other attributes/enum with END range could be added }