summaryrefslogtreecommitdiff
BranchCommit messageAuthorAge
masterUpdates all over the place (mostly devices)Tobias Klauser13 years
 
space:mode:
authorMichael Chan <michael.chan@broadcom.com>2016-04-25 02:30:51 -0400
committerDavid S. Miller <davem@davemloft.net>2016-04-27 16:18:45 -0400
commit89d0a06c516339c0a2b3d02677f5d6310b3319fb (patch)
tree09e48f1ba0bfe519bc81483acf0f6cc48adeba44
parent2839f28bd5bf8fd2ab4a1ea3a5589c8f94364cbb (diff)
bnxt_en: Divide a page into 32K buffers for the aggregation ring if necessary.
If PAGE_SIZE is bigger than BNXT_RX_PAGE_SIZE, that means the native CPU page is bigger than the maximum length of the RX BD. Divide the page into multiple 32K buffers for the aggregation ring. Add an offset field in the bnxt_sw_rx_agg_bd struct to keep track of the page offset of each buffer. Since each page can be referenced by multiple buffer entries, call get_page() as needed to get the proper reference count. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat