From f6dd9caae83f7cc05302645c30cf162822a537a6 Mon Sep 17 00:00:00 2001 From: Vivek Date: Mon, 8 Apr 2024 14:25:08 -0700 Subject: [PATCH] Introduce a new role for DPU-NPU Interconnect Signed-off-by: Vivek Reddy Karri Co-authored-by: Sudharsan Dhamal Gopalarathnam --- orchagent/port.h | 3 ++- orchagent/port/porthlpr.cpp | 3 ++- orchagent/port/portschema.h | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/orchagent/port.h b/orchagent/port.h index e4a15c17ad..dc8241ce3a 100644 --- a/orchagent/port.h +++ b/orchagent/port.h @@ -97,7 +97,8 @@ class Port Ext, // external Int, // internal Inb, // inband - Rec // recirculation + Rec, // recirculation + Dpc // DPU Connect Port on SmartSwitch }; public: diff --git a/orchagent/port/porthlpr.cpp b/orchagent/port/porthlpr.cpp index f6463b0af5..419cb7ff84 100644 --- a/orchagent/port/porthlpr.cpp +++ b/orchagent/port/porthlpr.cpp @@ -114,7 +114,8 @@ static const std::unordered_map 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 ---------------------------------------------------------------------------------------------------------- diff --git a/orchagent/port/portschema.h b/orchagent/port/portschema.h index 56b2541c37..5c4ad0d542 100644 --- a/orchagent/port/portschema.h +++ b/orchagent/port/portschema.h @@ -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"