datapath: Provide compatibility for kernels up to 3.17

Signed-off-by: Thomas Graf <tgraf@noironetworks.com>