diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-10-10 05:35:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-12 02:16:16 -0400 |
commit | 52e55f3cde3ac3c7982dbc0cc67075456b135a31 (patch) | |
tree | 7f4c05309ca7d3a101db55ee5b1ae50b1d6fbdef /drivers/net/qlge/qlge.h | |
parent | 88051b4e4f270966b9e2ec070822513c46083fe1 (diff) |
qlge: Remove inline math for small rx buf mapping.
rx_ring->sbq_buf_len now holds the length of the mapped portion of the
buffer rather than the overall length.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge.h')
-rw-r--r-- | drivers/net/qlge/qlge.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/qlge/qlge.h b/drivers/net/qlge/qlge.h index f6bd22495f55..cef930bfcc79 100644 --- a/drivers/net/qlge/qlge.h +++ b/drivers/net/qlge/qlge.h | |||
@@ -54,7 +54,8 @@ | |||
54 | #define RX_RING_SHADOW_SPACE (sizeof(u64) + \ | 54 | #define RX_RING_SHADOW_SPACE (sizeof(u64) + \ |
55 | MAX_DB_PAGES_PER_BQ(NUM_SMALL_BUFFERS) * sizeof(u64) + \ | 55 | MAX_DB_PAGES_PER_BQ(NUM_SMALL_BUFFERS) * sizeof(u64) + \ |
56 | MAX_DB_PAGES_PER_BQ(NUM_LARGE_BUFFERS) * sizeof(u64)) | 56 | MAX_DB_PAGES_PER_BQ(NUM_LARGE_BUFFERS) * sizeof(u64)) |
57 | #define SMALL_BUFFER_SIZE 256 | 57 | #define SMALL_BUFFER_SIZE 512 |
58 | #define SMALL_BUF_MAP_SIZE (SMALL_BUFFER_SIZE / 2) | ||
58 | #define LARGE_BUFFER_SIZE PAGE_SIZE | 59 | #define LARGE_BUFFER_SIZE PAGE_SIZE |
59 | #define MAX_SPLIT_SIZE 1023 | 60 | #define MAX_SPLIT_SIZE 1023 |
60 | #define QLGE_SB_PAD 32 | 61 | #define QLGE_SB_PAD 32 |