Re: [dpdk-dev] [PATCH v3 1/3] ethdev: introduce conntrack flow action and item

2021-04-19 Thread Bing Zhao
Hi, > -Original Message- > From: Thomas Monjalon > Sent: Monday, April 19, 2021 10:08 PM > To: Bing Zhao ; Ajit Khaparde > > Cc: dev@dpdk.org; Ori Kam ; Ferruh Yigit > ; Andrew Rybchenko > ; dpdk-dev ; Xiaoyun Li > > Subject: Re: [dpdk-dev] [PATCH v3 1/

Re: [dpdk-dev] [PATCH v3 1/3] ethdev: introduce conntrack flow action and item

2021-04-19 Thread Bing Zhao
: [dpdk-dev] [PATCH v3 1/3] ethdev: introduce conntrack > flow action and item > > External email: Use caution opening links or attachments > > > 16/04/2021 19:54, Bing Zhao: > > +/** > > + * The packet is valid after conntrack checking. > > + */

Re: [dpdk-dev] [PATCH v3 1/3] ethdev: introduce conntrack flow action and item

2021-04-19 Thread Thomas Monjalon
16/04/2021 20:30, Ajit Khaparde: > On Fri, Apr 16, 2021 at 10:54 AM Bing Zhao wrote: > > +struct rte_flow_action_conntrack { > > + /** The peer port number, can be the same port. */ > > + uint16_t peer_port; > > + /** > > +* Direction of this connection when creating a fl

Re: [dpdk-dev] [PATCH v3 1/3] ethdev: introduce conntrack flow action and item

2021-04-19 Thread Thomas Monjalon
16/04/2021 19:54, Bing Zhao: > +/** > + * The packet is valid after conntrack checking. > + */ > +#define RTE_FLOW_CONNTRACK_PKT_STATE_VALID RTE_BIT32(0) > +/** > + * The state of the connection is changed. > + */ > +#define RTE_FLOW_CONNTRACK_PKT_STATE_CHANGED RTE_BIT32(1) > +/** > + * Error is de

Re: [dpdk-dev] [PATCH v3 1/3] ethdev: introduce conntrack flow action and item

2021-04-16 Thread Ajit Khaparde
On Fri, Apr 16, 2021 at 10:54 AM Bing Zhao wrote: > > This commit introduces the conntrack action and item. > > Usually the HW offloading is stateless. For some stateful offloading > like a TCP connection, HW module will help provide the ability of a > full offloading w/o SW participation after th

[dpdk-dev] [PATCH v3 1/3] ethdev: introduce conntrack flow action and item

2021-04-16 Thread Bing Zhao
This commit introduces the conntrack action and item. Usually the HW offloading is stateless. For some stateful offloading like a TCP connection, HW module will help provide the ability of a full offloading w/o SW participation after the connection was established. The basic usage is that in the