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 EA47943403; Wed, 29 Nov 2023 18:32:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B2ABF42E84; Wed, 29 Nov 2023 18:31:47 +0100 (CET) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 1B60042E6C for ; Wed, 29 Nov 2023 18:31:43 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6cbd24d9557so5019b3a.1 for ; Wed, 29 Nov 2023 09:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701279102; x=1701883902; 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=eEJq66fEafoO7Z8FgI8tlsen8St50kybHKD46NzA7+I=; b=X9UXH0vOni0xyNUH0u4WHf4X5N1TEtuQ3wDQYMbBLzV/yJBdex+jgqvRTAhI2am6xm 3fwhMPdMI4sBeT4DSdVmavIhNyHCRQpvBF5eTGIKbKZ2/jkCmRERRT34iu0G5g9dVcVz nhhNKAlJFpavqwD7YA3hAdhBI9984w5xxcr1hWNq4F8m3dAux9QseeXq+PaAEYgG2KOh p6UArRwn9tVJM9Vm+lBisWUIeMextyzeOOhVm9MH73JecGCa/vmMVMX+AmPJrRj7s63u bz964FGa1xALT23WKF8IB0IhTsQVFXd/aOLTJzlETx5Z9vFQ7clvxhxhyv/G75b0BTaC M3Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701279102; x=1701883902; 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=eEJq66fEafoO7Z8FgI8tlsen8St50kybHKD46NzA7+I=; b=boC6WKobar5u1f0kWShIny6DDdlrVpgyFbejh+/tfYcLJbhpxw3+Ht8tZ8ijjChgUr IpX8YqLrVwZ7cbp7Btzw+Czfzx1RIZfAYF7qDPLvVV7rPHuqWVfivUg+HgGtThkIy2W+ khQbMdvY9XgpyYMhCHasGyphXMlYDDfnfNq6X73z9eNYOYAplQy0pnGFmm+Q4a3MpWZp Y1NKJgfh51giOE/ZZjxjMqZiYOS0y1EToPrhLuTWTy/uczqL7vx0+hPlI8QCqOdFtGUK wkfNF5GK6UFEv6h6y564yBGCWMaT4M9ntvSuhe5SNF+vhb9RFz9QdAqD0sChK1vhnCM7 JFTA== X-Gm-Message-State: AOJu0YzQ82tc0iMK/zq5hl68PYBS4EFtTz3fQvdOTbaZ+lyJgzWGwCxW XrnPaxpPxOxrpqYEMbYAmqaG2C/5qJ5CetgX34w= X-Google-Smtp-Source: AGHT+IGnvRPSV3Q313pM2uEs7SgP2DZuAPBEvf6XvCdAzfz9OTKMqvuDKjXu4+vzsrqYFTf0z6CxnA== X-Received: by 2002:a05:6a00:17a1:b0:6cd:dc48:1fff with SMTP id s33-20020a056a0017a100b006cddc481fffmr2159112pfg.0.1701279102108; Wed, 29 Nov 2023 09:31:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 09:31:41 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson Subject: [PATCH v5 07/19] net/ring: replace use of sanity Date: Wed, 29 Nov 2023 09:26:01 -0800 Message-ID: <20231129173122.126895-8-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 Don't use term sanity check Signed-off-by: Stephen Hemminger --- drivers/net/ring/rte_eth_ring.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 48953dd7a059..710fd9ebe526 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -34,7 +34,7 @@ struct ring_internal_args { struct rte_ring * const *tx_queues; const unsigned int nb_tx_queues; const unsigned int numa_node; - void *addr; /* self addr for sanity check */ + void *addr; /* self addr for verification */ }; enum dev_action { @@ -606,10 +606,7 @@ static int parse_kvlist(const char *key __rte_unused, *action = '\0'; action++; - /* - * Need to do some sanity checking here - */ - + /* Check the command argument is valid action */ if (strcmp(action, ETH_RING_ACTION_ATTACH) == 0) info->list[info->count].action = DEV_ATTACH; else if (strcmp(action, ETH_RING_ACTION_CREATE) == 0) -- 2.42.0