diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-06-10 11:49:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-11 05:37:04 -0400 |
commit | 88c55e3cbd1bd4e8f52dcda67456763710a025a5 (patch) | |
tree | d038c7d993f6d24baf6ba7928877b2e259f444a8 /drivers/net/qlge/qlge_main.c | |
parent | 0ed586d075ef65c0268982e5b7f36d0ffaa95547 (diff) |
qlge: Relax alignment on TX harware queue.
The alignment was on size of queue boundary, but the hardware
only requires 4-byte alignment.
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_main.c')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 024c7343ada0..17d512c6bc36 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -2237,7 +2237,7 @@ static int ql_alloc_tx_resources(struct ql_adapter *qdev, | |||
2237 | &tx_ring->wq_base_dma); | 2237 | &tx_ring->wq_base_dma); |
2238 | 2238 | ||
2239 | if ((tx_ring->wq_base == NULL) | 2239 | if ((tx_ring->wq_base == NULL) |
2240 | || tx_ring->wq_base_dma & (tx_ring->wq_size - 1)) { | 2240 | || tx_ring->wq_base_dma & WQ_ADDR_ALIGN) { |
2241 | QPRINTK(qdev, IFUP, ERR, "tx_ring alloc failed.\n"); | 2241 | QPRINTK(qdev, IFUP, ERR, "tx_ring alloc failed.\n"); |
2242 | return -ENOMEM; | 2242 | return -ENOMEM; |
2243 | } | 2243 | } |