Skip to content

Commit

Permalink
kni: fix build on RHEL 7.5
Browse files Browse the repository at this point in the history
Signed-off-by: Lee Roberts <lee.roberts@hpe.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>

change taken from https://review.opencontrail.org/#/c/41949/

Change-Id: I4a13dfd074638c6228a1055545b7b8022ebcda20
Partial-Bug: 1763656
(cherry picked from commit 7e57a8a)
  • Loading branch information
Jeya ganesh babu J authored and krharsh committed May 7, 2018
1 parent d5c1935 commit dbbca99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/librte_eal/linuxapp/kni/compat.h
Expand Up @@ -67,3 +67,8 @@
(LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)))
#undef NET_NAME_UNKNOWN
#endif

#if (defined(RHEL_RELEASE_CODE) && \
(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5)))
#define ndo_change_mtu ndo_change_mtu_rh74
#endif

0 comments on commit dbbca99

Please sign in to comment.