Subject: Re:答复: [PATCH openvswitch v3] netlink: Implement & enable memory mapped netlink i/o

From: Thomas Graf <[email-masked]>
Date: Wed, 04 Dec 2013 10:08:59 +0100

On 12/04/2013 02:54 AM, Zhuangyuxin wrote:
> In this patch, each frame takes 16k mem. For sockets used for upcall, does it make more sense to calculate frame size based on MTU of the netdev on the port?

I assume you mean max(MTU) over all ports? We would have to replace the
ring after each MTU change. Doing so in use is non trivial and
expensive. The
current frame size of 16K covers jumbo frames and is a sane default but can
certainly be optimized further on, f.e. as we possibly extend OVS user space
to handle GSO frames.