[ovs-discuss] [ovs-dev] What is the minimum Linux kernel version ovs 2.6.1 build requires?

Joe Stringer joe at ovn.org
Fri Dec 2 21:52:34 UTC 2016


On 1 December 2016 at 17:04, Yang, Yi Y <yi.y.yang at intel.com> wrote:
> Joe, it is my bad. Our nsh patches added two pointer variables to " struct ovs_skb_cb", that increased its size by 16 bytes, but sk_buff.cb only has 48 bytes, when I build ovs with "--with-linux=..." option, sizeof(struct ovs_gso_cb) will be over 48 bytes, that is the root cause of this build issue. After I manage to remove those two pointer variables, it can be built successfully. But sizeof(struct ovs_gso_cb) is still 48 bytes, obviously it can't be extended any more in the future unless Linux kernel changes sk_buff.cb to bigger size.

OK, glad to hear it doesn't affect released versions of OVS.

I wouldn't count on Linux expanding the sk_buff.


More information about the discuss mailing list