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 6A67445962; Wed, 11 Sep 2024 18:02:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E18054029E; Wed, 11 Sep 2024 18:02:01 +0200 (CEST) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id D767740267 for ; Wed, 11 Sep 2024 18:02:00 +0200 (CEST) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-7d50532d335so18514a12.1 for ; Wed, 11 Sep 2024 09:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1726070520; x=1726675320; 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=Tzr+M7278Facx4QYLwAeFO5Fa8vlBEHIe1h2vFx0M6U=; b=rWBBMxIsjwt6iceHiYmOGYCWQb09GxpxbE4oBqdNizNhJrp3TJ4XIyEBfMJg9qeiE0 OkhduJNUr6NxDiKRkj6pRMCKwUsiSezx+JGBIQTH6UVRHa5P42WOZMbRc45VH7iMCdYM x5EUZ98H213flHhTZ86qGrZAvHyaQ1XCbAlkyurQmJ7W1Ewo3jdO3co/KJQvdokdsTji A6Fjz53+l965OFdwiiGMy8Z+6XcBN0xYSznVcfG5Y1zBloLLcGPgQXDU/z1oRZrwoHRY GjDU8vcOr9opMcDssvm7omumAutvFV+dE+HbBnz7ENijSuYYcWeAoxxuh8Q/UrpkmlDw sxpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726070520; x=1726675320; 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=Tzr+M7278Facx4QYLwAeFO5Fa8vlBEHIe1h2vFx0M6U=; b=BjWzYbPSfnRkPCGGtUoQChWws1g+gOM7bABN2mfMOewqpcP+9xnWPGLl530WhiUUfb Lc+IQQUH7Cd7VmGrVRJCG2oRBidvRDO/4ZG+BovAeLQut5fy48uVbSoY/tqaF3p9gGC8 Uj79F5v4NjSONa7xBqt8FdculxmkIWeugkIrKZICht0Pck7laqIGRIsJdsUAuxXq5OLj 638ASyNfzuePCn+AMi8Y+0PPylk+MdlMc2u8AQRGH6cPETDhwaapQQZIfzLO8pQlO/xL Eqxtyrl0DA2PguDBVFPHUfKHwiHy+EzthC527b2aQFJXdCpJtS49wdBb9eENoLzunnkI adEw== X-Gm-Message-State: AOJu0Yye1wfv+DLWxa6pKO6Lr5bU0P/VzwsB9B1E+BZmU6JhsOUf6dBj FGUO8NNNVNBdPUvqBZUcc2vooP0VFympxXBnd5iPCWyqp49Rj57Dno3zNLrI4KU= X-Google-Smtp-Source: AGHT+IFeMMRSyMyyl5WyCklbRFiml/iZKMvsAolONuhyyLfXUfKaoOVbLvyiuGQ2Ff8i392vCV4zBA== X-Received: by 2002:a17:90b:180e:b0:2d8:7804:b3a with SMTP id 98e67ed59e1d1-2daffd0c479mr17275625a91.26.1726070519782; Wed, 11 Sep 2024 09:01:59 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dadc12bcd5sm10698869a91.53.2024.09.11.09.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 09:01:59 -0700 (PDT) Date: Wed, 11 Sep 2024 09:01:57 -0700 From: Stephen Hemminger To: Hanxiao Li Cc: dev@dpdk.org, wang.yong19@zte.com.cn Subject: Re: [PATCH v6 3/8] zsda: add support for queue operation Message-ID: <20240911090158.7ca21c0b@hermes.local> In-Reply-To: <20240911075447.4074486-2-li.hanxiao@zte.com.cn> References: <20240911075200.4074366-1-li.hanxiao@zte.com.cn> <20240911075447.4074486-1-li.hanxiao@zte.com.cn> <20240911075447.4074486-2-li.hanxiao@zte.com.cn> 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, 11 Sep 2024 15:54:25 +0800 Hanxiao Li wrote: > +void > +zsda_stats_reset(void **queue_pairs, const uint32_t nb_queue_pairs) > +{ > + enum zsda_service_type type; > + uint32_t i; > + struct zsda_qp *qp; > + > + if (queue_pairs == NULL) { > + ZSDA_LOG(ERR, E_NULL); > + return; > + } > + > + for (i = 0; i < nb_queue_pairs; i++) { > + qp = (struct zsda_qp *)queue_pairs[i Cast is not needed here. In C (vs C++) assignment of void * is implicit cast.