diff --git a/backport-extend-ringparam-setting-getting-API-with-rx_buf_len.patch b/backport-extend-ringparam-setting-getting-API-with-rx_buf_len.patch new file mode 100644 index 0000000000000000000000000000000000000000..49475cba29d905ab164a067f1ac4f846615511db --- /dev/null +++ b/backport-extend-ringparam-setting-getting-API-with-rx_buf_len.patch @@ -0,0 +1,49 @@ +author Hao Chen 2021-11-18 20:12:43 +0800 +committer David S. Miller 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 +Signed-off-by: Guangbin Huang +Signed-off-by: David S. Miller + +--- + 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 3ae5d2e..66902cf 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 + diff --git a/i40e.spec b/i40e.spec index 477e2fd4a581c9216fae857c3bdd41f3bcdf380a..a0c2809987e789ddd9c90e0b527605429266b5f6 100644 --- a/i40e.spec +++ b/i40e.spec @@ -9,7 +9,7 @@ Name: i40e Summary: Intel(R) 40-10 Gigabit Ethernet Connection Network Driver Version: 2.14.13 -Release: 8 +Release: 9 Vendor: Intel Corporation License: GPL-2.0 URL: http://support.intel.com @@ -18,6 +18,7 @@ Source0: https://downloadcenter.intel.com/download/24411/Intel-Network-Adapter-D Patch0001: fix-gcc9-new-warning.patch Patch6000: backport-extend-coalesce-setting-uAPI-with-CQE-mode.patch +Patch6001: backport-extend-ringparam-setting-getting-API-with-rx_buf_len.patch Requires: kernel, findutils, gawk, bash, hwdata @@ -385,7 +386,13 @@ else fi %changelog -* Mon Jun 13 2022 chengyechun -2.14.13-8 +* Wed Jun 22 2022 chengyechun - 2.14.13-9 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:extend ringparam setting/getting API with rx_buf_len + +* Mon Jun 13 2022 chengyechun - 2.14.13-8 - Type:bugfix - ID:NA - SUG:NA