Re: [net PATCH] virtio_net: use dev_kfree_skb for small buffer XDP receive

2017-01-25 Thread David Miller
From: John Fastabend Date: Wed, 25 Jan 2017 18:22:48 -0800 > In the small buffer case during driver unload we currently use > put_page instead of dev_kfree_skb. Resolve this by adding a check > for virtnet mode when checking XDP queue type. Also name the > function so that the code reads correctl

[net PATCH] virtio_net: use dev_kfree_skb for small buffer XDP receive

2017-01-25 Thread John Fastabend
In the small buffer case during driver unload we currently use put_page instead of dev_kfree_skb. Resolve this by adding a check for virtnet mode when checking XDP queue type. Also name the function so that the code reads correctly to match the additional check. Fixes: bb91accf2733 ("virtio-net: X