Skip to content

Commit

Permalink
Add VLAN support
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Oct 10, 2024
1 parent fa37fd6 commit 2efa8b6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dash-pipeline/SAI/src/sai_dash_vlan.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "saiimpl.h"

DASH_GENERIC_QUAD(VLAN,vlan);
DASH_GENERIC_QUAD(VLAN_MEMBER,vlan_member);

sai_vlan_api_t dash_sai_vlan_api_impl = {

DASH_GENERIC_QUAD_API(vlan)
DASH_GENERIC_QUAD_API(vlan_member)

.create_vlan_members = 0,
.remove_vlan_members = 0,
.get_vlan_stats = 0,
.get_vlan_stats_ext = 0,
.clear_vlan_stats = 0,
};
1 change: 1 addition & 0 deletions dash-pipeline/SAI/templates/saifixedapis.cpp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sai_status_t sai_api_query(
API(SWITCH,switch);
API(BUFFER,buffer);
API(DTEL,dtel);
API(VLAN,vlan);

{% for api in api_names %}
case SAI_API_{{ api | upper }}:
Expand Down
1 change: 1 addition & 0 deletions dash-pipeline/SAI/templates/saiimpl.h.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ DASH_PRIVATE extern sai_router_interface_api_t dash_sai_router_interface_
DASH_PRIVATE extern sai_switch_api_t dash_sai_switch_api_impl;
DASH_PRIVATE extern sai_dtel_api_t dash_sai_dtel_api_impl;
DASH_PRIVATE extern sai_buffer_api_t dash_sai_buffer_api_impl;
DASH_PRIVATE extern sai_vlan_api_t dash_sai_vlan_api_impl;

{% for api in api_names %}
DASH_PRIVATE extern sai_{{ api }}_api_t dash_sai_{{ api }}_api_impl;
Expand Down

0 comments on commit 2efa8b6

Please sign in to comment.