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 0E231457EF; Fri, 23 Aug 2024 01:09:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C233140298; Fri, 23 Aug 2024 01:09:57 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id A23A340265 for ; Fri, 23 Aug 2024 01:09:56 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2021537a8e6so12794505ad.2 for ; Thu, 22 Aug 2024 16:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1724368195; x=1724972995; 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=xu03Bw33v5tU8/6QmykcqDgIr39ky1xS2ljX6pZfXmM=; b=uY7V2UU6uPjzgTbwkvcZBO79XiAUACwER6TD0KozJMRC5VRmCH6J9NuzE8cXV4Zpxq K1VyI7+qksncDNAbUFN1NdgsiygUjf16cDxL5OKwFYu9Sl4TVcpgTGSSF0LJ6cTi5fqQ wmwHc7WHEpgAx9h1ey53FXy48MMYI2mT9TOeaaftR6C/DBKxUxr86RtiIJoXkndBBeGV 4LdDYgmf4ED2CPAwuB1YUqJAQkG5wQ5ifwaaLJabe5US7RgT06sw2MTxfWmtIT2MW9kT 8x6hYdOjKBFU7RORQXXPBxlU38nLdFvonGoS6/iiJjQH85sQDUKOBKdzmqdaYrTYQet6 p9iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724368195; x=1724972995; 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=xu03Bw33v5tU8/6QmykcqDgIr39ky1xS2ljX6pZfXmM=; b=r6CgQ2ij1BLxt7aSVDJ8vpzap9zQqf8OyJhSW2vFvey2BS4IifgnJf61tJy+AxWghM e3nPEv/6SutXrcGzfy6SJ7xI0QjktzNjnsizmqbgFGaW6i9W5XgMjK5fqhmUXnDwB8BB dAPKXADONUX2a9VqmGi4ZIaqo07v0DuPF6rqOpjSOpCovLXqzptsVghMlJKRkl07TXG/ /mfKVocHoYKJkkT0QNaoWvqjS3/TP2iII7pYkCLivHoQOB3BXnY9dx8A+2AOT2LSvxWx RhO77iblIxSVl0b74CAuJk6nQbiJOqOC5hhCsG7iBFKThWk0QHGn6BdcRh6bjBkOmpee cyhg== X-Gm-Message-State: AOJu0YxJg5j5jE88/Fgx7My/ge1gNJcXZ/GZ92FhbojI9lAdsiGnedzv yZKHbTw3XxbMCNWEjveWrXqZKFbecfhEgqdjkq0hksbYVUhkNDHPnymy5zBkPSE= X-Google-Smtp-Source: AGHT+IFKcYknNnjtnJTpbyKi0OdXoRD1RqyqY0j1wFu1zj35tfPXqdS7oWyAvjDRQ8K6GCDOMQ31iw== X-Received: by 2002:a17:902:e847:b0:202:35e0:deab with SMTP id d9443c01a7336-2039e4b524emr4044975ad.32.1724368195546; Thu, 22 Aug 2024 16:09:55 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20385609d2csm17473755ad.211.2024.08.22.16.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 16:09:55 -0700 (PDT) Date: Thu, 22 Aug 2024 16:09:53 -0700 From: Stephen Hemminger To: Alexander Kozyrev Cc: , , , , , Subject: Re: [RFC] ethdev: jump to table support Message-ID: <20240822160953.3c7d3d52@hermes.local> In-Reply-To: <20240822202753.3856703-1-akozyrev@nvidia.com> References: <20240822202753.3856703-1-akozyrev@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, 22 Aug 2024 23:27:53 +0300 Alexander Kozyrev wrote: > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice. > + * > + * Enqueue rule creation operation. > + * > + * @param port_id > + * Port identifier of Ethernet device. > + * @param queue_id > + * Flow queue used to insert the rule. > + * @param[in] op_attr > + * Rule creation operation attributes. > + * @param[in] template_table > + * Template table to select templates from. > + * @param[in] rule_index > + * Rule index in the table. > + * Inserting a rule to already occupied index results in undefined beh= avior. > + * @param[in] pattern > + * List of pattern items to be used. > + * The list order should match the order in the pattern template. > + * The spec is the only relevant member of the item that is being used. > + * @param[in] pattern_template_index > + * Pattern template index in the table. > + * @param[in] actions > + * List of actions to be used. > + * The list order should match the order in the actions template. > + * @param[in] actions_template_index > + * Actions template index in the table. > + * @param[in] user_data > + * The user data that will be returned on the completion events. > + * @param[out] error > + * Perform verbose error reporting if not NULL. > + * PMDs initialize this structure in case of error only. > + * > + * @return > + * Handle on success, NULL otherwise and rte_errno is set. > + * The rule handle doesn't mean that the rule has been populated. > + * Only completion result indicates that if there was success or failu= re. > + */ > +__rte_experimental > +struct rte_flow * > +rte_flow_async_create_by_index_with_pattern(uint16_t port_id, > + uint32_t queue_id, > + const struct rte_flow_op_attr *op_attr, > + struct rte_flow_template_table *template_table, > + uint32_t rule_index, > + const struct rte_flow_item pattern[], > + uint8_t pattern_template_index, > + const struct rte_flow_action actions[], > + uint8_t actions_template_index, > + void *user_data, > + struct rte_flow_error *error); Choosing names is hard, long names are not always better. Can you think of a more concise name? Je n=E2=80=99ai fait celle-ci plus longue que parce que je n=E2=80=99ai pas= eu le loisir de la faire plus courte. -- Blaise Pascal