qemu-patch-raspberry4/hw/net/rocker
Scott Feldman 66851f640b rocker: don't queue receive pkts when port is disabled
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.  Rocker
device was not flushing the queue on .can_receive=true transition, so the
receiver was stuck.

But, turns out we really don't want any queuing at all on the port when the
port is disabled, otherwise when the port transitions to enabled, we'd
receive and forward stale pkts that really should have been dropped.  So,
let's remove .can_receive so avoid queuing and drop the pkt in .receive if
the port is disabled.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1435717553-36187-1-git-send-email-sfeldma@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-07-07 13:10:26 +01:00
..
qmp-norocker.c qerror: Clean up QERR_ macros to expand into a single string 2015-06-22 18:20:40 +02:00
rocker.c rocker: fix memory leak 2015-07-07 13:10:26 +01:00
rocker.h rocker: timestamp on the debug logs helps correlate with events in the VM 2015-05-11 14:49:04 +01:00
rocker_desc.c rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_desc.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_fp.c rocker: don't queue receive pkts when port is disabled 2015-07-07 13:10:26 +01:00
rocker_fp.h qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
rocker_hw.h rocker: Add support for phys name 2015-06-12 13:26:27 +01:00
rocker_of_dpa.c qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
rocker_of_dpa.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_tlv.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_world.c rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00
rocker_world.h rocker: add new rocker switch device 2015-05-11 14:49:04 +01:00