bmips: check NAPI context when refilling rx SKB
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Thu, 23 Jun 2022 03:49:23 +0000 (11:49 +0800)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 4 Mar 2023 18:28:16 +0000 (19:28 +0100)
commita332b8cc9cb1536684d1a33291bb9db6b22cff99
tree0e38f6c40e1c0591ec8995318c4e8f64b045a259
parent71ef4ec47c18ad98122c6259843dc3d9b009be08
bmips: check NAPI context when refilling rx SKB

Check if we're in NAPI context when refilling rx. Normally we're almost
always running in NAPI context. Dispatch to napi_alloc_frag() directly
instead of relying on netdev_alloc_frag() which does the same but with
the overhead of local_bh_disable/enable.

Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
[improve code format]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c