From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5020945D0B for ; Fri, 15 Nov 2024 07:08:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2AD5842FB1; Fri, 15 Nov 2024 07:08:03 +0100 (CET) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id D2D0442F7B for ; Fri, 15 Nov 2024 07:07:56 +0100 (CET) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-7f46d5d1ad5so1017280a12.3 for ; Thu, 14 Nov 2024 22:07:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731650876; x=1732255676; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SnsSElF7pGVldQIwznNnqO3m1XgrEnDUh+7kEk0mglc=; b=AlCujfu2BCFfrVMblee9edQ1MxamjXFOyiizj+s6iuG1eNqrsScSrV9zcuRpXDl0+u hR9mygYpOsDqkJNoKsm3xG4zhaqTKSNo6eY51ZSVB65XcRYxyjru0FCA+uXJuSAttPWu ZQFUsdSbzcj2CRitQm0Q7Mrxji4FXLFjUfFwVgkpe6Kh5PKAyPaKhbUotg0LJtu6zjx3 lC/vPVU3e8R824Ng1xt7lTonitc9iAStyuGiXR/yTkoyDK/31L1PimxRqBV9yBrThme0 FE06/Kg4Iz7Ik+vH2T3wlx8uoE9MooggBxwcAYMMhL2ZDmBl4vjOL5CVegABFn/1fdJA aIDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731650876; x=1732255676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SnsSElF7pGVldQIwznNnqO3m1XgrEnDUh+7kEk0mglc=; b=tvcIJBQGlgPNMh2zdmnfuodMIL4BNHJRIyy6yLWUmP4muAIe/7BIn4bygwUGaLyqYH qTEPNTy8HgBaThWECE6ylSsaliJ01qv2ZMWMtnjXhC6SLRa3s5ABtvYNs4Psiox6RVtS cSoEVkuAKFyuDRVw5Jc8ErnH8gVC4V2ZH1deGXepyIvRk8QouU1A5wlM/x75IMMmfZD3 NRawkXyBXq8z61ePCqeN3nLdnVxu4zePxwBayDAjtJwUQNKkEsZpkcBR8nJ4oJngYpmU /yEq0oCXKgw6IZRkyaGgcf/RX+pSM1IFjD9TGcZLIcb0swpFbdAUKv+WnOJ7SfDBwaKc Ph6w== X-Forwarded-Encrypted: i=1; AJvYcCWTS698BxdzH7+fysxg6PWGrN8jtvlKhshXwlbt6gFW58rLkEf6V0y3N2dFGGVsPmrj099bV5Y=@dpdk.org X-Gm-Message-State: AOJu0YxbI2B3pE+pDaaLQlhXMQE4yfR6OfP4JzUiO5xOR4YPyY13Wsl5 MQCmSi6e87N3AHfe+Rw8ATMBOy2J+UP6GliCDGopqvwhGsCdjMnCQZC8o/kwFMg= X-Google-Smtp-Source: AGHT+IHKdfLie8xyvgkjMYCtcHoc9qunjRoVRYi+Bo+XLo6G5k8U5lceg3fSFKIm5TrEpoVv4RTfsw== X-Received: by 2002:a05:6a21:789f:b0:1db:ff9d:1560 with SMTP id adf61e73a8af0-1dc90b46e3emr2145877637.18.1731650875967; Thu, 14 Nov 2024 22:07:55 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ea06f4856esm2123781a91.23.2024.11.14.22.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 22:07:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , rmody@marvell.com, stable@dpdk.org, Devendra Singh Rawat , Alok Prasad , Igor Russkikh Subject: [PATCH 07/16] net/qede: fix missing debug string Date: Thu, 14 Nov 2024 22:05:44 -0800 Message-ID: <20241115060738.313190-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241115060738.313190-1-stephen@networkplumber.org> References: <20241115060738.313190-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The array of debug status strings did not match possible enum values. Add the missing element and a static assert to make sure the table has all possible values. For more complete description see. Link: https://pvs-studio.com/en/blog/posts/cpp/1176/ Fixes: ec55c118792b ("net/qede: add infrastructure for debug data collection") Cc: rmody@marvell.com Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger --- drivers/net/qede/qede_debug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/qede/qede_debug.c b/drivers/net/qede/qede_debug.c index 18f2d988fb..4997f98a5d 100644 --- a/drivers/net/qede/qede_debug.c +++ b/drivers/net/qede/qede_debug.c @@ -5614,6 +5614,8 @@ static const char * const s_status_str[] = { /* DBG_STATUS_INVALID_FILTER_TRIGGER_DWORDS */ "The filter/trigger constraint dword offsets are not enabled for recording", + /* DBG_STATUS_NO_MATCHING_FRAMING_MODE */ + "No matching frame mode", /* DBG_STATUS_VFC_READ_ERROR */ "Error reading from VFC", @@ -5759,6 +5761,7 @@ static const char * const s_status_str[] = { /* DBG_STATUS_MISSING_TRIGGER_STATE_STORM */ "When triggering on Storm data, the Storm to trigger on must be specified" }; +static_assert(MAX_DBG_STATUS == RTE_DIM(s_status_str), "status string table mismatch"); /* Idle check severity names array */ static const char * const s_idle_chk_severity_str[] = { -- 2.45.2