From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v4 7/8]i40e:support VxLAN Tx checksum offload Date: Mon, 29 Sep 2014 11:50:55 +0100 Message-ID: <20140929105055.GE12072@BRICHA3-MOBL> References: <1411696929-13856-1-git-send-email-jijiang.liu@intel.com> <1411696929-13856-8-git-send-email-jijiang.liu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev-VfR2kkLFssw@public.gmane.org To: Jijiang Liu Return-path: Content-Disposition: inline In-Reply-To: <1411696929-13856-8-git-send-email-jijiang.liu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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 > Acked-by: Helin Zhang > Acked-by: Jingjing Wu > Acked-by: Jing Chen > > --- > 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