]> bbs.cooldavid.org Git - net-next-2.6.git/commit
bnx2x: Optimized the branching in the bnx2x_rx_int()
authorVladislav Zolotarov <vladz@broadcom.com>
Sun, 17 Oct 2010 23:02:20 +0000 (23:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2010 13:51:57 +0000 (06:51 -0700)
commitfe78d2637ad9acc6414e36ce781aadc8c77d560d
treef7a30b69036aac9c058a8c6a49e1cd27fc9fb72e
parentcdd861d68d27a0d0ebe4e641d20d8cfa5cef405f
bnx2x: Optimized the branching in the bnx2x_rx_int()

Optimized the branching in the bnx2x_rx_int() based on the fact
that FP CQE will always have at least one of START or STOP flags set,
so if not both bits are set and START bit is not set,
then it's a STOP bit that is set.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_cmn.c