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]
Date:	Tue, 03 Feb 2015 21:58:29 -0800
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Hariprasad Shenai <hariprasad@...lsio.com>
Cc:	netdev@...r.kernel.org, davem@...emloft.net, leedom@...lsio.com,
	anish@...lsio.com, nirranjan@...lsio.com, praveenm@...lsio.com,
	kumaras@...lsio.com
Subject: Re: [PATCH net-next] cxgb4: Add low latency socket busy_poll support

On Tue, 2015-02-03 at 10:50 +0530, Hariprasad Shenai wrote:

> @@ -1978,9 +2016,13 @@ static int napi_rx_handler(struct napi_struct *napi, int budget)
>  {
>  	unsigned int params;
>  	struct sge_rspq *q = container_of(napi, struct sge_rspq, napi);
> -	int work_done = process_responses(q, budget);
> +	int work_done = 0;
>  	u32 val;
>  
> +	if (!cxgb_poll_lock_napi(q))
> +		return work_done;
> +


This is very suspicious. Please take a look at commits

24e579c8898aa641 ("bnx2x: fix napi poll return value for repoll") 
f104fedc0da126ab ("enic: fix rx napi poll return value")

for context.


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ