diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-06-01 12:18:58 +0900 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2023-11-21 15:42:34 +0800 |
| commit | 7d0fefdf81f5973334c344f6b8e1896c309dff66 (patch) | |
| tree | 9fc658dc9ad19cf9d509d4d340f8fead4a71294f /hw/net/rocker/rocker_fp.c | |
| parent | af9264da80073435fd78944bc5a46e695897d7e5 (diff) | |
| download | focaccia-qemu-7d0fefdf81f5973334c344f6b8e1896c309dff66.tar.gz focaccia-qemu-7d0fefdf81f5973334c344f6b8e1896c309dff66.zip | |
net: Provide MemReentrancyGuard * to qemu_new_nic()
Recently MemReentrancyGuard was added to DeviceState to record that the device is engaging in I/O. The network device backend needs to update it when delivering a packet to a device. In preparation for such a change, add MemReentrancyGuard * as a parameter of qemu_new_nic(). Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Alexander Bulekov <alxndr@bu.edu> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/rocker/rocker_fp.c')
| -rw-r--r-- | hw/net/rocker/rocker_fp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/rocker/rocker_fp.c b/hw/net/rocker/rocker_fp.c index 9afd0c5e3f..cb87ff752a 100644 --- a/hw/net/rocker/rocker_fp.c +++ b/hw/net/rocker/rocker_fp.c @@ -241,8 +241,8 @@ FpPort *fp_port_alloc(Rocker *r, char *sw_name, port->conf.bootindex = -1; port->conf.peers = *peers; - port->nic = qemu_new_nic(&fp_port_info, &port->conf, - sw_name, NULL, port); + port->nic = qemu_new_nic(&fp_port_info, &port->conf, sw_name, NULL, + &DEVICE(r)->mem_reentrancy_guard, port); qemu_format_nic_info_str(qemu_get_queue(port->nic), port->conf.macaddr.a); |