datapath: IFF_OVS_DATAPATH is backported by RHEL 6.2.
authorJesse Gross <jesse@nicira.com>
Wed, 11 Jan 2012 23:01:37 +0000 (15:01 -0800)
committerJesse Gross <jesse@nicira.com>
Thu, 12 Jan 2012 23:32:16 +0000 (15:32 -0800)
commite25c55d28f30b537aa657797c41483a9bab59b93
tree205372184fd0f8fa3749773c6b60dee9705a3923
parent247527db0f3530480bde88c59c1fadd5d51505fc
datapath: IFF_OVS_DATAPATH is backported by RHEL 6.2.

On kernels 2.6.37 and above IFF_OVS_DATAPATH has a unique value upstream,
on 2.6.36 we define it to be IFF_BRIDGE_PORT and below to 0.  There isn't
really a good reason to use IFF_BRIDGE_PORT on 2.6.36 (and it's perhaps
bad because it's checked in a few places and we don't want those checks
to trigger on just this kernel) and it makes it difficult to know what
value we should use in the face of backporting.  Therefore, this just
uses 0 on the places where we don't have a real value.

Reported-by: Benoit ML <ben42ml@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/include/linux/if.h
datapath/vport-netdev.c