projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63eab8
)
etraxfs_eth: Drop eth_can_receive
author
Fam Zheng
<famz@redhat.com>
Wed, 1 Jul 2015 07:10:46 +0000
(15:10 +0800)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Mon, 20 Jul 2015 16:47:24 +0000
(17:47 +0100)
True is the default.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Message-id:
1435734647
-8371-3-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/etraxfs_eth.c
patch
|
blob
|
history
diff --git
a/hw/net/etraxfs_eth.c
b/hw/net/etraxfs_eth.c
index 4773dea92706fd66f5502d3a37a72b65d583befa..d6002750f0b8267c5e83dfd0cd7d123b87c05907 100644
(file)
--- a/
hw/net/etraxfs_eth.c
+++ b/
hw/net/etraxfs_eth.c
@@
-520,11
+520,6
@@
static int eth_match_groupaddr(ETRAXFSEthState *eth, const unsigned char *sa)
return match;
}
-static int eth_can_receive(NetClientState *nc)
-{
- return 1;
-}
-
static ssize_t eth_receive(NetClientState *nc, const uint8_t *buf, size_t size)
{
unsigned char sa_bcast[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
@@
-584,7
+579,6
@@
static const MemoryRegionOps eth_ops = {
static NetClientInfo net_etraxfs_info = {
.type = NET_CLIENT_OPTIONS_KIND_NIC,
.size = sizeof(NICState),
- .can_receive = eth_can_receive,
.receive = eth_receive,
.link_status_changed = eth_set_link,
};