mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-08 13:44:01 +08:00
mctp: serial: 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: Jeremy Kerr <jk@codeconstruct.com.au>
Cc: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
00f4a0afb7
commit
b903117b48
@ -286,7 +286,7 @@ static void mctp_serial_rx(struct mctp_serial *dev)
|
||||
cb = __mctp_cb(skb);
|
||||
cb->halen = 0;
|
||||
|
||||
netif_rx_ni(skb);
|
||||
netif_rx(skb);
|
||||
dev->netdev->stats.rx_packets++;
|
||||
dev->netdev->stats.rx_bytes += dev->rxlen;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user