From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Rybchenko Subject: Re: [PATCH v2 2/3] ethdev: add flow api actions to modify TCP/UDP port numbers Date: Mon, 8 Oct 2018 12:24:08 +0300 Message-ID: <93c0cf87-ab70-da81-b7e2-ab1ecf0b12fc@solarflare.com> References: <1538840520-10369-1-git-send-email-rahul.lakkireddy@chelsio.com> <1538840520-10369-3-git-send-email-rahul.lakkireddy@chelsio.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: , To: Rahul Lakkireddy , Return-path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 78A611E25 for ; Mon, 8 Oct 2018 11:24:56 +0200 (CEST) In-Reply-To: <1538840520-10369-3-git-send-email-rahul.lakkireddy@chelsio.com> Content-Language: en-GB List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/6/18 6:41 PM, Rahul Lakkireddy wrote: > Add actions: > - SET_TP_SRC - set a new TCP/UDP source port number. > - SET_TP_DST - set a new TCP/UDP destination port number. > > Original work by Shagun Agrawal > > Signed-off-by: Rahul Lakkireddy > Acked-by: Xiaoyu Min > Acked-by: Ori Kam One nit below, otherwise Acked-by: Andrew Rybchenko <...> > @@ -1939,6 +1961,21 @@ struct rte_flow_action_set_ipv6 { > uint8_t ipv6_addr[16]; > }; > > +/** > + * @warning > + * @b EXPERIMENTAL: this structure may change without prior notice > + * > + * RTE_FLOW_ACTION_TYPE_SET_TP_SRC > + * RTE_FLOW_ACTION_TYPE_SET_TP_DST > + * > + * Allows modification of source (RTE_FLOW_ACTION_TYPE_SET_TP_SRC) > + * and destination (RTE_FLOW_ACTION_TYPE_SET_TP_DST) port numbers > + * in the specified outermost TCP/UDP header. > + */ > +struct rte_flow_action_set_tp { > + uint16_t port; rte_be16_t?