All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 1/2] geneve: Set GSO type on transmit.
@ 2014-11-04  3:38 Jesse Gross
  2014-11-04  3:38 ` [PATCH net 2/2] geneve: Unregister pernet subsys on module unload Jesse Gross
  2014-11-05 20:01 ` [PATCH net 1/2] geneve: Set GSO type on transmit David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Jesse Gross @ 2014-11-04  3:38 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Andy Zhou

Geneve does not currently set the inner protocol type when
transmitting packets. This causes GSO segmentation to fail on NICs
that do not support Geneve offloading.

CC: Andy Zhou <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
---
 net/ipv4/geneve.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/ipv4/geneve.c b/net/ipv4/geneve.c
index 065cd94..6e5266c 100644
--- a/net/ipv4/geneve.c
+++ b/net/ipv4/geneve.c
@@ -144,6 +144,8 @@ int geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt,
 	gnvh = (struct genevehdr *)__skb_push(skb, sizeof(*gnvh) + opt_len);
 	geneve_build_header(gnvh, tun_flags, vni, opt_len, opt);
 
+	skb_set_inner_protocol(skb, htons(ETH_P_TEB));
+
 	return udp_tunnel_xmit_skb(gs->sock, rt, skb, src, dst,
 				   tos, ttl, df, src_port, dst_port, xnet);
 }
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-05 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-04  3:38 [PATCH net 1/2] geneve: Set GSO type on transmit Jesse Gross
2014-11-04  3:38 ` [PATCH net 2/2] geneve: Unregister pernet subsys on module unload Jesse Gross
2014-11-05 10:08   ` Nicolas Dichtel
2014-11-05 20:01   ` David Miller
2014-11-05 20:01 ` [PATCH net 1/2] geneve: Set GSO type on transmit David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.