Skip to content

Commit

Permalink
SAI submodule update to bring saithrift changes for syncd bookworm (#…
Browse files Browse the repository at this point in the history
…1370)

* SAI submodule update to bring saithrift changes for bookworm
syncd

Signed-off-by: Keshav Gupta <keshavg@marvell.com>

* Fix build issues

Signed-off-by: Keshav Gupta <keshavg@marvell.com>

* Add tests for code coverage

Signed-off-by: Keshav Gupta <keshavg@marvell.com>

---------

Signed-off-by: Keshav Gupta <keshavg@marvell.com>
Co-authored-by: Saikrishna Arcot <sarcot@microsoft.com>
  • Loading branch information
Keshavg-marvell and saiarcot895 authored Apr 15, 2024
1 parent be47489 commit c41a0cb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SAI
Submodule SAI updated 201 files
2 changes: 2 additions & 0 deletions lib/sai_redis_dash_eni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ REDIS_BULK_CREATE_ENTRY_EX(ENI_ETHER_ADDRESS_MAP_ENTRY, eni_ether_address_map_en
REDIS_BULK_REMOVE_ENTRY_EX(ENI_ETHER_ADDRESS_MAP_ENTRY, eni_ether_address_map_entry, eni_ether_address_map_entries);

REDIS_GENERIC_QUAD(ENI, eni);
REDIS_GENERIC_STATS(ENI, eni);
REDIS_BULK_CREATE(ENI, enis);
REDIS_BULK_REMOVE(ENI, enis);

Expand All @@ -14,6 +15,7 @@ const sai_dash_eni_api_t redis_dash_eni_api = {
redis_bulk_remove_eni_ether_address_map_entries,

REDIS_GENERIC_QUAD_API(eni)
REDIS_GENERIC_STATS_API(eni)
redis_bulk_create_enis,
redis_bulk_remove_enis,
};
3 changes: 3 additions & 0 deletions unittest/lib/test_sai_redis_dash_eni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ TEST(libsairedis, dash_eni)
EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_eni(0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->set_eni_attribute(0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_attribute(0,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_stats(0,0,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_stats_ext(0,0,0,SAI_STATS_MODE_READ,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->clear_eni_stats(0,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->create_enis(0,0,0,0,SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_enis(0,0,SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,0));
}
3 changes: 3 additions & 0 deletions unittest/vslib/test_sai_vs_dash_eni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ TEST(libsaivs, dash_eni)
EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_eni(0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->set_eni_attribute(0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_attribute(0,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_stats(0,0,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_stats_ext(0,0,0,SAI_STATS_MODE_READ,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->clear_eni_stats(0,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->create_enis(0,0,0,0,SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,0,0));
EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_enis(0,0,SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,0));
}
2 changes: 2 additions & 0 deletions vslib/sai_vs_dash_eni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ VS_BULK_CREATE_ENTRY_EX(ENI_ETHER_ADDRESS_MAP_ENTRY, eni_ether_address_map_entry
VS_BULK_REMOVE_ENTRY_EX(ENI_ETHER_ADDRESS_MAP_ENTRY, eni_ether_address_map_entry, eni_ether_address_map_entries);

VS_GENERIC_QUAD(ENI, eni);
VS_GENERIC_STATS(ENI, eni);
VS_BULK_CREATE(ENI, enis);
VS_BULK_REMOVE(ENI, enis);

Expand All @@ -14,6 +15,7 @@ const sai_dash_eni_api_t vs_dash_eni_api = {
vs_bulk_remove_eni_ether_address_map_entries,

VS_GENERIC_QUAD_API(eni)
VS_GENERIC_STATS_API(eni)
vs_bulk_create_enis,
vs_bulk_remove_enis,
};

0 comments on commit c41a0cb

Please sign in to comment.