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 C73E742B34; Thu, 18 May 2023 18:46:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C325842D85; Thu, 18 May 2023 18:46:01 +0200 (CEST) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id EF5FE42D52 for ; Thu, 18 May 2023 18:45:57 +0200 (CEST) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-64354231003so1068816b3a.0 for ; Thu, 18 May 2023 09:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1684428357; x=1687020357; 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=ezStfDMMq0BN98VeyQag2N+5Sb+aF6zHVOUgvgKXm7IPHwxM7oKNF62PEQUvO9YemB R2lqiRWY9a5krBEdejxHbBAi2ZnuQ2sElo3R/TVNv6PhSVk+BYR+D4p/rJ4BVkOPqs+H XF+s7m4MOgaIDyuo4CZ+ALcVyX/8QYpgTDxKQHJ1Hlg5Dzld5lgvjfX4hrgbeyXXnLhr K1akfn099OsyA3BIb+dgOwZYhg6tDTyu3cSBgtJ7aGTSaPN7j+IxmiDWtQzi2fROtxjj /clS77oOsj1cAldx9f+MGjif/F6nWPvTiSbW5lPMfJT4CMCiRo/E+60mNRO8wvc+gGu5 /IOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684428357; x=1687020357; 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=giegRuqBqPpz1tX7JypW5BooND4uxjHrtxFJiPPCux3TGcd3ehRs+Jq2wEGviS7zms 0W8BxIbeVoUoclprkIIvtJ5ihdaPfdPv90vgm/TFH/rgncRv4Mba/q9W7capJ3NGiwyD ykY4YIyMoILJd7o9YKHu2ZcSfVQu213Lt1bLFbvSLxS8jwdX3WUzSeQrfGv3CKTfxsTP aG5jhilaCjVR6QJLCaG8T38qWlne81kVCWYw5amNfB0SDjU/44XsWi6EF1gul3lUL87b aSyA4rNCUJFW0xrJW4UyRVqzBunFBLl12IXWO/fW+hwcMq7Os7CiNNZytDwRqFEkIdZd Lt/w== X-Gm-Message-State: AC+VfDwbEV5oBbDWqlaKvFHofYdNMYNWmMFsX4/EpyeU+WZwqXDQDD7f ds1HoiqfTlMlrRzjUWCNjbcExyT7UbnU2tzo1mSd0FLY X-Google-Smtp-Source: ACHHUZ5odKIXIvc98eVo/uCt8bb1wjILCCx3NSdHgN8DEaktC33EW/Jum1rK2IvkF7EXYPvuLQuG2Q== X-Received: by 2002:a05:6a00:1885:b0:63b:8dcc:84de with SMTP id x5-20020a056a00188500b0063b8dcc84demr4624215pfh.4.1684428356939; Thu, 18 May 2023 09:45:56 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id j7-20020a62e907000000b005e0699464e3sm1513579pfh.206.2023.05.18.09.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 May 2023 09:45:56 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson Subject: [PATCH v2 07/19] net/ring: replace use of sanity Date: Thu, 18 May 2023 09:45:34 -0700 Message-Id: <20230518164546.108105-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230518164546.108105-1-stephen@networkplumber.org> References: <20230517161603.117728-1-stephen@networkplumber.org> <20230518164546.108105-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