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 96E9943403; Wed, 29 Nov 2023 18:33:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9FB7242E75; Wed, 29 Nov 2023 18:31:55 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 153CC42E8A for ; Wed, 29 Nov 2023 18:31:50 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6cbd24d9557so5121b3a.1 for ; Wed, 29 Nov 2023 09:31:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701279109; x=1701883909; 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=2BRWx5O95zlaiPh7i2kS5M8xLSk8a7cvqGAMKkSSxW4=; b=zPfZ+5vxnCgjyf1AwatdNZQLsxaDuwjBwI/9+cLKfQ5Z5q5F3ItmilC6dvETIdY1uf 5tSfhA7qPHw92DCM63dDyJHm56rC6u+QW2VTeuu+ZhCWozkMNQ4kJ6/A6cWXMlvXn3QA 3dEtrhL2PJulOTte+fkNlSWO+BUhzLbrKH1D1eV7wDP7rSwb0OLU9wlGqfUJiFs+Uo9O 1ycqyZz+SbsfbRvqsaDX8Hk+sSofJ0z2iLu0uiTJE+5VT1Mym+Wk/l+rKEsmfsqCmBkJ dkLo2pS94nlGWaAtAW2qB4sTYqZCKHWcxh7ylNYh++XNPrfTywRMCeFNUTsx8I1DJtvu Tw8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701279109; x=1701883909; 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=2BRWx5O95zlaiPh7i2kS5M8xLSk8a7cvqGAMKkSSxW4=; b=DQV1/B9HTDOC8sexPKzZNJTkS0NQMvYuJ5q5AKd1A44OWd3bueqdRCMqeGq3bU/G8G PP9Z/bDaZKXrjOZHrT7G9Je2QLTI6KicyGH7sqd4XL7BnMOjZ7+6CwDgbhyuc8LnmC8P KWHEKY0eJmzfNNADfZgk3IKyN4ZSios5P52j+tPStmn/bWjKCY73V2+m42cG0EvyP7Gg tqoYRBhuM5S02EUhA9Ao1GUHBe26FYRcofutPKXxIjxbEhU315/Pb4BVVR66DCxGnVY5 XgEiDAVNAl5KQOAlWPJoeQr1K8n12m23R4Ly6u0vXwShTRJd41yQroGPmYRV4lV/dpFw 8t9w== X-Gm-Message-State: AOJu0YxpovFKjXRWGZhAv5VkTdPII2CDDv8AKNATRRP1Srjd9FHdzWmX BifUpdkVmT+HnBfQ7dQON3TSf8ARLYn+bVDAdlVUlw== X-Google-Smtp-Source: AGHT+IG4hEvoDMqpN8WUP/DDK8/0OuyN6LrK5H0QE3n9cWrfodvvWH+bD2FnHum308nhZpuUHWpF/A== X-Received: by 2002:a05:6a00:658a:b0:6cb:ba8d:96a7 with SMTP id hd10-20020a056a00658a00b006cbba8d96a7mr27442842pfb.14.1701279109005; Wed, 29 Nov 2023 09:31:49 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id y42-20020a056a0003aa00b006baa1cf561dsm10950435pfs.0.2023.11.29.09.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 09:31:48 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Julien Aube Subject: [PATCH v5 13/19] net/bnx2x: remove reference to sanity Date: Wed, 29 Nov 2023 09:26:07 -0800 Message-ID: <20231129173122.126895-14-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231129173122.126895-1-stephen@networkplumber.org> References: <20230802232550.125487-1-stephen@networkplumber.org> <20231129173122.126895-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Replace "sanity check" Signed-off-by: Stephen Hemminger --- drivers/net/bnx2x/bnx2x.c | 2 +- drivers/net/bnx2x/bnx2x_stats.c | 8 ++++---- drivers/net/bnx2x/ecore_sp.c | 2 +- drivers/net/bnx2x/elink.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c index c3283c94f38f..e345f293f25c 100644 --- a/drivers/net/bnx2x/bnx2x.c +++ b/drivers/net/bnx2x/bnx2x.c @@ -7820,7 +7820,7 @@ static int bnx2x_check_valid_mf_cfg(struct bnx2x_softc *sc) uint32_t ovlan2; uint8_t i, j; - /* various MF mode sanity checks... */ + /* various MF mode checks... */ if (mf_info->mf_config[SC_VN(sc)] & FUNC_MF_CFG_FUNC_HIDE) { PMD_DRV_LOG(NOTICE, sc, diff --git a/drivers/net/bnx2x/bnx2x_stats.c b/drivers/net/bnx2x/bnx2x_stats.c index c07b01510a06..86d90679ac0a 100644 --- a/drivers/net/bnx2x/bnx2x_stats.c +++ b/drivers/net/bnx2x/bnx2x_stats.c @@ -187,7 +187,7 @@ bnx2x_stats_pmf_update(struct bnx2x_softc *sc) */ return; } - /* sanity */ + /* input valid? */ if (!sc->port.pmf || !sc->port.port_stx) { PMD_DRV_LOG(ERR, sc, "BUG!"); return; @@ -237,7 +237,7 @@ bnx2x_port_stats_init(struct bnx2x_softc *sc) uint32_t mac_addr; uint32_t *stats_comp = BNX2X_SP(sc, stats_comp); - /* sanity */ + /* input valid? */ if (!sc->link_vars.link_up || !sc->port.pmf) { PMD_DRV_LOG(ERR, sc, "BUG!"); return; @@ -461,7 +461,7 @@ bnx2x_func_stats_init(struct bnx2x_softc *sc) struct dmae_command *dmae = &sc->stats_dmae; uint32_t *stats_comp = BNX2X_SP(sc, stats_comp); - /* sanity */ + /* input valid? */ if (!sc->func_stx) { PMD_DRV_LOG(ERR, sc, "BUG!"); return; @@ -1301,7 +1301,7 @@ bnx2x_port_stats_base_init(struct bnx2x_softc *sc) struct dmae_command *dmae; uint32_t *stats_comp = BNX2X_SP(sc, stats_comp); - /* sanity */ + /* input valid? */ if (!sc->port.pmf || !sc->port.port_stx) { PMD_DRV_LOG(ERR, sc, "BUG!"); return; diff --git a/drivers/net/bnx2x/ecore_sp.c b/drivers/net/bnx2x/ecore_sp.c index c6c3857778f7..158205266f62 100644 --- a/drivers/net/bnx2x/ecore_sp.c +++ b/drivers/net/bnx2x/ecore_sp.c @@ -207,7 +207,7 @@ static int ecore_exe_queue_step(struct bnx2x_softc *sc, break; } - /* Sanity check */ + /* Argument check */ if (!cur_len) return ECORE_SUCCESS; diff --git a/drivers/net/bnx2x/elink.c b/drivers/net/bnx2x/elink.c index 2c81f85b9605..6ebd47d927f8 100644 --- a/drivers/net/bnx2x/elink.c +++ b/drivers/net/bnx2x/elink.c @@ -1088,7 +1088,7 @@ static void elink_get_epio(struct bnx2x_softc *sc, uint32_t epio_pin, { uint32_t epio_mask, gp_oenable; *en = 0; - /* Sanity check */ + /* Input check */ if (epio_pin > 31) { ELINK_DEBUG_P1(sc, "Invalid EPIO pin %d to get", epio_pin); return; @@ -1105,7 +1105,7 @@ static void elink_set_epio(struct bnx2x_softc *sc, uint32_t epio_pin, uint32_t e { uint32_t epio_mask, gp_output, gp_oenable; - /* Sanity check */ + /* Input check */ if (epio_pin > 31) { ELINK_DEBUG_P1(sc, "Invalid EPIO pin %d to set", epio_pin); return; -- 2.42.0