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 363AC45830; Wed, 21 Aug 2024 16:54:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 731D8427B5; Wed, 21 Aug 2024 16:53:38 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 8AD03427AC for ; Wed, 21 Aug 2024 16:53:37 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-7142014d8dfso964953b3a.3 for ; Wed, 21 Aug 2024 07:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1724252017; x=1724856817; 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=U4B4fi1H9upwwwQ6gzCuSDP6Zo/xWm2JNNoMEUbO8QY=; b=cYqBFKkPLV0cz9sMh94RPLdP/okySzfNeqHFhUdKxez+x9q+eQy9QR++3rjztNqI6+ RS1HrHmB4gRo/kzDm5Xrk6uGaF6pg54Z0DYjsqYShznwzpKJ05a7s658eBPOO1p5R/K1 sf5vhk9u0GZ+7jVaVbdN3wcaae603HcDWGtZDi2MQ9jziSN/io0k2IFoac2NyNcx6DlE FUIDSwkvb0KvQ1LoPLTtNKvTWNs2HbN8Ns3HLoeHOE4+KnM8jsSacmHAjMFFpWYPKBDN XkOzkWOgAzh1tt6nLxtgOmuZqR+Rkq5wz6NfWVzX3cWFverBwea77A0e84S6oDQ2d6Tf AX/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724252017; x=1724856817; 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=U4B4fi1H9upwwwQ6gzCuSDP6Zo/xWm2JNNoMEUbO8QY=; b=u/h0iIdc0XdNpbqKXoHWsNXrOrF+D3H/q+2SUv1A0Lop+oOgUHo5PAgUhU15Vf8uoq 7OvkWRMpMWv41fiA6l0i3mpNuyOO6z8w/cdIi0HU8kjMzJnPMxfF2Ld47QVWMOah+w3w X4mwDKXYSUhAk+hP1GdBlYbNx8hIpriVxwFNqvX1trMOR6U+P/V5TqTRrqroZ/aLU3Me 6Z7Ilh+pa/sJFV+jlK9i9y+Jo/oq3yMUdaWK0vJzX3/Py7o32676jJxRnu7txLu3aHNA Iy5Cq1h4Yr2RgNFZ1X0jF7N3h0YjYVW6vKbrdvfh8SKd8azxink7zxqAalphbGsHkZL5 MORQ== X-Gm-Message-State: AOJu0Yz96jtptPsIS+nC9JhcrXrEmKTgX6Ib5X4BNFd0hjZKv01ySLeN C9PN+Qf20MyuRMsLf2Xe7jE3K+7HoMLikC+Bw42FIU5E7KCnDyf8fmIDLkuYbIg= X-Google-Smtp-Source: AGHT+IEl47Gf6XNysmkQEQTPOFkbAobMJsejKb37Yq0wurrpP9BWzS2cdaQnUlKmz4xX3u/eGWTQgA== X-Received: by 2002:a05:6a20:6f9c:b0:1ca:ccd1:4b33 with SMTP id adf61e73a8af0-1cad7fb3789mr3266733637.7.1724252016663; Wed, 21 Aug 2024 07:53:36 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d5ebb4d565sm1923869a91.35.2024.08.21.07.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 07:53:36 -0700 (PDT) Date: Wed, 21 Aug 2024 07:53:34 -0700 From: Stephen Hemminger To: Hanxiao Li Cc: dev@dpdk.org Subject: Re: [PATCH v2 3/4] zsda: add support for queue operation Message-ID: <20240821075334.3756448b@hermes.local> In-Reply-To: <20240815025448.2068833-4-li.hanxiao@zte.com.cn> References: <20240815025448.2068833-1-li.hanxiao@zte.com.cn> <20240815025448.2068833-4-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 Thu, 15 Aug 2024 10:54:38 +0800 Hanxiao Li wrote: > +uint16_t zsda_enqueue_op_burst(struct zsda_qp *qp, void **ops, const uint16_t nb_ops); > +uint16_t zsda_dequeue_op_burst(struct zsda_qp *qp, void **ops, const uint16_t nb_ops); > + > +void tx_write_tail(struct zsda_queue *queue); > +int zsda_queue_pair_setup(uint32_t dev_id, struct zsda_qp **qp_addr, > + const uint16_t queue_pair_id, > + const struct zsda_qp_config *zsda_qp_conf); > + > +int zsda_queue_pair_release(struct zsda_qp **qp_addr); > +int zsda_fill_sgl(const struct rte_mbuf *buf, uint32_t offset, > + struct zsda_sgl *sgl, const phys_addr_t sgl_phy_addr, > + uint32_t remain_len, struct comp_head_info *comp_head_info); > + > +int zsda_get_sgl_num(const struct zsda_sgl *sgl); > +int zsda_sgl_opt_addr_lost(struct rte_mbuf *mbuf); > + > +int find_next_free_cookie(const struct zsda_queue *queue, void **op_cookie, > + uint16_t *idx); > +int common_setup_qp(uint32_t dev_id, struct zsda_qp **qp_addr, > + const uint16_t queue_pair_id, > + const struct zsda_qp_config *conf); > + Since these are public but not exported functions, best to prefix them with zsda_ to avoid any name conflicts.