igb_uio: fix build with kernel 3.18
authorShu Shen <shu.shen@radisys.com>
Thu, 11 Dec 2014 19:33:23 +0000 (11:33 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Dec 2014 23:40:37 +0000 (00:40 +0100)
commit0d6e2d783d164503e75e57b7358dc3c5c09e0bf1
treebcabf52a7197b4dc1bcbad23e548a8179661bdc8
parentb443307ad3c5cff2957c00338eaf3239261801f1
igb_uio: fix build with kernel 3.18

This patch fixes build failing with undefined symbol _PAGE_IOMAP with
kernel 3.18.

The Xen-specific _PAGE_IOMAP PTE flag was removed in kernel 3.18 and
could be used for other purpose in future. This patch ensures that
_PAGE_IOMAP flag is only used for kernels before 3.18.

Signed-off-by: Shu Shen <shu.shen@radisys.com>
Acked-by: Jincheng Miao <jmiao@redhat.com>
lib/librte_eal/linuxapp/igb_uio/compat.h
lib/librte_eal/linuxapp/igb_uio/igb_uio.c