datapath: Don't read net namespace on kernels that don't use them.
authorJesse Gross <jesse@nicira.com>
Mon, 12 Apr 2010 19:53:10 +0000 (15:53 -0400)
committerJesse Gross <jesse@nicira.com>
Mon, 19 Apr 2010 13:11:56 +0000 (09:11 -0400)
commit6b8a6c529b2bd8ce03584b132263dca5ac932c1b
tree50ed036d98443cd35a9f1a7b8cbf79a8f121d5a0
parentb5e80aecc4b10f73196f272598bac0644f196471
datapath: Don't read net namespace on kernels that don't use them.

Use macros to eliminate the network namespace argument before it
gets to the compiler.  This allows us to specify a namespace on
kernels that know about them and prevent the compiler from complaining
on kernels that don't.
datapath/linux-2.6/compat-2.6/include/linux/rtnetlink.h