summaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorDoug Berger <opendmb@gmail.com>2017-10-26 01:04:15 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-26 04:14:54 +0300
commitfbf557d9d1bf93892db70121061c81aaded41607 (patch)
tree3b3be30beed4377e998341f84572375decd30253 /include/linux/compiler.h
parent7587935cfa119e122215e37e002a481d7374198b (diff)
downloadlinux-fbf557d9d1bf93892db70121061c81aaded41607.tar.xz
net: bcmgenet: cleanup ring interrupt masking and unmasking
Since the NAPI interrupts are basically ignored when NAPI is disabled we don't need to mask them within the functions bcmgenet_disable_tx_napi() and bcmgenet_disable_rx_napi(). So wait until all NAPI instances are disabled and mask all of the bcmgenet driver interrupts together in bcmgenet_netif_stop(). The interrupts can still be enabled in the functions bcmgenet_enable_tx_napi() and bcmgenet_enable_rx_napi(), but use the ring context int_enable() method to keep the functionality consistent and the code cleaner. Signed-off-by: Doug Berger <opendmb@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/compiler.h')
0 files changed, 0 insertions, 0 deletions