Skip to content

Commit

Permalink
Introduce a new role for DPU-NPU Interconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Reddy Karri <[email protected]>
Co-authored-by: Sudharsan Dhamal Gopalarathnam <[email protected]>
  • Loading branch information
vivekrnv and dgsudharsan authored Apr 8, 2024
1 parent 0f70775 commit f6dd9ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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

0 comments on commit f6dd9ca

Please sign in to comment.