Ai
1 Star 0 Fork 11

XWwalker/iavf

forked from src-openEuler/iavf
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-ethtool-extend-ringparam-setting-getting-API-with-rx.patch 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
eaglegai 提交于 2022-06-22 10:00 +08:00 . fix build error beacuse of kernel apichanges
From 7462494408cd3de8b0bc1e79670bf213288501d0 Mon Sep 17 00:00:00 2001
From: Hao Chen <chenhao288@hisilicon.com>
Date: Thu, 18 Nov 2021 20:12:43 +0800
Subject: 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.
---
src/iavf_ethtool.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
delete mode 100644 src/.iavf_ethtool_stats.h.swp
diff --git a/src/iavf_ethtool.c b/src/iavf_ethtool.c
index 3f7d427..545685f 100644
--- a/src/iavf_ethtool.c
+++ b/src/iavf_ethtool.c
@@ -634,7 +634,9 @@ static void iavf_get_drvinfo(struct net_device *netdev,
* but the number of rings is not reported.
**/
static void iavf_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 iavf_adapter *adapter = netdev_priv(netdev);
@@ -653,7 +655,9 @@ static void iavf_get_ringparam(struct net_device *netdev,
* number of rings is not specified, so all rings get the same settings.
**/
static int iavf_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 iavf_adapter *adapter = netdev_priv(netdev);
u32 new_rx_count, new_tx_count;
--
2.27.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/XWwalker/iavf.git
git@gitee.com:XWwalker/iavf.git
XWwalker
iavf
iavf
master

搜索帮助