diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-06-30 19:25:53 -0700 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-07-07 13:10:26 +0100 |
commit | 66851f640b73a5a84160ee6ab19ab429f68bbb9f (patch) | |
tree | 5c7d24a9638edb70a9ddc34168c9432c8aa06d65 /hw/net/lance.c | |
parent | b83b5f2ef9753713c2fb64ff4cae7cb1e080624e (diff) |
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>
Diffstat (limited to 'hw/net/lance.c')
0 files changed, 0 insertions, 0 deletions