Roland Dreier
c5419e6f05
cxgb3: Fix sparse warning and micro-optimize is_pure_response()
...
The function is_pure_response() does "ntohl(var) & const" and then
essentially just tests whether the result is 0 or not; this can be done
more efficiently by computing "var & htonl(const)" instead and doing the
byte swap at compile time instead of run time.
This change slightly shrinks the compiled code; eg on x86-64 we save a
couple of bswapl instructions:
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8 (-8)
function old new delta
t3_sge_intr_msix_napi 544 536 -8
and this also has the pleasant side effect of fixing a sparse warning:
drivers/net/cxgb3/sge.c:2313:15: warning: restricted degrades to integer
Signed-off-by: Roland Dreier <rolandd@cisco.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2008-11-28 21:55:42 -08:00
..
2008-11-12 23:37:49 -08:00
2008-11-12 23:37:49 -08:00
2008-11-20 20:14:53 -08:00
2008-11-25 17:00:05 -08:00
2008-11-20 20:14:53 -08:00
2008-11-26 23:48:40 -08:00
2008-11-28 21:55:42 -08:00
2008-11-27 00:22:45 -08:00
2008-11-26 23:48:40 -08:00
2008-11-21 21:29:25 -08:00
2008-11-20 01:02:05 -08:00
2008-11-27 00:24:37 -08:00
2008-11-12 23:38:14 -08:00
2008-11-27 00:23:12 -08:00
2008-11-27 15:34:07 -08:00
2008-11-25 16:57:59 -08:00
2008-11-23 15:49:54 -08:00
2008-11-21 17:32:15 -08:00
2008-11-26 23:48:40 -08:00
2008-11-28 16:42:41 -08:00
2008-11-21 17:29:50 -08:00
2008-11-21 17:32:54 -08:00
2008-11-20 20:29:48 -08:00
2008-11-24 14:49:11 -08:00
2008-11-12 23:38:36 -08:00
2008-11-25 03:53:09 -08:00
2008-11-25 16:53:08 -08:00
2008-11-26 23:48:40 -08:00
2008-11-12 23:37:49 -08:00
2008-11-12 23:37:49 -08:00
2008-11-25 18:26:20 -08:00
2008-11-12 23:37:49 -08:00
2008-11-25 17:02:20 -08:00
2008-11-20 20:14:53 -08:00
2008-11-24 14:47:01 -08:00
2008-11-25 18:12:49 -08:00
2008-11-25 18:12:49 -08:00
2008-11-25 18:12:49 -08:00
2008-11-20 01:01:00 -08:00
2008-11-20 20:14:53 -08:00
2008-11-25 18:25:32 -08:00
2008-11-12 23:37:49 -08:00
2008-11-12 23:37:49 -08:00
2008-11-12 23:37:49 -08:00
2008-11-28 15:52:43 -08:00
2008-11-28 15:52:43 -08:00
2008-11-21 17:36:04 -08:00
2008-11-25 16:57:05 -08:00
2008-11-12 23:38:14 -08:00
2008-11-20 20:31:40 -08:00
2008-11-25 17:00:39 -08:00
2008-11-21 17:31:51 -08:00
2008-11-16 12:41:35 -08:00
2008-11-20 20:28:00 -08:00
2008-11-27 00:23:37 -08:00
2008-11-25 18:24:20 -08:00
2008-11-12 23:38:14 -08:00
2008-11-12 23:38:14 -08:00
2008-11-21 17:37:54 -08:00
2008-11-25 18:23:59 -08:00
2008-11-12 23:38:14 -08:00
2008-11-12 23:38:14 -08:00
2008-11-20 20:14:53 -08:00
2008-11-18 23:38:23 -08:00
2008-11-21 17:36:36 -08:00
2008-11-26 23:48:40 -08:00
2008-11-25 18:24:57 -08:00
2008-11-12 23:38:14 -08:00
2008-11-20 20:14:53 -08:00
2008-11-20 16:44:00 -08:00
2008-11-12 23:37:49 -08:00
2008-11-21 17:28:33 -08:00
2008-11-25 01:02:08 -08:00
2008-11-20 04:05:56 -08:00
2008-11-25 18:12:49 -08:00
2008-11-25 18:24:38 -08:00
2008-11-20 20:14:53 -08:00
2008-11-12 23:37:49 -08:00
2008-11-12 23:37:49 -08:00
2008-11-20 20:14:53 -08:00
2008-11-26 23:48:40 -08:00
2008-11-20 16:44:00 -08:00
2008-11-12 23:38:14 -08:00
2008-11-12 23:38:14 -08:00
2008-11-28 15:55:00 -08:00
2008-11-21 17:39:02 -08:00
2008-11-25 18:23:35 -08:00
2008-11-25 18:26:38 -08:00
2008-11-12 23:38:14 -08:00
2008-11-20 04:25:06 -08:00
2008-11-12 23:38:14 -08:00
2008-11-28 15:52:00 -08:00
2008-11-28 15:52:00 -08:00
2008-11-21 17:35:40 -08:00
2008-11-12 23:38:14 -08:00
2008-11-12 23:38:14 -08:00
2008-11-20 20:14:53 -08:00
2008-11-25 16:49:07 -08:00
2008-11-21 17:34:56 -08:00
2008-11-20 20:14:53 -08:00
2008-11-12 23:38:14 -08:00
2008-11-20 20:32:15 -08:00
2008-11-25 16:47:35 -08:00
2008-11-21 17:37:24 -08:00
2008-11-12 23:38:36 -08:00
2008-11-20 16:44:00 -08:00
2008-11-26 23:48:40 -08:00
2008-11-20 20:14:53 -08:00
2008-11-20 20:14:53 -08:00
2008-11-20 01:32:34 -08:00
2008-11-20 16:44:00 -08:00
2008-11-12 23:38:36 -08:00
2008-11-26 01:52:15 -08:00
2008-11-25 18:23:06 -08:00
2008-11-12 23:38:36 -08:00
2008-11-12 23:38:36 -08:00
2008-11-23 15:46:55 -08:00
2008-11-25 18:25:49 -08:00
2008-11-12 23:38:36 -08:00
2008-11-12 23:38:36 -08:00
2008-11-26 23:48:40 -08:00
2008-11-12 23:38:36 -08:00
2008-11-12 23:38:36 -08:00
2008-11-21 17:34:09 -08:00
2008-11-21 17:23:26 -08:00
2008-11-21 17:22:19 -08:00
2008-11-20 20:14:53 -08:00
2008-11-12 23:38:36 -08:00
2008-11-14 18:18:17 -05:00
2008-11-20 20:14:53 -08:00
2008-11-21 17:30:11 -08:00
2008-11-20 20:14:53 -08:00
2008-11-16 22:41:34 -08:00
2008-11-25 18:21:56 -08:00
2008-11-21 17:35:16 -08:00
2008-11-12 23:39:10 -08:00