linux/drivers/net/ethernet/mellanox/mlx4
Amir Vadai 021f1107ff net/mlx4_en: Fix pages never dma unmapped on rx
This patch fixes a bug introduced by commit 51151a16 (mlx4: allow
order-0 memory allocations in RX path).

dma_unmap_page never reached because condition to detect last fragment
in page is wrong. offset+frag_stride can't be greater than size, need to
make sure no additional frag will fit in page => compare offset +
frag_stride + next_frag_size instead.
next_frag_size is the same as the current one, since page is shared only
with frags of the same size.

CC: Eric Dumazet <edumazet@google.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-10-08 16:09:50 -04:00
..
alloc.c
catas.c
cmd.c net: mlx4: Staticize local functions 2013-08-05 11:05:24 -07:00
cq.c net/mlx4_en: Add HW timestamping (TS) support 2013-04-24 16:30:14 -04:00
en_clock.c mlx4_en: fix a build error on 32bit arches 2013-04-30 19:00:25 -04:00
en_cq.c net/mlx4_en: Add Low Latency Socket (LLS) support 2013-06-19 18:32:16 -07:00
en_dcb_nl.c net/mlx4_en: Disable global flow control when PFC enabled 2013-08-21 12:19:26 -07:00
en_ethtool.c net/mlx4_en: Check device state when setting coalescing 2013-09-12 23:42:15 -04:00
en_main.c net/mlx4_en: Fix resource leak in error flow 2013-06-25 16:29:38 -07:00
en_netdev.c net: rename CONFIG_NET_LL_RX_POLL to CONFIG_NET_RX_BUSY_POLL 2013-08-01 15:11:17 -07:00
en_port.c
en_port.h
en_resources.c net/mlx4: Strengthen VLAN tags/priorities enforcement in VST mode 2013-05-11 16:12:44 -07:00
en_rx.c net/mlx4_en: Fix pages never dma unmapped on rx 2013-10-08 16:09:50 -04:00
en_selftest.c drivers:net: Remove unnecessary OOM messages after netdev_alloc_skb 2013-03-09 16:09:19 -05:00
en_tx.c net/mlx4_en: Reduce scope of local variables in mlx4_en_xmit 2013-08-21 12:19:26 -07:00
eq.c net/mlx4_core: Respond to operation request by firmware 2013-07-29 01:12:40 -07:00
fw.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-03 21:36:46 -07:00
fw.h net/mlx4_core: Respond to operation request by firmware 2013-07-29 01:12:40 -07:00
icm.c mlx4_core: Fix integer overflows so 8TBs of memory registration works 2012-09-13 17:52:02 -07:00
icm.h mlx4_core: Fix integer overflows so 8TBs of memory registration works 2012-09-13 17:52:02 -07:00
intf.c
Kconfig mlx4_en: Remove remnants of LRO support 2012-11-19 19:13:59 -05:00
main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-03 21:36:46 -07:00
Makefile net/mlx4_en: Add HW timestamping (TS) support 2013-04-24 16:30:14 -04:00
mcg.c net/mlx4_core: Respond to operation request by firmware 2013-07-29 01:12:40 -07:00
mlx4_en.h net/mlx4_en: Rename name of mlx4_en_rx_alloc members 2013-10-08 16:09:50 -04:00
mlx4.h net/mlx4_core: Respond to operation request by firmware 2013-07-29 01:12:40 -07:00
mr.c net/mlx4_core: Fix endianness bug in set_param_l 2013-03-07 15:52:03 -05:00
pd.c net/mlx4_core: Fix endianness bug in set_param_l 2013-03-07 15:52:03 -05:00
port.c net/mlx4: Add set VF default vlan ID and priority support 2013-04-26 23:29:13 -04:00
profile.c
qp.c net/mlx4_core: Fix endianness bug in set_param_l 2013-03-07 15:52:03 -05:00
reset.c
resource_tracker.c mlx4_core: Fix XRC QPs detection in the resource tracker 2013-08-13 11:21:31 -07:00
sense.c Merge branch 'for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq 2012-10-02 09:54:49 -07:00
srq.c mlx4_core: Implement SRQ object lookup from srqn 2013-04-16 22:42:55 -07:00