lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <323020b0c5a44235a1707dd0619deba3@BLUPR03MB373.namprd03.prod.outlook.com>
Date:	Mon, 29 Sep 2014 12:43:38 +0000
From:	"fugang.duan@...escale.com" <fugang.duan@...escale.com>
To:	Eric Dumazet <eric.dumazet@...il.com>
CC:	"Frank.Li@...escale.com" <Frank.Li@...escale.com>,
	"davem@...emloft.net" <davem@...emloft.net>,
	"romieu@...zoreil.com" <romieu@...zoreil.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"shawn.guo@...aro.org" <shawn.guo@...aro.org>,
	"bhutchings@...arflare.com" <bhutchings@...arflare.com>
Subject: RE: [PATCH v2 1/1] net: fec: implement rx_copybreak to improve rx
 performance

From: Eric Dumazet <eric.dumazet@...il.com> Sent: Monday, September 29, 2014 8:12 PM
>To: Duan Fugang-B38611
>Cc: Li Frank-B20596; davem@...emloft.net; romieu@...zoreil.com;
>netdev@...r.kernel.org; shawn.guo@...aro.org; bhutchings@...arflare.com
>Subject: Re: [PATCH v2 1/1] net: fec: implement rx_copybreak to improve rx
>performance
>
>On Mon, 2014-09-29 at 15:47 +0800, Fugang Duan wrote:
>> - Copy short frames and keep the buffers mapped, re-allocate skb instead
>of
>>   memory copy for long frames.
>> - Add support for setting/getting rx_copybreak using generic ethtool
>> tunable
>>
>> Changes V2:
>> * Implements rx_copybreak
>
>>
>> +#define COPYBREAK_DEFAULT 256
>> +static unsigned int copybreak __read_mostly = COPYBREAK_DEFAULT;
>> +module_param(copybreak, uint, 0644); MODULE_PARM_DESC(copybreak,
>> +		 "Maximum packet size that is copied to a new buffer on
>receive");
>> +
>
>It is not the right way to handle this.
>
>Old drivers might still have a legacy module parameter.
>
>New implementations should provide the new ethtool support, and only this.
>No new module parameter is accepted.
>
>For details, check following commits :
>
>d4ad30b182305ecf97f145a5d4d1fd9e728c6d01 enic: Add tunable_ops support for
>rx_copybreak
>
>f0db9b073415848709dd59a6394969882f517da9 ethtool: Add generic options for
>tunables
>
>
>Or check the current tree :
>
>git grep -n rx_copybreak drivers/net/ethernet/cisco/enic
>
The patch implement ethtool interface, pls read the patch completely.

Thanks,
Andy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ