[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJxxZ0M5EPY028e_BZHEcyiWibZCeZ1rVq3junawETRb13FUGw@mail.gmail.com>
Date: Tue, 22 Jul 2014 18:10:07 +0800
From: Sonic Zhang <sonic.adi@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: David Miller <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Francois Romieu <romieu@...zoreil.com>,
adi-buildroot-devel@...ts.sourceforge.net,
"Zhang, Sonic" <sonic.zhang@...log.com>
Subject: Re: [PATCH v7] bfin_mac: convert bfin Ethernet driver to NAPI framework
On Tue, Jul 22, 2014 at 5:51 PM, Eric Dumazet <eric.dumazet@...il.com> wrote:
> On Tue, 2014-07-22 at 16:53 +0800, Sonic Zhang wrote:
>
>> if (!--A)
>>
>> doesn't equal to
>>
>> if (A--)
>> if (!A)
>
> It really does, no matter what you think.
>
> In all cases, A is decremented.
>
> In all cases, final action is done if and only if A was 1 before the
> test(s)
>
> Thats simple logic, and all your arguments about NAPI, IRQ, and moon
> phase are irrelevant.
>
Thank you for correcting. I think I made a mistake on the condition logic.
Regards,
Sonic
--
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