Re: [PATCH net-next v2] enic: use atomic_t instead of spin_lock in busy poll

2015-06-25 Thread David Miller
From: Govindarajulu Varadarajan <_gov...@gmx.com> Date: Thu, 25 Jun 2015 16:02:04 +0530 > We use spinlock to access a single flag. We can avoid spin_locks by using > atomic variable and atomic_cmpxchg(). Use atomic_cmpxchg to set the flag > for idle to poll. And a simple atomic_set to unlock (set

[PATCH net-next v2] enic: use atomic_t instead of spin_lock in busy poll

2015-06-25 Thread Govindarajulu Varadarajan
We use spinlock to access a single flag. We can avoid spin_locks by using atomic variable and atomic_cmpxchg(). Use atomic_cmpxchg to set the flag for idle to poll. And a simple atomic_set to unlock (set idle from poll). In napi poll, if gro is enabled, we call napi_gro_receive() to deliver the pa