!29 ethtool: extend ringparam setting/getting API with rx_buf_len
Merge pull request !29 from pojunxing/openEuler-22.03-LTS-Next
This commit is contained in:
commit
860aef0f52
@ -0,0 +1,48 @@
|
|||||||
|
author Hao Chen <chenhao288@hisilicon.com> 2021-11-18 20:12:43 +0800
|
||||||
|
committer David S. Miller <davem@davemloft.net> 2021-11-22 12:31:49 +0000
|
||||||
|
commit 7462494408cd3de8b0bc1e79670bf213288501d0 (patch)
|
||||||
|
tree 61a9e0eb7e7f2e53c2afca17e284dcef3f85d572
|
||||||
|
parent 0b70c256eba8448b072d25c95ee65e59da8970de (diff)
|
||||||
|
download linux-7462494408cd.tar.gz
|
||||||
|
ethtool: extend ringparam setting/getting API with rx_buf_len
|
||||||
|
|
||||||
|
Add two new parameters kernel_ringparam and extack for
|
||||||
|
.get_ringparam and .set_ringparam to extend more ring params
|
||||||
|
through netlink.
|
||||||
|
|
||||||
|
Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
|
||||||
|
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
|
||||||
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
||||||
|
---
|
||||||
|
src/i40e_ethtool.c | 8 ++++++--
|
||||||
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/i40e_ethtool.c b/src/i40e_ethtool.c
|
||||||
|
index 456e59c..f80c7d8 100644
|
||||||
|
--- a/src/i40e_ethtool.c
|
||||||
|
+++ b/src/i40e_ethtool.c
|
||||||
|
@@ -2227,7 +2227,9 @@ static void i40e_get_drvinfo(struct net_device *netdev,
|
||||||
|
}
|
||||||
|
|
||||||
|
static void i40e_get_ringparam(struct net_device *netdev,
|
||||||
|
- struct ethtool_ringparam *ring)
|
||||||
|
+ struct ethtool_ringparam *ring,
|
||||||
|
+ struct kernel_ethtool_ringparam *kernel_ring,
|
||||||
|
+ struct netlink_ext_ack *extack)
|
||||||
|
{
|
||||||
|
struct i40e_netdev_priv *np = netdev_priv(netdev);
|
||||||
|
struct i40e_pf *pf = np->vsi->back;
|
||||||
|
@@ -2255,7 +2257,9 @@ static bool i40e_active_tx_ring_index(struct i40e_vsi *vsi, u16 index)
|
||||||
|
}
|
||||||
|
|
||||||
|
static int i40e_set_ringparam(struct net_device *netdev,
|
||||||
|
- struct ethtool_ringparam *ring)
|
||||||
|
+ struct ethtool_ringparam *ring,
|
||||||
|
+ struct kernel_ethtool_ringparam *kernel_ring,
|
||||||
|
+ struct netlink_ext_ack *extack)
|
||||||
|
{
|
||||||
|
struct i40e_ring *tx_rings = NULL, *rx_rings = NULL;
|
||||||
|
struct i40e_netdev_priv *np = netdev_priv(netdev);
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
@ -9,7 +9,7 @@
|
|||||||
Name: i40e
|
Name: i40e
|
||||||
Summary: Intel(R) 40-10 Gigabit Ethernet Connection Network Driver
|
Summary: Intel(R) 40-10 Gigabit Ethernet Connection Network Driver
|
||||||
Version: 2.14.13
|
Version: 2.14.13
|
||||||
Release: 7
|
Release: 8
|
||||||
Vendor: Intel Corporation
|
Vendor: Intel Corporation
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
URL: http://support.intel.com
|
URL: http://support.intel.com
|
||||||
@ -19,6 +19,7 @@ Patch0001: fix-gcc9-new-warning.patch
|
|||||||
|
|
||||||
Patch6000: backport-extend-coalesce-setting-uAPI-with-CQE-mode.patch
|
Patch6000: backport-extend-coalesce-setting-uAPI-with-CQE-mode.patch
|
||||||
Patch6001: backport-fix-ATR-queue-selection.patch
|
Patch6001: backport-fix-ATR-queue-selection.patch
|
||||||
|
Patch6002: backport-extend-ringparam-setting-getting-API-with-rx_buf_len.patch
|
||||||
|
|
||||||
Requires: kernel, findutils, gawk, bash, hwdata
|
Requires: kernel, findutils, gawk, bash, hwdata
|
||||||
|
|
||||||
@ -386,6 +387,12 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 10 2022 chengyechun<chengyechun1@huawei.com> - 2.14.13-8
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:extend ringparam setting/getting API with rx_buf_len
|
||||||
|
|
||||||
* Thu Nov 4 2021 Aichun Li <liaichun@huawei.com> - 2.14.13-7
|
* Thu Nov 4 2021 Aichun Li <liaichun@huawei.com> - 2.14.13-7
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user