Re: [PATCH V3 net-next 4/6] ethtool: extend ringparam setting uAPI with rx_buf_len

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2021/10/13 2:26, Jakub Kicinski wrote:
On Tue, 12 Oct 2021 21:41:25 +0800 Guangbin Huang wrote:
@@ -80,7 +83,10 @@ static int rings_fill_reply(struct sk_buff *skb,
  	     (nla_put_u32(skb, ETHTOOL_A_RINGS_TX_MAX,
  			  ringparam->tx_max_pending) ||
  	      nla_put_u32(skb, ETHTOOL_A_RINGS_TX,
-			  ringparam->tx_pending))))
+			  ringparam->tx_pending)))  ||
+	    (ringparam_ext->rx_buf_len &&
+	     (nla_put_u32(skb, ETHTOOL_A_RINGS_RX_BUF_LEN,
+			  ringparam_ext->rx_buf_len))))
  		return -EMSGSIZE;

I think that this chunk belongs in the previous patch.
.

Ok, we will move them in next version.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux