Hi Jingjing, > -----Original Message----- > From: Wu, Jingjing > Sent: Monday, October 10, 2016 16:03 > To: Kulasek, TomaszX <tomaszx.kulasek at intel.com>; dev at dpdk.org > Cc: Ananyev, Konstantin <konstantin.ananyev at intel.com>; Kulasek, TomaszX > <tomaszx.kulasek at intel.com> > Subject: RE: [dpdk-dev] [PATCH v4 4/6] i40e: add Tx preparation > > > #include "i40e_logs.h" > > #include "base/i40e_prototype.h" > > @@ -79,6 +81,17 @@ > > PKT_TX_TCP_SEG | \ > > PKT_TX_OUTER_IP_CKSUM) > > > > +#define I40E_TX_OFFLOAD_MASK ( \ > > + PKT_TX_IP_CKSUM | \ > > + PKT_TX_L4_MASK | \ > > + PKT_TX_OUTER_IP_CKSUM | \ > > + PKT_TX_TCP_SEG | \ > > + PKT_TX_QINQ_PKT | \ > > + PKT_TX_VLAN_PKT) > > + > More TX flags are added for tunneling as below. > /** > * Bits 45:48 used for the tunnel type. > * When doing Tx offload like TSO or checksum, the HW needs to configure > the > * tunnel type into the HW descriptors. > */ > #define PKT_TX_TUNNEL_VXLAN (0x1ULL << 45) > #define PKT_TX_TUNNEL_GRE (0x2ULL << 45) > #define PKT_TX_TUNNEL_IPIP (0x3ULL << 45) > #define PKT_TX_TUNNEL_GENEVE (0x4ULL << 45) > /* add new TX TUNNEL type here */ > #define PKT_TX_TUNNEL_MASK (0xFULL << 45) > > Please check: > commit 63c0d74daaa9a807fbca8a3e363bbe41d6fb715f > Author: Jianfeng Tan <jianfeng.tan at intel.com> > Date: Mon Aug 1 03:56:53 2016 +0000 > > mbuf: add Tx side tunneling type > > > Thanks > Jingjing
Thanks for spotting this, I will send updated v5. Tomasz