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 C7D6F43A3D; Mon, 5 Feb 2024 19:05:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9799F410FC; Mon, 5 Feb 2024 19:03:53 +0100 (CET) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id 7D99640E7C for ; Mon, 5 Feb 2024 19:03:49 +0100 (CET) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1d746856d85so35117795ad.0 for ; Mon, 05 Feb 2024 10:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1707156229; x=1707761029; 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=HE2SUGyOs3ZpiLiWyOpzagSFc7cwYc1MQ4IEOKUS/u0=; b=ZVxyahCT1M7ecsDXAH9FSparRwhCDI9U0nH7/0JzRLd5hnaA+zB6u3H3aU6PjVuvWw yEnaxvuMiTgZertlFzu2Zbtc5foITHQootj8tHsGH9mRpJnAZKe3A04UHypt0VS+s0gi o2FsOZi4l/i92AmaF0Cq+QsKB8QsXPvTuuUdXirmtDnhlx9YU1vaCUEaUEOVJmk9rVpr mhtnIvA5D//bGQHD/gzo2IFDeRVh9n3c8TA6aamc1QEKXIBBYoR1mEt1tGhNlgUUS4jc WzPwsm51euVsV8YrtRB2udfXnwJ4nN9h5oSwx/iBBI6dn7aFEIBQVn7lCfFShFsa1VD7 fJ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707156229; x=1707761029; 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=HE2SUGyOs3ZpiLiWyOpzagSFc7cwYc1MQ4IEOKUS/u0=; b=lbluZ047NcToWyQNDcWSIXpaWsHa8GQOK6YBdSVBh0CJo5H0uDKgyAwMV3RTO8fqz6 FjJxz5GrkxPgjcCwaCHXqKoXt86pQGrE6ay55K3KT7vsZxM+dCBEoV0Sg/IHlET5BSKr 8XF543hfradJ8h3S6D76Mc2+aM9w6u06mDfhto90yaTe0H1HWIuRLOqqLYW5egn/4Hcp wE13u9+EIYNKve+RelAbcoNhQ7q2bNOLjIor0ZEttaIqGHwGCT89TjNI+9IAaHsrTTjz S9vtXy6SPND4XUvDWhjpa0uBlATl79AlR4wLXWWr8WL10LhHQLQ/6LinUSpV3xbKLN2F qmJA== X-Gm-Message-State: AOJu0YwWpvHax8Sy7I5y6WmFyFHG15bmsWDi4k/5J07UmGTHE5h38vCd FC2CRZxZ9xNtLa4nMTsCjrNtF0ZrLOfY25C8EA78y4vof31c/BPg3efxEJaOYW5URMyfhQO0Eg1 7rVU= X-Google-Smtp-Source: AGHT+IEJ36oUfE4zbYqZe3iRMPUZOGwDcrd7AL6AwOSMazpbxLV1C1apXjUJtHEhTXNilIjQP0tl7g== X-Received: by 2002:a17:902:d4c5:b0:1d9:95c5:2975 with SMTP id o5-20020a170902d4c500b001d995c52975mr285940plg.26.1707156228763; Mon, 05 Feb 2024 10:03:48 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCX/cjDNlqvtCJ850+iiWAJagnrTv94jf0FCCSzjc4p+VaOL5n9f8SeTjFDlzbSmjrzOpW2g2a9fMcsgnlcoEbtxUe9UedqJP8gZmA== Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id x8-20020a170902b40800b001d9b0a15bbfsm144867plr.262.2024.02.05.10.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 10:03:48 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson Subject: [PATCH v9 11/23] net/ring: replace use of sanity Date: Mon, 5 Feb 2024 09:43:39 -0800 Message-ID: <20240205180328.131019-12-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240205180328.131019-1-stephen@networkplumber.org> References: <0230331200824.195294-1-stephen@networkplumber.org> <20240205180328.131019-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.43.0