Xilinx / open-nic-driver

AMD OpenNIC driver includes the Linux kernel driver
GNU General Public License v2.0
58 stars 40 forks source link

Update to the latest Ubuntu 22.04.3 LTS #45

Closed marcinwoj closed 1 year ago

marcinwoj commented 1 year ago

This PR updates the driver to compile with the latest Ubuntu 22.04.3 LTS.

The parameters of netif_napi_add() have been changed in the recent kernel versions. From kernel version 6.1 int weight is not a part of the netif_napi_add()API anymore but is set as a default one:

https://elixir.bootlin.com/linux/v6.1/source/include/linux/netdevice.h#L2562 https://elixir.bootlin.com/linux/v6.1/source/include/linux/netdevice.h#L2547

The latest version with the old API: 6.0.19 https://elixir.bootlin.com/linux/v6.0.19/source/include/linux/netdevice.h#L2567

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:    22.04
Codename:   jammy

$ uname -r
6.2.0-31-generic

insmod and dmesg show no errors. However, I can not test the changes in hardware.

wnew commented 1 year ago

We have tested this on 6.2.0-26 and it works. I would suggest this change be accepted but include kernel version 6.2