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 3A27443728; Wed, 20 Dec 2023 17:31:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87D23410F9; Wed, 20 Dec 2023 17:31:55 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id BA36240685 for ; Wed, 20 Dec 2023 17:31:53 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d3ab37d0d1so21205115ad.0 for ; Wed, 20 Dec 2023 08:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703089912; x=1703694712; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=NxjYEV3XpFLP0Efb4O9ceJ1wJdGnrxIiVEgZCjL5d3A=; b=JJR4VohqJqxEvDXJAaBAjPIF43XMeMyt1KN8mdhMueUAiIXFacn3cYfonkD0LnOQu/ XlrQ6ePvM1xVCmASPgu+GcYaOIO6OF/CmZarcjLdws1X7IhXFjT1ytFl8oBaKNxj3YCE tXxfSlfwlfOaKBd3CUzkCcOGXFNhVXp7LHc1XDREbvBOp08H8yGSK3cY1VMTPwuTvazX MUgW1MXS/AstF4012SCA4OsHywaKZkpqAXKOK9ZcFp6wtzu7jXOsNpuaA2Q6GqRWTC9K 5KsszfWv7631PBNQqqE2JeGyfqpysFT3W5FaKnKoSBgH1iFo8TkuZafiGpONC5WOWubK GqGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703089912; x=1703694712; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NxjYEV3XpFLP0Efb4O9ceJ1wJdGnrxIiVEgZCjL5d3A=; b=JpTFXrcOILDdcSJGonljGNauq+xVcdBTT9X5PLfo9KSl6faTLP1jlQIEh7/kuJGIRE DLdRV8EEWJH4Ey31KsaCeZNRAgO3gfJ2q7gGC1Bh2KT5wrhovNqVGeIfwUh34NA0wnht o56GORo+ktJ4M4fF6WNT4si51SqzRJRiYXPdhkda3NwFC3zZsAjWmNKgPuRpMfpvj9n7 5k+LsbXjg/YuZ+a6aHjQhx55lZUqyH+wxtr51dJj+4NhyCiF52lKQiS4LnvWdve5oEn/ LS+cZwAPibk8RgLYYEdsY92mqyMh5xjjmIh2INyWVud1wNjIyhstpWXHTtSRKt/zKB5R LcIw== X-Gm-Message-State: AOJu0YyGv4oONu2SAqxRUDtoQ9YoicCXL1+Hn1O5mV5XdvCGRzesw48L yZkxqUiL5KUFI/JBVhBkDq5yyA== X-Google-Smtp-Source: AGHT+IEkW7i7cUYgUgehpPZDmsTmbc85StDXNkoa1ipTv/wxhbDKaYgQSTbEAo0jZIk4XIdFXcvjHA== X-Received: by 2002:a17:902:654c:b0:1d3:f1fb:6060 with SMTP id d12-20020a170902654c00b001d3f1fb6060mr740884pln.56.1703089912572; Wed, 20 Dec 2023 08:31:52 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id e4-20020a170902744400b001d3ff4011a3sm47514plt.303.2023.12.20.08.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 08:31:52 -0800 (PST) Date: Wed, 20 Dec 2023 08:31:50 -0800 From: Stephen Hemminger To: Sivaprasad Tummala Cc: , , , , , , , , , Subject: Re: [PATCH v3 5/6] examples/qos_sched: fix lcore ID restriction Message-ID: <20231220083150.55b7dc80@hermes.local> In-Reply-To: <20231220064502.2830-6-sivaprasad.tummala@amd.com> References: <20231219032826.4814-1-sivaprasad.tummala@amd.com> <20231220064502.2830-1-sivaprasad.tummala@amd.com> <20231220064502.2830-6-sivaprasad.tummala@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 20 Dec 2023 07:45:00 +0100 Sivaprasad Tummala wrote: > diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c > index e97273152a..22fe76eeb5 100644 > --- a/examples/qos_sched/args.c > +++ b/examples/qos_sched/args.c > @@ -182,10 +182,10 @@ app_parse_flow_conf(const char *conf_str) > > pconf->rx_port = vals[0]; > pconf->tx_port = vals[1]; > - pconf->rx_core = (uint8_t)vals[2]; > - pconf->wt_core = (uint8_t)vals[3]; > + pconf->rx_core = (uint16_t)vals[2]; > + pconf->wt_core = (uint16_t)vals[3]; > if (ret == 5) > - pconf->tx_core = (uint8_t)vals[4]; > + pconf->tx_core = (uint16_t)vals[4]; > else > pconf->tx_core = pconf->wt_core; > > -- Not sure why cast is even needed, assigning uint32_t to uint16_t is not going to generate a warning with current compiler settings.