Thread (1 message) 1 message, 1 author, 2012-04-23

Re: [RFC v4] Add TCP encap_rcv hook (repost)

From: Stephen Hemminger <hidden>
Date: 2012-04-23 19:19:34

On Mon, 23 Apr 2012 15:15:33 -0400 (EDT)
David Miller [off-list ref] wrote:
From: Simon Horman <horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
Date: Mon, 23 Apr 2012 17:30:08 +0900
quoted
I'm pretty sure the patch I posted added encap_rcv to tcp_sock.
Am I missing the point?
It did, my eyes are failing me :-)
quoted
Currently I am setting up a listening socket. The Open vSwtich tunneling
code transmits skbs and using either dev_queue_xmit() or ip_local_out().
I'm not sure that I have exercised the ip_local_out() case yet.
I don't see where on transmit you're going to realize the primary
stated benefit of STT, that being TSO/GSO.

You'll probably want to gather as many packets as possible into a
larger STT frame for this purpose.  And when switching between STT
tunnels, leave the packet alone since a GRO STT frame on receive will
transparently become a STT GSO frame on transmit.
I think the point of the TSO hack is to get around the MTU problem when tunneling.
The added header of the tunnel eats into the the possible MTU. The use of TSO
in STT is designed to deal with the fact that hardware can't do IP fragmentation
of IP (or UDP).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help