Steve Wise d08ca26cee RDMA/cxgb3: Fix page shift calculation in build_phys_page_list()
The existing logic incorrectly maps this buffer list:

    0: addr 0x10001000, size 0x1000
    1: addr 0x10002000, size 0x1000

To this bogus page list:

    0: 0x10000000
    1: 0x10002000

The shift calculation must also take into account the address of the
first entry masked by the page_mask as well as the last address+size
rounded up to the next page size.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-01-25 14:17:45 -08:00
..
2007-10-17 08:42:52 -07:00
2008-01-24 22:50:12 -08:00
2007-10-16 09:43:09 -07:00
2007-12-31 23:11:11 +00:00
2007-11-05 15:12:31 -08:00
2007-12-12 20:01:00 +01:00
2007-12-23 12:54:37 -08:00
2008-01-24 20:40:44 -08:00
2008-01-24 20:40:45 -08:00
2008-01-24 20:40:45 -08:00
2007-10-17 08:42:57 -07:00
2008-01-24 20:40:43 -08:00
2007-10-23 15:49:54 +10:00