Re: [PATCH v2 net-next] net: introduce gro_frag_list_enable sysctl
From: Vlad Yasevich <hidden>
Date: 2013-10-30 18:10:20
On 10/30/2013 01:39 PM, Jerry Chu wrote:
On Tue, Oct 29, 2013 at 9:42 PM, Herbert Xu [off-list ref] wrote:quoted
On Tue, Oct 29, 2013 at 09:34:41PM -0700, Eric Dumazet wrote:quoted
What matters ? GRO ?What matters is that you should not treat the forwarding case separately from the host case. For virtualisation the host case looks exactly like the forwarding case.Not sure I agree - there are two different "forwarding" cases - forwarding to another physical NIC (to go out to the wire hence need to do GSO), and (for virtualization) forwarding to a virtual NIC and consumed internally (e.g., VM).
I don't think you can really differentiate these 2 case. VM are very commonly used as routers/forwarders. In some cases, to get better throughput, VFs are assigned to the VMs as the externally facing ports. So, you still end up forwarding to another physical NIC. -vlad
For the latter we should strive to push GSO pkts all the way to the VM stack w/o breaking them up. So for virtualization GRO is all goodness but not sure about the regular forwarding path. (From the perf perspective it boils down to if the cost of GSO/GRO will offset the benefit of GRO. Sure if one manages to get the cost close to zero than there is not reason to leave GRO always on. But it's still a big if for now.) Best, Jerryquoted
IOW, if having a 64KB packet matters for the host, then it matters for forwarding as well.quoted
Before my patch, GRO packets were 17 MSS, and nobody complained packets were too small, so what are you saying exactly ?I'm not criticsing your mega-GRO patch at all. That one is great and means that we'll get aggregated packets up to 64K. What we need to do is just to patch up the GSO code so that it can handle these mega-packets properly. Cheers, -- Email: Herbert Xu [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt-- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html