Skip to content

Commit

Permalink
[NET]: Re-enable irqs before pushing pending DMA requests
Browse files Browse the repository at this point in the history
This moves the local_irq_enable() call in net_rx_action() to before
calling the CONFIG_NET_DMA's dma_async_memcpy_issue_pending() rather
than after.  This shortens the irq disabled window and allows for DMA
drivers that need to do their own irq hold.

Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shannon Nelson authored and davem330 committed Jun 24, 2007
1 parent ddb61a5 commit 515e06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Expand Up @@ -2009,6 +2009,7 @@ static void net_rx_action(struct softirq_action *h)
}
}
out:
local_irq_enable();
#ifdef CONFIG_NET_DMA
/*
* There may not be any more sk_buffs coming right now, so push
Expand All @@ -2022,7 +2023,6 @@ static void net_rx_action(struct softirq_action *h)
rcu_read_unlock();
}
#endif
local_irq_enable();
return;

softnet_break:
Expand Down

0 comments on commit 515e06c

Please sign in to comment.