net: nvethernet: Use conftest for Linux v6.6

In Linux v6.6, the header net/page_pool.h was split into two headers;
net/page_pool/helper.h and net/page_pool/types.h. Use the conftest
script to detect which of these headers are present and generate compile
time definitions for including the appropriate headers.

Bug 4346767

Change-Id: I389ce5b867a1efd867b8392bb21383784c1b4af6
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3026553
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Jon Hunter
2023-12-01 14:04:18 +00:00
committed by mobile promotions
parent 8ce7eeacda
commit cd4dce2c20
3 changed files with 7 additions and 7 deletions

View File

@@ -159,7 +159,8 @@ NV_HEADER_PRESENCE_TESTS = \
generated/autoconf.h \
linux/kconfig.h \
linux/iosys-map.h \
net/gso.h
net/gso.h \
net/page_pool.h
# Filename to store the define for the header in $(1); this is only consumed by
# the rule below that concatenates all of these together.