Skip to content

Commit 767c325

Browse files
authored
Add new enum to support 8 lanes breakout mode (opencomputeproject#2009)
Add new breakout mode enum to "sai_port_breakout_mode_type_t", /** 8 lanes breakout Mode */ SAI_PORT_BREAKOUT_MODE_TYPE_8_LANE = 3,
1 parent 9ed7d3f commit 767c325

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

inc/saiport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ typedef enum _sai_port_breakout_mode_type_t
231231
/** 4 lanes breakout Mode */
232232
SAI_PORT_BREAKOUT_MODE_TYPE_4_LANE = 2,
233233

234+
/** 8 lanes breakout Mode */
235+
SAI_PORT_BREAKOUT_MODE_TYPE_8_LANE = 3,
236+
234237
/** Breakout mode max count */
235238
SAI_PORT_BREAKOUT_MODE_TYPE_MAX
236239
} sai_port_breakout_mode_type_t;

meta/ancestry.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ sub BuildCommitHistory
177177
next if $enumName eq "SAI_API_MAX";
178178
next if $enumName eq "SAI_OBJECT_TYPE_MAX";
179179
next if $enumName eq "SAI_PORT_INTERFACE_TYPE_MAX";
180+
next if $enumName eq "SAI_PORT_BREAKOUT_MODE_TYPE_MAX";
180181

181182
LogError "wrong initializer on $enumName $enumValue" if not $enumValue =~ /^0x[0-9a-f]{8}$/;
182183

@@ -207,6 +208,7 @@ sub BuildCommitHistory
207208
{
208209
#print "elsif (defined $enumName $IGNORED{$enumName} and $IGNORED{$enumName} eq $HISTORY{$enumTypeName}{$enumName}{name})";
209210

211+
next if $HISTORY{$enumTypeName}{$enumValue} eq "SAI_PORT_BREAKOUT_MODE_TYPE_MAX";
210212
LogWarning "Both enums have the same value $enumName and $HISTORY{$enumTypeName}{$enumValue} = $enumValue";
211213
}
212214
}

meta/checkheaders.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ sub CheckHash
195195
next if $key eq "SAI_OBJECT_TYPE_MAX";
196196
next if $key eq "SAI_API_MAX";
197197
next if $key eq "SAI_PORT_INTERFACE_TYPE_MAX";
198+
next if $key eq "SAI_PORT_BREAKOUT_MODE_TYPE_MAX";
198199

199200
# NOTE: some other attributes/enum with END range could be added
200201
}

0 commit comments

Comments
 (0)