netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net V1 0/2] net/mlx4_en: Fix pages never dma unmapped on rx
@ 2013-10-07 11:38 Amir Vadai
  2013-10-07 11:38 ` [PATCH net V1 1/2] net/mlx4_en: Rename name of mlx4_en_rx_alloc members Amir Vadai
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Amir Vadai @ 2013-10-07 11:38 UTC (permalink / raw)
  To: David S. Miller
  Cc: netdev, Amir Vadai, Or Gerlitz, Eugenia Emantayev, Eric Dumazet

This patchset fixes a bug introduced by commit 51151a16 (mlx4: allow order-0
memory allocations in RX path). Where dma_unmap_page wasn't called.

Changes from V0:
- Added "Rename name of mlx4_en_rx_alloc members". Old names were confusing.
- Last frag in page calculation was wrong. Since all frags in page are of the
  same size, need to add this frag_stride to end of frag offset, and not the
  size of next frag in skb.

Amir Vadai (2):
  net/mlx4_en: Rename name of mlx4_en_rx_alloc members
  net/mlx4_en: Fix pages never dma unmapped on rx

 drivers/net/ethernet/mellanox/mlx4/en_rx.c   | 41 ++++++++++++++++------------
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h |  4 +--
 2 files changed, 26 insertions(+), 19 deletions(-)

-- 
1.8.3.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-08 20:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-07 11:38 [PATCH net V1 0/2] net/mlx4_en: Fix pages never dma unmapped on rx Amir Vadai
2013-10-07 11:38 ` [PATCH net V1 1/2] net/mlx4_en: Rename name of mlx4_en_rx_alloc members Amir Vadai
2013-10-07 13:44   ` Eric Dumazet
2013-10-07 11:38 ` [PATCH net V1 2/2] net/mlx4_en: Fix pages never dma unmapped on rx Amir Vadai
2013-10-07 13:47   ` Eric Dumazet
2013-10-08 20:10 ` [PATCH net V1 0/2] " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).