Commit 2734a20b authored by Fam Zheng's avatar Fam Zheng Committed by Stefan Hajnoczi
Browse files

vmxnet3: Drop net_vmxnet3_info.can_receive



Commit 6e99c631 ("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.

Signed-off-by: default avatarFam Zheng <famz@redhat.com>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent 26c4e7ca
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1988,7 +1988,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,
};