git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cbcb7c
)
examples/tep_term: fix offload on VXLAN
author
Jianfeng Tan
<jianfeng.tan@intel.com>
Thu, 4 Aug 2016 07:58:48 +0000
(07:58 +0000)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 12:37:48 +0000
(14:37 +0200)
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 <jianfeng.tan@intel.com>
examples/tep_termination/vxlan.c
patch
|
blob
|
history
diff --git
a/examples/tep_termination/vxlan.c
b/examples/tep_termination/vxlan.c
index
5ee1f95
..
4bad33d
100644
(file)
--- 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;