On Fri, Sep 26, 2014 at 10:02:08AM +0800, Jijiang Liu wrote: > Support VxLAN Tx checksum offload, which include > - outer L3(IP) checksum offload > - inner L3(IP) checksum offload > - inner L4(UDP, TCP and SCTP) checksum offload > > Signed-off-by: Jijiang Liu <jijiang.liu at intel.com> > Acked-by: Helin Zhang <helin.zhang at intel.com> > Acked-by: Jingjing Wu <jingjing.wu at intel.com> > Acked-by: Jing Chen <jing.d.chen at intel.com> > > --- > lib/librte_mbuf/rte_mbuf.h | 2 + > lib/librte_pmd_i40e/i40e_ethdev.c | 4 +- > lib/librte_pmd_i40e/i40e_rxtx.c | 47 ++++++++++++++++++++++++++++++++++-- > 3 files changed, 48 insertions(+), 5 deletions(-) > > diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h > index 4955684..1f3f4eb 100644 > --- a/lib/librte_mbuf/rte_mbuf.h > +++ b/lib/librte_mbuf/rte_mbuf.h > @@ -86,6 +86,8 @@ extern "C" { > #define PKT_RX_IEEE1588_PTP 0x0200 /**< RX IEEE1588 L2 Ethernet PT Packet. > */ > #define PKT_RX_IEEE1588_TMST 0x0400 /**< RX IEEE1588 L2/L4 timestamped > packet.*/ > > +#define PKT_TX_VXLAN_CKSUM 0x0001 /**< Checksum of TX VxLAN pkt. computed > by NIC.. */ > +#define PKT_TX_IVLAN_PKT 0x0002 /**< TX packet is VxLAN packet with an > inner VLAN. */ > #define PKT_TX_VLAN_PKT 0x0800 /**< TX packet is a 802.1q VLAN packet. > */ > #define PKT_TX_IP_CKSUM 0x1000 /**< IP cksum of TX pkt. computed by > NIC. */ > #define PKT_TX_IPV4_CSUM 0x1000 /**< Alias of PKT_TX_IP_CKSUM. */
These flag values overlap with ones already defined for RX. We have an addition 48 flags (47 after you subtract one I reused for control mbuf flag) following the mbuf rework, so overlap should not be needed, I think. /Bruce