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 D8A5942B4B; Fri, 19 May 2023 19:47:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E17FE42D65; Fri, 19 May 2023 19:46:26 +0200 (CEST) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mails.dpdk.org (Postfix) with ESMTP id 8892F42D3A for ; Fri, 19 May 2023 19:46:23 +0200 (CEST) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5304913530fso3281301a12.0 for ; Fri, 19 May 2023 10:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1684518382; x=1687110382; 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=lMQf3qTN8Fulc3SikVUCZY/No0nJ3UQ1aiWZC2NKDME=; b=dWhbk1naoGoYCKDNwkz8UuLutUeXvbcVBbMuIp3c9Jw03Lu1QIF6kIG/4TJGJX7WbB J9Q22aqqn/k//AwNi9CrrbYrFTj43oz+TAlhgrucJBMsiScSxlJtu7ZeMS4fhYIVoSfa A/+hj5vUKuYTEDLdx39VAcGSUxD1fp9X71XhJGYVXTKFoJF4RkT2wv5m5hlqS6BiuHYD LXzt9Ay1xNVZ88zfywpJ6thxcRcwWYrSBVzf8hcsBk1WNXhy4jWEd+LqkMISVI5zHZDP IFw2aHPoAZFvwVqjGcV5fhOGrKsL7c5cV6eKGW4tsmi8cWoG5l+wIwtDPbLMXdCVl4tL YuXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684518382; x=1687110382; 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=lMQf3qTN8Fulc3SikVUCZY/No0nJ3UQ1aiWZC2NKDME=; b=N76fYcaLnfZV/pmzImdFZxiZw/vhAg0qg/2uGzRjCnrNYhkbXD/cf18Xno/+45MU3S memIKt+k3lKUckSZtL7bpM5g1HborjYS9oC6TYwIQyEhPA8NXHxRCHnnYhwrsymSH6kF p4dnJGPIjgE5fqn9r+/6DseWaMLkb2mkp/KXVM3ft1XNr/lI4NuyAg0OVnko/rN1yYQo Jsj31emGO4YcnX18BQ7yGrZ2NjA9AOfOhWoL/zf7cvEVhgvbYcDAgTSFO8xg4LWR35fE ClICLQ0OhA96fiagsG2D0WNpDACtt0+qONYoYWpHI5FiCiC9WBaKLjNVviZRQQYYFfOE OWEQ== X-Gm-Message-State: AC+VfDw+SPFsS8Hyi+1CA0IHuyZOUU5YMg4+OxfRt9pUfccpBycqRbSo qefAOQ/NjyR/31Dqt0HkoDBiNCdaPSq5TiMXWgOilg== X-Google-Smtp-Source: ACHHUZ4/ZquND79+YuHYYAWpU5uwySsrzgA916NhHPPy1FUwXQ/oa77EGd21e8S/XfWCOe/BFm0Fiw== X-Received: by 2002:a17:90a:564a:b0:252:ad82:aeb7 with SMTP id d10-20020a17090a564a00b00252ad82aeb7mr2848961pji.38.1684518382510; Fri, 19 May 2023 10:46:22 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id e3-20020a170902744300b001aaf2e7b06csm3713101plt.132.2023.05.19.10.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 10:46:22 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson Subject: [PATCH v3 07/19] net/ring: replace use of sanity Date: Fri, 19 May 2023 10:45:59 -0700 Message-Id: <20230519174611.11232-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230519174611.11232-1-stephen@networkplumber.org> References: <20230517161603.117728-1-stephen@networkplumber.org> <20230519174611.11232-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 e8bc9b627102..e36742fda84f 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 { @@ -591,10 +591,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.39.2