Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a new role for DPU-NPU Interconnect #29

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion orchagent/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class Port
Ext, // external
Int, // internal
Inb, // inband
Rec // recirculation
Rec, // recirculation
Dpc // DPU Connect Port on SmartSwitch
};

public:
Expand Down
3 changes: 2 additions & 1 deletion orchagent/port/porthlpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ static const std::unordered_map<std::string, Port::Role> portRoleMap =
{ PORT_ROLE_EXT, Port::Role::Ext },
{ PORT_ROLE_INT, Port::Role::Int },
{ PORT_ROLE_INB, Port::Role::Inb },
{ PORT_ROLE_REC, Port::Role::Rec }
{ PORT_ROLE_REC, Port::Role::Rec },
{ PORT_ROLE_DPC, Port::Role::Dpc }
};

// functions ----------------------------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions orchagent/port/portschema.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#define PORT_ROLE_INT "Int"
#define PORT_ROLE_INB "Inb"
#define PORT_ROLE_REC "Rec"
#define PORT_ROLE_DPC "Dpc"

#define PORT_ALIAS "alias"
#define PORT_INDEX "index"
Expand Down
Loading