Commit b50f2af
virtio-net: check feature before configuring the vq coalescing command
Virtio spec says:
The driver MUST have negotiated the VIRTIO_NET_F_VQ_NOTF_COAL
feature when issuing commands VIRTIO_NET_CTRL_NOTF_COAL_VQ_SET
and VIRTIO_NET_CTRL_NOTF_COAL_VQ_GET.
So we add the feature negotiation check to
virtnet_send_{r,t}x_ctrl_coal_vq_cmd as a basis for the next bugfix patch.
Suggested-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Heng Qi <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 14ab479 commit b50f2af
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3658 | 3658 | | |
3659 | 3659 | | |
3660 | 3660 | | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
3661 | 3664 | | |
3662 | 3665 | | |
3663 | 3666 | | |
| |||
3675 | 3678 | | |
3676 | 3679 | | |
3677 | 3680 | | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
3678 | 3684 | | |
3679 | 3685 | | |
3680 | 3686 | | |
| |||
0 commit comments