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