Skip to contentSkip to conversation

vmxnet3: Drop net_vmxnet3_info.can_receive

PATCH Applied Fam Zheng 2 participants 3 messages Jul 1, 2015 – Sep 2, 2015

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 vmxnet3: Drop net_vmxnet3_info.can_receive

Commit 6e99c63 ("net/socket: Drop net_socket_can_send") changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state. But it's OK to drop incoming packets when the link is not active.

---
 hw/net/vmxnet3.c | 1 -
 1 file changed, 1 deletion(-)
hw/net/vmxnet3.c +0 -1
index 104a0f5..12ae30f 100644
@@ -1929,7 +1929,6 @@ static void vmxnet3_set_link_status(NetClientState *nc)
 static NetClientInfo net_vmxnet3_info = {
         .type = NET_CLIENT_OPTIONS_KIND_NIC,
         .size = sizeof(NICState),
-        .can_receive = vmxnet3_can_receive,
         .receive = vmxnet3_receive,
         .link_status_changed = vmxnet3_set_link_status,
 };
Signature · 1 line
2.4.3
#1 lore raw
Quoted 9 lines · Fam Zheng

Commit 6e99c63 ("net/socket: Drop net_socket_can_send") changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state. But it's OK to drop incoming packets when the link is not active.

---
 hw/net/vmxnet3.c | 1 -
 1 file changed, 1 deletion(-)

Thanks, applied to my net tree:
https://github.com/stefanha/qemu/commits/net

Stefan

#2 lore raw
In reply to Fam Zheng
Quoted 9 lines · Fam Zheng

Commit 6e99c63 ("net/socket: Drop net_socket_can_send") changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state. But it's OK to drop incoming packets when the link is not active.

---
 hw/net/vmxnet3.c | 1 -
 1 file changed, 1 deletion(-)

Sorry, this was dropped when waiting to see how the .can_receive() stuff would end up for QEMU 2.4.

Thanks, applied to my net tree:
https://github.com/stefanha/qemu/commits/net

Stefan