diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2019-06-07 21:20:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-09 19:40:09 -0700 |
commit | f9dae5554aed4d55ab82a344f9fa698423ffac95 (patch) | |
tree | 7890f1052e927b4be577ee80967192100d15cd3e /net/core | |
parent | net: Don't disable interrupts in __netdev_alloc_skb() (diff) | |
download | linux-dev-f9dae5554aed4d55ab82a344f9fa698423ffac95.tar.xz linux-dev-f9dae5554aed4d55ab82a344f9fa698423ffac95.zip |
dpaa2-eth: Remove preempt_disable() from seed_pool()
According to the comment, the preempt_disable() statement is required
due to synchronisation in napi_alloc_frag(). The awful truth is that
local_bh_disable() is required because otherwise the NAPI poll callback
can be invoked while the open function setup buffers. This isn't
unlikely since the dpaa2 provides multiple devices.
The usage of napi_alloc_frag() has been removed in commit
27c874867c4e9 ("dpaa2-eth: Use a single page per Rx buffer")
which means that the comment is not accurate and the preempt_disable()
statement is not required.
Remove the outdated comment and the no longer required
preempt_disable().
Cc: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Acked-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions