Skip to content

Commit 6188030

Browse files
committed
Remove Initial Value for vq->info.notify_off in virtio-net
This commit removes the initialization of vq->info.notify_off value in the virtio-net implementation. The reason for this change is that during the execution of RX and TX enable callback functions, the `vm_ioeventfd_register` function registers the ioeventfd at the same address repeatly. Therefore, the notify_off value is now initialized directly within the virtqueue enable callback functions.
1 parent 15862b6 commit 6188030

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/virtq.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ void virtq_disable(struct virtq *vq) {}
2525
void virtq_init(struct virtq *vq, void *dev, struct virtq_ops *ops)
2626
{
2727
vq->info.size = VIRTQ_SIZE;
28-
vq->info.notify_off = 0;
2928
vq->info.enable = 0;
3029
vq->next_avail_idx = 0;
3130
vq->used_wrap_count = 1;

0 commit comments

Comments
 (0)