wireless: Atheros: Use netif_rx().
Since commit
baebdf48c3
("net: dev: Makes sure netif_rx() can be invoked in any context.")
the function netif_rx() can be used in preemptible/thread context as
well as in interrupt context.
Use netif_rx().
Cc: Kalle Valo <kvalo@kernel.org>
Cc: Maya Erez <merez@codeaurora.org>
Cc: linux-wireless@vger.kernel.org
Cc: wil6210@qti.qualcomm.com
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
e77975e02b
Коммит
1cd2ef9fcb
|
@ -839,7 +839,7 @@ static void ath6kl_deliver_frames_to_nw_stack(struct net_device *dev,
|
|||
|
||||
skb->protocol = eth_type_trans(skb, skb->dev);
|
||||
|
||||
netif_rx_ni(skb);
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
||||
static void ath6kl_alloc_netbufs(struct sk_buff_head *q, u16 num)
|
||||
|
|
|
@ -958,7 +958,7 @@ void wil_netif_rx(struct sk_buff *skb, struct net_device *ndev, int cid,
|
|||
if (gro)
|
||||
napi_gro_receive(&wil->napi_rx, skb);
|
||||
else
|
||||
netif_rx_ni(skb);
|
||||
netif_rx(skb);
|
||||
}
|
||||
ndev->stats.rx_packets++;
|
||||
stats->rx_packets++;
|
||||
|
|
|
@ -1199,7 +1199,7 @@ static void wmi_evt_eapol_rx(struct wil6210_vif *vif, int id, void *d, int len)
|
|||
eth->h_proto = cpu_to_be16(ETH_P_PAE);
|
||||
skb_put_data(skb, evt->eapol, eapol_len);
|
||||
skb->protocol = eth_type_trans(skb, ndev);
|
||||
if (likely(netif_rx_ni(skb) == NET_RX_SUCCESS)) {
|
||||
if (likely(netif_rx(skb) == NET_RX_SUCCESS)) {
|
||||
ndev->stats.rx_packets++;
|
||||
ndev->stats.rx_bytes += sz;
|
||||
if (stats) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче