mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
The nvethernet driver fails to build for Linux v5.14 and Linux v5.17+ kernels. In Linux v5.15 the return type of the get/set_coalesce callbacks were updated. In Linux v5.17 the parameters for the get/set_ringparam callbacks were updated. In Linux v6.1 the weight parameter for the netif_napi_add() function was removed and the function netif_napi_add_weight() was added for passing the weight parameter. Add the necessary kernel version checks to ensure that the drivers build with the different versions of the Linux kernel. Bug 3793131 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Change-Id: I56738eddd27eb4ebf7db5a2d0d031a64379482e8 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2820712 Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>