From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4D67C2C0C for ; Thu, 4 Aug 2016 09:58:57 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 04 Aug 2016 00:58:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,469,1464678000"; d="scan'208";a="1034873792" Received: from dpdk06.sh.intel.com ([10.239.129.195]) by fmsmga002.fm.intel.com with ESMTP; 04 Aug 2016 00:58:55 -0700 From: Jianfeng Tan To: dev@dpdk.org Cc: konstantin.ananyev@intel.com, jingjing.wu@intel.com, mark.b.kavanagh@intel.com, Jianfeng Tan Date: Thu, 4 Aug 2016 07:58:48 +0000 Message-Id: <1470297529-100773-2-git-send-email-jianfeng.tan@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470297529-100773-1-git-send-email-jianfeng.tan@intel.com> References: <1470297529-100773-1-git-send-email-jianfeng.tan@intel.com> Subject: [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: Thu, 04 Aug 2016 07:58:57 -0000 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; + m->ol_flags |= ol_flags; m->tso_segsz = tx_offload.tso_segsz; -- 2.7.4