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 3C27842FBA; Thu, 3 Aug 2023 01:26:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C6E243274; Thu, 3 Aug 2023 01:26:12 +0200 (CEST) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mails.dpdk.org (Postfix) with ESMTP id ACEB243267 for ; Thu, 3 Aug 2023 01:26:08 +0200 (CEST) Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-563dc551518so180111a12.2 for ; Wed, 02 Aug 2023 16:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691018767; x=1691623567; 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=cOytosNUQpn5ZSemwASEZ9gXXxtA/YuCmz/fwypEK2c=; b=ckI9X5YGgb8KLoFqKSq3r3bDjplTmbipU7ZacRrilCKxt8T/hGD3Q3PTO7AzFn7mzY bN3podvHcx2cxTCPGGnm9Rp2JyGzewz/jhzp48iQWml+PgWoLSLYhThCePjD1rsu0S23 G5LeHYgUsRvniYPEMsniFT3q0XcR26oR+6TX5TIEAZ3pNGaNc0myYcmgEneIJLvUVlf2 c+1MS06UbJTzfz9m56L7wdF/glvIIlL9EKlh9v7FFaGa051t3oqnAbBrouEa1WsiLIAs 6LybdcbxzvMkj57PUjElTODb+BaQhv2jmioj3E6TFt5YMr9FITWPZfAfshCTg934LRvS ae4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691018767; x=1691623567; 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=cOytosNUQpn5ZSemwASEZ9gXXxtA/YuCmz/fwypEK2c=; b=LfgC7GBMUVksOPuzABdUFyIWc2gDQ2ctRXMV/rbAO5TC7Q6OioeLEopgzK78KlOggI 6mbz3c9E9AMjC136PltDBCkt3uF4d/AeqIMXp8LUlpP6nJO47EnjPZEJPeMClpoJzdgv 55u6zusccwK5JyaXm54StR3S1zPVLpmAlmxDep6Fw/l4sb49xE4YvvTFmjAzvpQkl8PW d5loULKwsW+GY2REux//lsHsBzry2G8DII/JeYS2g2FeLJqx0V/ofnU+lw7Dr2IwuU38 ytVA24EyPJyuV8KPuG+HYQNEx8aWotHQjfG29kB0LakBUyggwPAYvAYrVLZVl8mg1CNJ 7eRA== X-Gm-Message-State: ABy/qLahljMYCWEp4r+U7erD5LnSGVSgbbuLIp29fq4dXcDj7NnPefic 0sJF0maKhRUD/B61Tbi1gAoFw6ZKqgFZe4WEHzr6NA== X-Google-Smtp-Source: APBJJlF/tuPmytqHQXmdFHXEqk+VOenIUKvBy0oCc8Gogsvjdj8yc4Iz0+rfD0k7XykiyktZNR7vhQ== X-Received: by 2002:a05:6a20:734e:b0:13e:2080:aba2 with SMTP id v14-20020a056a20734e00b0013e2080aba2mr9524107pzc.38.1691018767645; Wed, 02 Aug 2023 16:26:07 -0700 (PDT) Received: from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207]) by smtp.gmail.com with ESMTPSA id jd20-20020a170903261400b001b8b0ac2258sm12960870plb.174.2023.08.02.16.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 16:26:07 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson Subject: [PATCH v4 07/19] net/ring: replace use of sanity Date: Wed, 2 Aug 2023 16:25:38 -0700 Message-Id: <20230802232550.125487-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230802232550.125487-1-stephen@networkplumber.org> References: <20230517161603.117728-1-stephen@networkplumber.org> <20230802232550.125487-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 c43dccea7ffe..3f8faff2c94b 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