[dpdk-dev] [PATCH v6 1/6] ethdev: add Tx preparation

2016-10-19 Thread Ananyev, Konstantin
Hi guys, > > > > > +static inline int > > > +rte_phdr_cksum_fix(struct rte_mbuf *m) { > > > + struct ipv4_hdr *ipv4_hdr; > > > + struct ipv6_hdr *ipv6_hdr; > > > + struct tcp_hdr *tcp_hdr; > > > + struct udp_hdr *udp_hdr; > > > + uint64_t ol_flags = m->ol_flags; > > > + uint64_t inner_l3_offset =

[dpdk-dev] [PATCH v6 1/6] ethdev: add Tx preparation

2016-10-19 Thread Kulasek, TomaszX
Hi Olivier, > -Original Message- > From: Olivier Matz [mailto:olivier.matz at 6wind.com] > Sent: Tuesday, October 18, 2016 16:57 > To: Kulasek, TomaszX ; dev at dpdk.org > Cc: Ananyev, Konstantin ; > thomas.monjalon at 6wind.com > Subject: Re: [dpdk-dev] [PATCH v

[dpdk-dev] [PATCH v6 1/6] ethdev: add Tx preparation

2016-10-18 Thread Olivier Matz
Hi Tomasz, I think the principle of tx_prep() is good, it may for instance help to remove the function virtio_tso_fix_cksum() from the virtio, and maybe even change the mbuf TSO/cksum API. I have some questions/comments below, I'm sorry it comes very late. On 10/14/2016 05:05 PM, Tomasz Kulasek

[dpdk-dev] [PATCH v6 1/6] ethdev: add Tx preparation

2016-10-14 Thread Tomasz Kulasek
Added API for `rte_eth_tx_prep` uint16_t rte_eth_tx_prep(uint8_t port_id, uint16_t queue_id, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) Added fields to the `struct rte_eth_desc_lim`: uint16_t nb_seg_max; /**< Max number of segments per whole packet. */