Re: [dpdk-dev] [PATCH v11 1/6] ethdev: introduce Rx buffer split

2020-10-16 Thread Slava Ovsiienko
d.march...@redhat.com; > arybche...@solarflare.com > Subject: Re: [dpdk-dev] [PATCH v11 1/6] ethdev: introduce Rx buffer split > > 16/10/2020 15:39, Viacheslav Ovsiienko: > > + if (offset != 0) { > > + if (seg_capa->offset_allowed == 0) { > &g

Re: [dpdk-dev] [PATCH v11 1/6] ethdev: introduce Rx buffer split

2020-10-16 Thread Ferruh Yigit
On 10/16/2020 5:05 PM, Thomas Monjalon wrote: 16/10/2020 17:47, Ferruh Yigit: On 10/16/2020 2:39 PM, Viacheslav Ovsiienko wrote: +__rte_experimental +struct rte_eth_rxseg_split { + struct rte_mempool *mp; /**< Memory pool to allocate segment from. */ + uint16_t length; /**< Segment

Re: [dpdk-dev] [PATCH v11 1/6] ethdev: introduce Rx buffer split

2020-10-16 Thread Thomas Monjalon
16/10/2020 17:47, Ferruh Yigit: > On 10/16/2020 2:39 PM, Viacheslav Ovsiienko wrote: > > +__rte_experimental > > +struct rte_eth_rxseg_split { > > + struct rte_mempool *mp; /**< Memory pool to allocate segment from. */ > > + uint16_t length; /**< Segment data length, configures split point. */

Re: [dpdk-dev] [PATCH v11 1/6] ethdev: introduce Rx buffer split

2020-10-16 Thread Ferruh Yigit
On 10/16/2020 2:39 PM, Viacheslav Ovsiienko wrote: The DPDK datapath in the transmit direction is very flexible. An application can build the multi-segment packet and manages almost all data aspects - the memory pools where segments are allocated from, the segment lengths, the memory attributes l

Re: [dpdk-dev] [PATCH v11 1/6] ethdev: introduce Rx buffer split

2020-10-16 Thread Thomas Monjalon
16/10/2020 15:39, Viacheslav Ovsiienko: > + if (offset != 0) { > + if (seg_capa->offset_allowed == 0) { > + RTE_ETHDEV_LOG(ERR, "Rx segmentation with > offset is not supported\n"); > + return -ENOTSUP; > +