Re: [PATCH] tun: Use netif_receive_skb instead of netif_rx

2016-12-01 Thread Andrey Konovalov
On Tue, Nov 29, 2016 at 5:20 PM, Michael S. Tsirkin wrote: > On Tue, Nov 29, 2016 at 04:25:36PM +0100, Andrey Konovalov wrote: >> This patch changes tun.c to call netif_receive_skb instead of netif_rx >> when a packet is received. The difference between the two is that netif_rx >> queues the packe

Re: [PATCH] tun: Use netif_receive_skb instead of netif_rx

2016-11-29 Thread Michael S. Tsirkin
On Tue, Nov 29, 2016 at 04:25:36PM +0100, Andrey Konovalov wrote: > This patch changes tun.c to call netif_receive_skb instead of netif_rx > when a packet is received. The difference between the two is that netif_rx > queues the packet into the backlog, and netif_receive_skb proccesses the > packet

Re: [PATCH] tun: Use netif_receive_skb instead of netif_rx

2016-11-29 Thread Eric Dumazet
On Tue, 2016-11-29 at 16:25 +0100, Andrey Konovalov wrote: > This patch changes tun.c to call netif_receive_skb instead of netif_rx > when a packet is received. The difference between the two is that netif_rx > queues the packet into the backlog, and netif_receive_skb proccesses the > packet in the

[PATCH] tun: Use netif_receive_skb instead of netif_rx

2016-11-29 Thread Andrey Konovalov
This patch changes tun.c to call netif_receive_skb instead of netif_rx when a packet is received. The difference between the two is that netif_rx queues the packet into the backlog, and netif_receive_skb proccesses the packet in the current context. This patch is required for syzkaller [1] to coll