Skip to content

Commit f6dd9ca

Browse files
Introduce a new role for DPU-NPU Interconnect
Signed-off-by: Vivek Reddy Karri <[email protected]> Co-authored-by: Sudharsan Dhamal Gopalarathnam <[email protected]>
1 parent 0f70775 commit f6dd9ca

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

orchagent/port.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ class Port
9797
Ext, // external
9898
Int, // internal
9999
Inb, // inband
100-
Rec // recirculation
100+
Rec, // recirculation
101+
Dpc // DPU Connect Port on SmartSwitch
101102
};
102103

103104
public:

orchagent/port/porthlpr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ static const std::unordered_map<std::string, Port::Role> portRoleMap =
114114
{ PORT_ROLE_EXT, Port::Role::Ext },
115115
{ PORT_ROLE_INT, Port::Role::Int },
116116
{ PORT_ROLE_INB, Port::Role::Inb },
117-
{ PORT_ROLE_REC, Port::Role::Rec }
117+
{ PORT_ROLE_REC, Port::Role::Rec },
118+
{ PORT_ROLE_DPC, Port::Role::Dpc }
118119
};
119120

120121
// functions ----------------------------------------------------------------------------------------------------------

orchagent/port/portschema.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#define PORT_ROLE_INT "Int"
5252
#define PORT_ROLE_INB "Inb"
5353
#define PORT_ROLE_REC "Rec"
54+
#define PORT_ROLE_DPC "Dpc"
5455

5556
#define PORT_ALIAS "alias"
5657
#define PORT_INDEX "index"

0 commit comments

Comments
 (0)