You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete-side counterparts for the copp config commands:
delete copp cpu-queue <id> - remove the whole sw.cpuQueues[]
entry; refused while rxReason mappings (the ordered list or the
deprecated rxReasonToCPUQueue map, which the agent still reads as
a fallback) or matchToAction actions (send-to-queue,
user-defined-trap) still reference the queue id, naming each
referencing entry
delete copp reason <reason-name> - remove the
rxReasonToQueueOrderedList entry
Per-attribute deletes (cpu-queue <id> name, cpu-queue <id> rate-limit)
are left for a follow-up.
Queue-id parsing/lookup and reason-name parsing move out of
CmdConfigCopp.cpp into the copp_cpu_queue and copp_reason namespaces in
a new CoppUtils.{h,cpp} so the config and delete trees share one
implementation. Both handlers save with ConfigActionLevel::HITLESS,
matching the config-side handlers.
This also introduces the `delete copp` parent command node, which does
not exist upstream yet (#1379 adds it too, for the cpu-traffic-policy
delete; whichever lands second is a trivial merge).
0 commit comments