Skip to content

Commit

Permalink
Merge pull request #13 from corytodd/support-6.5.1
Browse files Browse the repository at this point in the history
compatibility: support kernel 6.4.10
  • Loading branch information
awesometic authored Sep 10, 2023
2 parents 81ace36 + 261a71c commit 3194e8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/compatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) */

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10)
#if defined __has_include
#if __has_include (<net/gso.h>)
#include <net/gso.h>
#endif
#endif
#endif /* LINUX_VERSION_CODE >= KERNEL_VERISON(6,4,10) */

#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
#define TSO_LEGACY_MAX_SIZE 65536
#define netif_napi_add_weight netif_napi_add
Expand Down

0 comments on commit 3194e8c

Please sign in to comment.