]> git.proxmox.com Git - mirror_qemu.git/commit
etsec: Move etsec_can_receive into etsec_receive
authorFam Zheng <famz@redhat.com>
Wed, 15 Jul 2015 10:19:06 +0000 (18:19 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 27 Jul 2015 13:12:18 +0000 (14:12 +0100)
commitb6cb6610c27c5b0773a340499f19c3477bf45aeb
treeabf873d632d8e49b3c1e495d7d2465b79f5c7881
parent913440249ea2e697177e9d43167ac325a8dfe907
etsec: Move etsec_can_receive into etsec_receive

When etsec_reset returns 0, peer would queue the packet as if
.can_receive returns false. Drop etsec_can_receive and let etsec_receive
carry the semantics.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Message-id: 1436955553-22791-6-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/fsl_etsec/etsec.c
hw/net/fsl_etsec/etsec.h
hw/net/fsl_etsec/rings.c