* Re: [dpdk-users] vhost, vxlan, and nic TSO trouble. [not found] <CAAsw5BdmsN2OyPaTE5z33dAs49mf3MXR-NyQF=G=-zKbNq_Kog@mail.gmail.com> @ 2016-05-02 8:57 ` Matthias Gatto 2016-05-02 9:10 ` Vivek Gupta 0 siblings, 1 reply; 4+ messages in thread From: Matthias Gatto @ 2016-05-02 8:57 UTC (permalink / raw) To: users On Mon, Apr 25, 2016 at 3:49 PM, Matthias Gatto <matthias.gatto@outscale.com> wrote: > Hi, > I'm working on a project using DPDK: > > We are receiving packets from a vhost interface, then we encapsulate > them in vxlan packets, and finally we burst them into an ixgbe nic. > > We set txq_flags of ixgbe nic to 0 in order to use offloading capability. > > During encapsulation, we add vxlan header length to l2_len field inside mbuf. > It seems that l3_len, l4_len and tso_segsz are already set by vhost. > > When we use iperf3 to test our architecture, it seems that: > - Packets with PKT_TX_TCP_CKSUM and without PKT_TX_TCP_SEG have a > correct checksum. > - Packets with PKT_TX_TCP_CKSUM and with PKT_TX_TCP_SEG are segmented > but have a bad checksum. > > Do you think I've missed something ? > > Thanks for your help > > -- Matthias Gatto. ping ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-users] vhost, vxlan, and nic TSO trouble. 2016-05-02 8:57 ` [dpdk-users] vhost, vxlan, and nic TSO trouble Matthias Gatto @ 2016-05-02 9:10 ` Vivek Gupta 2016-05-02 13:20 ` Matthias Gatto 0 siblings, 1 reply; 4+ messages in thread From: Vivek Gupta @ 2016-05-02 9:10 UTC (permalink / raw) To: Matthias Gatto, users How are you bursting packets from vhost interface to ixgbe nic? Thanks & Regards Vivek ________________________________________ From: users [users-bounces@dpdk.org] on behalf of Matthias Gatto [matthias.gatto@outscale.com] Sent: Monday, May 02, 2016 2:27 PM To: users@dpdk.org Subject: Re: [dpdk-users] vhost, vxlan, and nic TSO trouble. On Mon, Apr 25, 2016 at 3:49 PM, Matthias Gatto <matthias.gatto@outscale.com> wrote: > Hi, > I'm working on a project using DPDK: > > We are receiving packets from a vhost interface, then we encapsulate > them in vxlan packets, and finally we burst them into an ixgbe nic. > > We set txq_flags of ixgbe nic to 0 in order to use offloading capability. > > During encapsulation, we add vxlan header length to l2_len field inside mbuf. > It seems that l3_len, l4_len and tso_segsz are already set by vhost. > > When we use iperf3 to test our architecture, it seems that: > - Packets with PKT_TX_TCP_CKSUM and without PKT_TX_TCP_SEG have a > correct checksum. > - Packets with PKT_TX_TCP_CKSUM and with PKT_TX_TCP_SEG are segmented > but have a bad checksum. > > Do you think I've missed something ? > > Thanks for your help > > -- Matthias Gatto. ping ::DISCLAIMER:: ---------------------------------------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ---------------------------------------------------------------------------------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-users] vhost, vxlan, and nic TSO trouble. 2016-05-02 9:10 ` Vivek Gupta @ 2016-05-02 13:20 ` Matthias Gatto 0 siblings, 0 replies; 4+ messages in thread From: Matthias Gatto @ 2016-05-02 13:20 UTC (permalink / raw) To: Vivek Gupta; +Cc: users Hi Vivek, On Mon, May 2, 2016 at 11:10 AM, Vivek Gupta <vivek-g@hcl.com> wrote: > How are you bursting packets from vhost interface to ixgbe nic? I am working on this project https://github.com/outscale-mgo/packetgraph/tree/offload We use rte_vhost_dequeue_burst to dequeue packets from vhost, we prepend a vxlan header to each packet and we use rte_eth_tx_burst for ixgbe. The txq_flags for the ixgbe queue is set to 0, so we use ixgbe_xmit_pkts and not ixgbe_xmit_pkts_simple. Thanks for your answer. -- Matthias Gatto ^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-users] vhost, vxlan, and nic TSO trouble. @ 2016-04-25 14:24 Matthias Gatto 0 siblings, 0 replies; 4+ messages in thread From: Matthias Gatto @ 2016-04-25 14:24 UTC (permalink / raw) To: users Hi, I'm working on a project using DPDK: We are receiving packets from a vhost interface, then we encapsulate them in vxlan packets, and finally we burst them into an ixgbe nic. We set txq_flags of ixgbe nic to 0 in order to use offloading capability. During encapsulation, we add vxlan header length to l2_len field inside mbuf. It seems that l3_len, l4_len and tso_segsz are already set by vhost. When we use iperf3 to test our architecture, it seems that: - Packets with PKT_TX_TCP_CKSUM and without PKT_TX_TCP_SEG have a correct checksum. - Packets with PKT_TX_TCP_CKSUM and with PKT_TX_TCP_SEG are segmented but have a bad checksum. Do you think I've missed something ? Thanks for your help -- Matthias Gatto ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-02 13:20 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <CAAsw5BdmsN2OyPaTE5z33dAs49mf3MXR-NyQF=G=-zKbNq_Kog@mail.gmail.com> 2016-05-02 8:57 ` [dpdk-users] vhost, vxlan, and nic TSO trouble Matthias Gatto 2016-05-02 9:10 ` Vivek Gupta 2016-05-02 13:20 ` Matthias Gatto 2016-04-25 14:24 Matthias Gatto
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).