Commit 3c3f924
committed
virtio_ring: add a func argument 'recycle_done' to virtqueue_reset()
JIRA: https://issues.redhat.com/browse/RHEL-56981
When virtqueue_reset() has actually recycled all unused buffers,
additional work may be required in some cases. Relying solely on its
return status is fragile, so introduce a new function argument
'recycle_done', which is invoked when it really occurs.
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit 8d2da07)
Signed-off-by: Cindy Lu <lulu@redhat.com>
Conflicts:
drivers/net/virtio_net.c1 parent 813be59 commit 3c3f924
File tree
3 files changed
+8
-3
lines changed- drivers
- net
- virtio
- include/linux
3 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5531 | 5531 | | |
5532 | 5532 | | |
5533 | 5533 | | |
5534 | | - | |
| 5534 | + | |
5535 | 5535 | | |
5536 | 5536 | | |
5537 | 5537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2815 | 2815 | | |
2816 | 2816 | | |
2817 | 2817 | | |
| 2818 | + | |
2818 | 2819 | | |
2819 | 2820 | | |
2820 | 2821 | | |
| |||
2826 | 2827 | | |
2827 | 2828 | | |
2828 | 2829 | | |
2829 | | - | |
| 2830 | + | |
| 2831 | + | |
2830 | 2832 | | |
2831 | 2833 | | |
2832 | 2834 | | |
2833 | 2835 | | |
2834 | 2836 | | |
2835 | 2837 | | |
2836 | 2838 | | |
| 2839 | + | |
| 2840 | + | |
2837 | 2841 | | |
2838 | 2842 | | |
2839 | 2843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments