af_packet: add compile-time checks for kernel-specific options
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 4 Dec 2014 21:42:05 +0000 (16:42 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 5 Dec 2014 21:09:23 +0000 (22:09 +0100)
commita3a03e13a6b2e33efeae2ae99a63159193981a7a
tree8ced686743a7593a4b7a576a9a39fa6fdd86f96a
parent3e7b87dddbbf9c6bc27fcb7bbce41618853ad678
af_packet: add compile-time checks for kernel-specific options

This allows the PMD to compile with kernels that don't support the
options in question.  The "#if defined(...)" lines are a bit ugly,
but I don't know of any better way to accomplish the task.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
config/common_linuxapp
lib/librte_pmd_af_packet/rte_eth_af_packet.c