Skip to content

Commit 8af3bf6

Browse files
GavinLi-NVkuba-moo
authored andcommitted
virtio_net: enable per queue interrupt coalesce feature
Enable per queue interrupt coalesce feature bit in driver and validate its dependency with control queue. Signed-off-by: Gavin Li <gavinl@nvidia.com> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Heng Qi <hengqi@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20230731070656.96411-4-gavinl@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 394bd87 commit 8af3bf6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/virtio_net.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4088,6 +4088,8 @@ static bool virtnet_validate_features(struct virtio_device *vdev)
40884088
VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_HASH_REPORT,
40894089
"VIRTIO_NET_F_CTRL_VQ") ||
40904090
VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_NOTF_COAL,
4091+
"VIRTIO_NET_F_CTRL_VQ") ||
4092+
VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_VQ_NOTF_COAL,
40914093
"VIRTIO_NET_F_CTRL_VQ"))) {
40924094
return false;
40934095
}
@@ -4512,6 +4514,7 @@ static struct virtio_device_id id_table[] = {
45124514
VIRTIO_NET_F_MTU, VIRTIO_NET_F_CTRL_GUEST_OFFLOADS, \
45134515
VIRTIO_NET_F_SPEED_DUPLEX, VIRTIO_NET_F_STANDBY, \
45144516
VIRTIO_NET_F_RSS, VIRTIO_NET_F_HASH_REPORT, VIRTIO_NET_F_NOTF_COAL, \
4517+
VIRTIO_NET_F_VQ_NOTF_COAL, \
45154518
VIRTIO_NET_F_GUEST_HDRLEN
45164519

45174520
static unsigned int features[] = {

0 commit comments

Comments
 (0)