Re: [PATCH V7 net-next 0/6] ethtool: add support to set/get tx copybreak buf size and rx buf len

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

 



On 2022/10/26 22:00, Gal Pressman wrote:
> On 18/11/2021 14:12, Guangbin Huang wrote:
>> From: Hao Chen <chenhao288@xxxxxxxxxxxxx>
>>
>> This series add support to set/get tx copybreak buf size and rx buf len via
>> ethtool and hns3 driver implements them.
>>
>> Tx copybreak buf size is used for tx copybreak feature which for small size
>> packet or frag. Use ethtool --get-tunable command to get it, and ethtool
>> --set-tunable command to set it, examples are as follow:
>>
>> 1. set tx spare buf size to 102400:
>> $ ethtool --set-tunable eth1 tx-buf-size 102400
>>
>> 2. get tx spare buf size:
>> $ ethtool --get-tunable eth1 tx-buf-size
>> tx-buf-size: 102400
> 
> Hi Guangbin,
> Can you please clarify the difference between TX copybreak and TX
> copybreak buf size?

Hi Gal,
'TX copybreak buf size' is the size of buffer allocated to a queue
in order to support copybreak handling when skb->len <= 'TX copybreak',

see hns3_can_use_tx_bounce() for 'TX copybreak' and
hns3_init_tx_spare_buffer() for 'TX copybreak buf size'.

> .
> 



[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