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 993C844107; Thu, 30 May 2024 01:39:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F02340DCE; Thu, 30 May 2024 01:39:06 +0200 (CEST) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 0E7FB40289 for ; Thu, 30 May 2024 01:38:21 +0200 (CEST) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2bfdae0b0e0so235276a91.0 for ; Wed, 29 May 2024 16:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1717025900; x=1717630700; 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=H2riqw3f0POwJEge0XVOapup74T2F1I8ILDmuiS2ouc=; b=MDiqePpJ8whbCMcx711KdmLyXHdWww8n0kW9TSWZ92ZpHqzhzsX+ThJt3QQ1H2NeBw fl60kcYxhCDVBpY62m4JFGU/TiTwG/5le/Q6IIkuE+y2ovLpKRFErn73hKMBDA9gP26Y Q3l+IzIfn4DkMgeNzsk3UQCEIe4168UzpcrgDx86jOnNywepE6mCZdzFrW09L38neQG3 /DFG6/3gd9WXeY9WU3ZloKXhy6ZLEY6LT5AkqzGEhnJ5WlKpcKQ3w/oQEti6iXrgWa10 S+7lRP53w5jv0uI6BMp1AzDRMqgPkFd1KS81WZMTjyvV2V6qJ2kGOixQA57enIS5UuNV jjnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717025900; x=1717630700; 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=H2riqw3f0POwJEge0XVOapup74T2F1I8ILDmuiS2ouc=; b=E1pA6JJgpObhPWT8r+U7xyb2mW7PNVV/5Woi+yjDt3MwfcErf/d4gJ6qFrZekRaLKC key0gnJ3dI9eWEu+oNw8AnNfwDycTrGdw5qcR0WGia0ZcaJGb/KpHdswrZmVfgSdVafY 0nQblalRTgpE1kn/W3if5mRemF18nVLpUuRoHqCkiEV3RifbfY6r+UdLafT2IQdxchJC zk0QYl5HI7jlNXIbjmfoEyYh0CmnD6F3nbVZCdtPpXotwKgp11YdEu9XBCZsv1WjGJAt H/LmOmcKiKCmRnzxbswhXoqo4rmPBiaBzroiJtBh1YHpF+q4KpcxHwbG/7TsP5B62ETH 6tlw== X-Gm-Message-State: AOJu0YyCPL9QEwC4Yb/ZN5Q3Pb02P0gydC9vzqcweeZgVqrJMWWW3U+q or5v7nitybxg6tCPkD+OhuCK1f4szTlJfdSlAn/sivix+Vh+qZhsJJ+sdxcYnnHWdpFeRMLbXRK 1 X-Google-Smtp-Source: AGHT+IHMu3RgCCd4tTExcw0KKWq71IseHOec30EnyvcfhEM8QqLRGGTbyBTILYNXMI2/MlzU0Xb0pQ== X-Received: by 2002:a17:90a:8592:b0:2c1:a50c:5469 with SMTP id 98e67ed59e1d1-2c1abc4c1e3mr624954a91.42.1717025900195; Wed, 29 May 2024 16:38:20 -0700 (PDT) Received: from hermes.lan (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a7761d78sm353955a91.12.2024.05.29.16.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 16:38:19 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v10 07/20] net/ring: replace use of sanity Date: Wed, 29 May 2024 16:33:41 -0700 Message-ID: <20240529233811.663211-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240529233811.663211-1-stephen@networkplumber.org> References: <20240529233811.663211-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 b16f5d55f2..1788e68cf3 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