# Re: \[net PATCH v5 1/6\] virtio\_net: use dev\_kfree\_skb for small buffer XDP receive

- From: David Miller \<davem@davemloft.net\>
- Date: 2017-01-24 19:43:29 
- List: netdev
- Page: https://ratatoskr.run/netdev/2017/01/11042087
- Thread: https://ratatoskr.run/netdev/2017/01/11041191/t.md

```text
From: "Michael S. Tsirkin" <mst@redhat.com>
Date: Mon, 23 Jan 2017 23:08:35 +0200

> On Tue, Jan 17, 2017 at 02:19:50PM -0800, John Fastabend wrote:
>> 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: XDP support for small buffers")
>> Signed-off-by: John Fastabend <redacted>
>> Acked-by: Jason Wang <redacted>
> 
> Acked-by: Michael S. Tsirkin <mst@redhat.com>
> 
> I think we definitely want this one in -net as it's
> a bugfix.

This whole series is a bug fix, we must have adjust_header XDP
support in the virtio_net driver before v4.10 goes out, it is
a requires base feature for XDP.
```
