diff --git a/backport-extend-coalesce-setting-uAPI-with-CQE-mode.patch b/backport-extend-coalesce-setting-uAPI-with-CQE-mode.patch new file mode 100644 index 0000000000000000000000000000000000000000..f16476ccbc2bbd80e117a3646fbc9f369caad707 --- /dev/null +++ b/backport-extend-coalesce-setting-uAPI-with-CQE-mode.patch @@ -0,0 +1,60 @@ +From f3ccfda1931977b80267ba54070a1aeafa18f6ca Mon Sep 17 00:00:00 2001 +From: Yufeng Mo +Date: Fri, 20 Aug 2021 15:35:18 +0800 +Subject: [PATCH] ethtool: extend coalesce setting uAPI with CQE mode + +In order to support more coalesce parameters through netlink, +add two new parameter kernel_coal and extack for .set_coalesce +and .get_coalesce, then some extra info can return to user with +the netlink API. + +Signed-off-by: Yufeng Mo +Signed-off-by: Huazhong Tan +Signed-off-by: Jakub Kicinski +--- + src/iavf_ethtool.c | 12 ++++++++++-- + 1 file changed, 10 insertions(+), 2 deletions(-) + +diff --git a/src/iavf_ethtool.c b/src/iavf_ethtool.c +index 3f7d427..4b60027 100644 +--- a/src/iavf_ethtool.c ++++ b/src/iavf_ethtool.c +@@ -753,6 +753,8 @@ static int __iavf_get_coalesce(struct net_device *netdev, + * iavf_get_coalesce - Get interrupt coalescing settings + * @netdev: network interface device structure + * @ec: ethtool coalesce structure ++ * @kernel_coal: ethtool CQE mode setting structure ++ * @extack: extack for reporting error messages + * + * Returns current coalescing settings. This is referred to elsewhere in the + * driver as Interrupt Throttle Rate, as this is how the hardware describes +@@ -760,7 +762,9 @@ static int __iavf_get_coalesce(struct net_device *netdev, + * only represents the settings of queue 0. + **/ + static int iavf_get_coalesce(struct net_device *netdev, +- struct ethtool_coalesce *ec) ++ struct ethtool_coalesce *ec, ++ struct kernel_ethtool_coalesce *kernel_coal, ++ struct netlink_ext_ack *extack) + { + return __iavf_get_coalesce(netdev, ec, -1); + } +@@ -898,11 +902,15 @@ static int __iavf_set_coalesce(struct net_device *netdev, + * iavf_set_coalesce - Set interrupt coalescing settings + * @netdev: network interface device structure + * @ec: ethtool coalesce structure ++ * @kernel_coal: ethtool CQE mode setting structure ++ * @extack: extack for reporting error messages + * + * Change current coalescing settings for every queue. + **/ + static int iavf_set_coalesce(struct net_device *netdev, +- struct ethtool_coalesce *ec) ++ struct ethtool_coalesce *ec, ++ struct kernel_ethtool_coalesce *kernel_coal, ++ struct netlink_ext_ack *extack) + { + return __iavf_set_coalesce(netdev, ec, -1); + } +-- +2.30.0 diff --git a/iavf.spec b/iavf.spec index 56165f27fea3251f6cc68b8a72709ece5c93016b..e26d1e87252da8ceb2e0bf94a60d5e9e2c9ba64d 100644 --- a/iavf.spec +++ b/iavf.spec @@ -9,7 +9,7 @@ Name: iavf Summary: Intel(R) Ethernet Adaptive Virtual Function Driver Version: 4.0.1 -Release: 5 +Release: 6 Vendor: Intel Corporation License: GPL-2.0 URL: http://support.intel.com @@ -20,13 +20,13 @@ Requires: kernel, findutils, gawk, bash, hwdata BuildRequires: kernel-devel hwdata uname-build-checks gcc Patch0: fix-build-error-with-Linux-5.10.patch +Patch1: backport-extend-coalesce-setting-uAPI-with-CQE-mode.patch %description This package contains the Intel(R) Ethernet Adaptive Virtual Function Driver. %prep -%setup -%patch0 -p1 +%autosetup -p1 %build make -C src clean @@ -385,6 +385,12 @@ else fi %changelog +* Sat Apr 16 2022 gaihuiying - 4.0.1-6 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix iavf build error beacuse of kernel changes + * Wed Jul 7 2021 gaihuiying - 4.0.1-5 - Type:bugfix - ID:NA