Skip to content

Commit 8633c08

Browse files
Alexander DuyckJeff Kirsher
authored andcommitted
ixgbe: Fix memory leak in ixgbe when receiving traffic on DDP enabled rings
This patch fixes a memory leak that was introduced in the 3.4 kernel. The leak occurred when FCoE was enabled and traffic was passed over the FCoE rings reserved for FCoE. The memory leak was due to us not populating the compound page information on the order 1 pages needed for FCoE. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent 0e808bc commit 8633c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ static bool ixgbe_alloc_mapped_page(struct ixgbe_ring *rx_ring,
11481148

11491149
/* alloc new page for storage */
11501150
if (likely(!page)) {
1151-
page = alloc_pages(GFP_ATOMIC | __GFP_COLD,
1151+
page = alloc_pages(GFP_ATOMIC | __GFP_COLD | __GFP_COMP,
11521152
ixgbe_rx_pg_order(rx_ring));
11531153
if (unlikely(!page)) {
11541154
rx_ring->rx_stats.alloc_rx_page_failed++;

0 commit comments

Comments
 (0)