From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 4B4192952 for ; Sun, 11 Sep 2016 14:08:36 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP; 11 Sep 2016 05:08:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,316,1470726000"; d="scan'208";a="1054429718" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga002.fm.intel.com with ESMTP; 11 Sep 2016 05:08:34 -0700 Date: Sun, 11 Sep 2016 20:09:06 +0800 From: Yuanhan Liu To: Jianfeng Tan Cc: dev@dpdk.org, konstantin.ananyev@intel.com, jingjing.wu@intel.com, mark.b.kavanagh@intel.com, Thomas Monjalon Message-ID: <20160911120906.GV23158@yliu-dev.sh.intel.com> References: <1470297529-100773-1-git-send-email-jianfeng.tan@intel.com> <1470297529-100773-2-git-send-email-jianfeng.tan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1470297529-100773-2-git-send-email-jianfeng.tan@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 1/2] examples/tep_term: fix offload on VXLAN failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2016 12:08:36 -0000 On Thu, Aug 04, 2016 at 07:58:48AM +0000, Jianfeng Tan wrote: > Based on previous fix of offload on VXLAN using i40e, applications > need to set proper tunneling type on ol_flags so that i40e driver > can pass it to NIC. > > Fixes: a50245ede72a ("examples/tep_term: initialize VXLAN sample") > > Signed-off-by: Jianfeng Tan > --- > examples/tep_termination/vxlan.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/examples/tep_termination/vxlan.c b/examples/tep_termination/vxlan.c > index 5ee1f95..4bad33d 100644 > --- a/examples/tep_termination/vxlan.c > +++ b/examples/tep_termination/vxlan.c > @@ -237,6 +237,8 @@ encapsulation(struct rte_mbuf *m, uint8_t queue_id) > m->outer_l2_len = sizeof(struct ether_hdr); > m->outer_l3_len = sizeof(struct ipv4_hdr); > > + ol_flags |= PKT_TX_TUNNEL_VXLAN; > + Hi, FYI, my testrobot caught some errors when this patch is applied. --yliu --- x86_64-native-linuxapp-clang: config-all-yes ============================================ /root/dpdk/examples/tep_termination/vxlan.c:240:14: error: use of undeclared identifier 'PKT_TX_TUNNEL_VXLAN' ol_flags |= PKT_TX_TUNNEL_VXLAN; ^ 1 error generated. make[1]: *** [vxlan.o] Error 1 make: *** [all] Error 2 error: build examples/tep_termination failed error: build failed ...