Thread (34 messages) flat view 34 messages, 6 authors, 2014-01-09

Re: [PATCH net-next V2 1/3] net: Add GRO support for UDP encapsulating protocols

From: Tom Herbert <hidden>
Date: 2014-01-07 21:40:58

On Tue, Jan 7, 2014 at 1:19 PM, David Miller [off-list ref] wrote:
From: Or Gerlitz <redacted>
Date: Tue,  7 Jan 2014 17:29:52 +0200
quoted
+#define MAX_UDP_PORT (1 << 16)
+extern const struct net_offload __rcu *udp_offloads[MAX_UDP_PORT];
Bloating the kernel up by half a megabyte just for this feature is
beyond unacceptable.
For now we should have at most handful of encapsulation ports (maybe
5?) so a linear lookup in a simple array should suffice. If we get
into more complex scenarios, like using connected UDP sockets to get
encapsulation through NAT boxes, then we would need something more
complex (maybe socket lookup).
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help