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.
From: Joe Stringer [mailto:j...@ovn.org]
Sent: Friday, December 2, 2016 2:21 AM
To: Yang, Yi Y <yi.y.y...@intel.com>
Cc: d...@openvswitch.org; firstname.lastname@example.org
Subject: Re: [ovs-dev] What is the minimum Linux kernel version ovs 2.6.1 build
On 30 November 2016 at 04:58, Yang, Yi Y <yi.y.y...@intel.com> wrote:
> Hi, folks
> I tried to build ovs 2.6.1 in Ubuntu trusty 64 with the below configuration
> options, but it failed, it is ok when I use the same way to build in Ubuntu
> 16.04 which has Linux kernel 4.4. What is the minimum Linux kernel version
> ovs 2.6.1 build requires?
I'm surprised to see this; I regularly build master and branch-2.6 on Ubuntu
14.04 with linux 3.13 and 16.04 with linux 4.4.
Which kernel version are you seeing this with?
Can you also pastebin the $BUILD/datapath/linux/kcompat.h ?
discuss mailing list