On Thu, Sep 12, 2013 at 3:11 AM, Viresh Kumar <viresh.ku...@linaro.org> wrote:
> On latest RT kernels we are getting following errors while compiling OVS:
>
> In file included from
> openvswitch/datapath/linux/compat/include/linux/if_vlan.h:6:0,
> from openvswitch/datapath/linux/actions.c:29:
> lng.git/include/linux/if_vlan.h: In function vlan_insert_tag:
> lng.git/include/linux/if_vlan.h:197:5: error: struct sk_buff has no
> member named mac
> In file included from openvswitch/datapath/linux/../flow.h:34:0,
> from openvswitch/datapath/linux/../datapath.h:31,
> from openvswitch/datapath/linux/actions.c:36:
> lng.git/include/net/inet_ecn.h: In function INET_ECN_set_ce:
> lng.git/include/net/inet_ecn.h:137:10: error: struct sk_buff has no
> member named nh
> lng.git/include/net/inet_ecn.h:142:10: error: struct sk_buff has no
> member named nh
> openvswitch/datapath/linux/actions.c: In function __pop_vlan_tci:
> openvswitch/datapath/linux/actions.c:72:5: error: struct sk_buff has
> no member named mac
> make[7]: *** [openvswitch/datapath/linux/actions.o] Error 1
> make[6]: *** [_module_openvswitch/datapath/linux] Error 2
>
> This happened because RT kernel has used raw keyword inside skbuff.h, which
> was
> used to identify some older kernels stuff in OVS.
>
> Lets make the search pattern a bit stronger by searching "*raw;" instead of
> "raw".
>
If this check is only required for old kernel then we can just remove
this compat code. ovs 2.0 has dropped support for pre-2.6.32 kernel.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev