Skip to content

Commit a700f06

Browse files
abhishek-7tjchadaga
authored andcommitted
Add SAI_HASH_ALGORITHM_END to sai_hash_algorithm_t enum. (#2255)
Signed-off-by: Abhishek Verma <abhve@google.com>
1 parent ffbb1fe commit a700f06

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

inc/saiswitch.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,11 @@ typedef enum _sai_switch_switching_mode_t
187187
*/
188188
typedef enum _sai_hash_algorithm_t
189189
{
190+
/** Start of hash algorithms */
191+
SAI_HASH_ALGORITHM_START = 0,
192+
190193
/** CRC based hash algorithm */
191-
SAI_HASH_ALGORITHM_CRC = 0,
194+
SAI_HASH_ALGORITHM_CRC = SAI_HASH_ALGORITHM_START,
192195

193196
/** XOR-based hash algorithm */
194197
SAI_HASH_ALGORITHM_XOR = 1,
@@ -220,6 +223,8 @@ typedef enum _sai_hash_algorithm_t
220223
/** Upper 16 bits of Jenkins hash algorithm */
221224
SAI_HASH_ALGORITHM_JENKINS_HI = 10,
222225

226+
/** End of hash algorithms */
227+
SAI_HASH_ALGORITHM_END
223228
} sai_hash_algorithm_t;
224229

225230
/**

0 commit comments

Comments
 (0)