From c0be8746bcefe06556797553097099640c06cc2a Mon Sep 17 00:00:00 2001 From: Arthur Kiyanovski Date: Wed, 3 Mar 2021 13:43:49 +0200 Subject: [PATCH] linux/ena: Bump driver version to 2.5.0 Update driver version from 2.4.1 to 2.5.0 in all places. Add release notes for version 2.5.0 Signed-off-by: Arthur Kiyanovski --- kernel/linux/ena/RELEASENOTES.md | 33 ++++++++++++++++++++++++++++++++ kernel/linux/ena/ena_netdev.h | 4 ++-- kernel/linux/rpm/Makefile | 2 +- kernel/linux/rpm/README-rpm.txt | 12 ++++++------ kernel/linux/rpm/ena.spec | 7 +++++-- 5 files changed, 47 insertions(+), 11 deletions(-) diff --git a/kernel/linux/ena/RELEASENOTES.md b/kernel/linux/ena/RELEASENOTES.md index 4693d6c0..32015fad 100644 --- a/kernel/linux/ena/RELEASENOTES.md +++ b/kernel/linux/ena/RELEASENOTES.md @@ -39,6 +39,39 @@ The driver was verified on the following distributions: SUSE Linux Enterprise Server 12 SP2 SUSE Linux Enterprise Server 12 SP3 +## r2.5.0 release notes +**New Features** +* Unify skb allocation path and use build_skb() +* Support ethtool priv-flags and LPC state change + +**Bug Fixes** +* Fix mapping function issues in XDP +* Fix XDP redirection related failures +* Fix page_ref_count() related checks to support older kernels correctly. +* Don't define UBUNTU_VERSION_CODE when not in Ubuntu. +* Drop unnecessary "#ifdef " checks from kcompat.h. +* Bug fixes and code improvements in legacy poll code + +**Minor Changes** +* Add debug prints to failed commands +* Minor performance improvements +* Replace pci_set_dma_mask/_coherent with dma_set_mask_and_coherent +* Change ena_increase_stat_atomic() function name +* Change variable casting in ena_com.c +* Add explicit include of ethtool.h to linux/ethtool.c +* Change LLQ fallback print from error to warning +* Remove unused ENA_DEFAULT_MIN_RX_BUFF_ALLOC_SIZE define +* Remove unused SUSPEND/RESUME defines +* Add mac OS defines. +* Use WRITE/READ_ONCE macros for first_interrupt variable +* Propagate upstream support for AF XDP busypoll +* Add Jiffies of last napi call to stats +* Add ena_ring_tx_doorbell() function +* Cosmetic changes to LPC +* Add is_lpc_page indication to help with page mapping +* Back-propagate xdp helpers from upstream kernel +* Fix RST format in README file + ## r2.4.1 release notes **Bug Fixes** * Fix compilation error in kernels >= 5.10 diff --git a/kernel/linux/ena/ena_netdev.h b/kernel/linux/ena/ena_netdev.h index 2d5acaeb..1061a0a3 100644 --- a/kernel/linux/ena/ena_netdev.h +++ b/kernel/linux/ena/ena_netdev.h @@ -25,8 +25,8 @@ #include "ena_eth_com.h" #define DRV_MODULE_GEN_MAJOR 2 -#define DRV_MODULE_GEN_MINOR 4 -#define DRV_MODULE_GEN_SUBMINOR 1 +#define DRV_MODULE_GEN_MINOR 5 +#define DRV_MODULE_GEN_SUBMINOR 0 #define DRV_MODULE_NAME "ena" #ifndef DRV_MODULE_GENERATION diff --git a/kernel/linux/rpm/Makefile b/kernel/linux/rpm/Makefile index 33e1be84..8f7599f8 100644 --- a/kernel/linux/rpm/Makefile +++ b/kernel/linux/rpm/Makefile @@ -3,7 +3,7 @@ # Author: Cristian Gafton NAME = ena -VERSION = 2.4.1 +VERSION = 2.5.0 TOPDIR := $(shell git rev-parse --show-toplevel) diff --git a/kernel/linux/rpm/README-rpm.txt b/kernel/linux/rpm/README-rpm.txt index db611823..b38b8f2c 100644 --- a/kernel/linux/rpm/README-rpm.txt +++ b/kernel/linux/rpm/README-rpm.txt @@ -32,7 +32,7 @@ Once the pre-requisites have been installed, you can simply issue a "make" in this directory to build the kmod src.rpm package: bash$ make -cd .. && git archive --format=tar --prefix=ena-2.4.1/ -o rpm/ena-2.4.1.tar ena_linux_2.4.1 +cd .. && git archive --format=tar --prefix=ena-2.5.0/ -o rpm/ena-2.5.0.tar ena_linux_2.5.0 rpmbuild -bs \ --define '_topdir %(pwd)' --define '_ntopdir %(pwd)' \ --define '_builddir %{_ntopdir}' \ @@ -41,7 +41,7 @@ rpmbuild -bs \ --define '_rpmdir %{_ntopdir}' \ --define '_srcrpmdir %{_ntopdir}' \ ena.spec -Wrote: /home/ec2-user/amzn-drivers/rpm/ena-2.4.1-1.el7.3.src.rpm +Wrote: /home/ec2-user/amzn-drivers/rpm/ena-2.5.0-1.el7.3.src.rpm bash$ _ @@ -50,10 +50,10 @@ COMPILING AND INSTALLING Once the src.rpm has been created, you can build binary packages for the installed kernel-devel and kernel-headers environments: -bash$ rpmbuild --rebuild ena-2.4.1-1.el7.3.src.rpm +bash$ rpmbuild --rebuild ena-2.5.0-1.el7.3.src.rpm [....] -Wrote: /home/ec2-user/rpmbuild/RPMS/x86_64/kmod-ena-2.4.1-1.el7.3.x86_64.rpm -Wrote: /home/ec2-user/rpmbuild/RPMS/x86_64/ena-debuginfo-2.4.1-1.el7.3.x86_64.rpm +Wrote: /home/ec2-user/rpmbuild/RPMS/x86_64/kmod-ena-2.5.0-1.el7.3.x86_64.rpm +Wrote: /home/ec2-user/rpmbuild/RPMS/x86_64/ena-debuginfo-2.5.0-1.el7.3.x86_64.rpm [...] bash$ _ @@ -61,5 +61,5 @@ Now you should be able to install/deploy the resulting binary rpm packages using your preferred rpm install too. For example, using yum: bash$ sudo yum -y localinstall -/home/ec2-user/rpmbuild/RPMS/x86_64/kmod-ena-2.4.1-1.el7.3.x86_64.rpm +/home/ec2-user/rpmbuild/RPMS/x86_64/kmod-ena-2.5.0-1.el7.3.x86_64.rpm diff --git a/kernel/linux/rpm/ena.spec b/kernel/linux/rpm/ena.spec index 1d3e353f..5321b627 100644 --- a/kernel/linux/rpm/ena.spec +++ b/kernel/linux/rpm/ena.spec @@ -1,5 +1,5 @@ %define kmod_name ena -%define kmod_driver_version 2.4.1 +%define kmod_driver_version 2.5.0 %define kmod_rpm_release 1 %define kmod_git_hash 3ac3e0bf079b2c0468f759f2213541e214a6dd77 %define kmod_kbuild_dir kernel/linux/ena @@ -22,7 +22,7 @@ Source7: preamble Name: %{kmod_name} Version: %{kmod_driver_version} -Release: %{kmod_rpm_release}%{?dist}.30 +Release: %{kmod_rpm_release}%{?dist}.31 Summary: %{kmod_name} kernel module Group: System/Kernel @@ -99,6 +99,9 @@ install -m 644 -D source/%{kmod_kbuild_dir}/RELEASENOTES.md $RPM_BUILD_ROOT/usr/ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Mar 03 2021 Arthur Kiyanovski akiyano@amazon.com - 2.5.0-1.31 +- Update ENA driver to version 2.5.0 + * Tue Feb 02 2021 Arthur Kiyanovski akiyano@amazon.com - 2.4.1-1.30 - Update ENA driver to version 2.4.1