Searched hist:b68df015609eac67f045c155cb3195e5a1061d66 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ |
H A D | virtio_net.c | diff b68df015609eac67f045c155cb3195e5a1061d66 Wed Jan 25 20:22:48 CST 2017 John Fastabend <john.fastabend@gmail.com> virtio_net: use dev_kfree_skb for small buffer XDP receive
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 <john.r.fastabend@intel.com> Acked-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|