[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] etraxfs_eth: Drop eth_can_receive
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH 2/3] etraxfs_eth: Drop eth_can_receive |
Date: |
Wed, 1 Jul 2015 15:10:46 +0800 |
True is the default.
Signed-off-by: Fam Zheng <address@hidden>
---
hw/net/etraxfs_eth.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/hw/net/etraxfs_eth.c b/hw/net/etraxfs_eth.c
index 4773dea..d600275 100644
--- 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,
};
--
2.4.3
- [Qemu-devel] [PATCH 0/3] hw/net: Drop unnecessary .can_receive functions, Fam Zheng, 2015/07/01
- [Qemu-devel] [PATCH 1/3] musicpal: Drop eth_can_receive, Fam Zheng, 2015/07/01
- [Qemu-devel] [PATCH 2/3] etraxfs_eth: Drop eth_can_receive,
Fam Zheng <=
- [Qemu-devel] [PATCH 3/3] lan9118: Drop lan9118_can_receive, Fam Zheng, 2015/07/01
- Re: [Qemu-devel] [PATCH 0/3] hw/net: Drop unnecessary .can_receive functions, Fam Zheng, 2015/07/13
- Re: [Qemu-devel] [PATCH 0/3] hw/net: Drop unnecessary .can_receive functions, Jason Wang, 2015/07/13
- Re: [Qemu-devel] [PATCH 0/3] hw/net: Drop unnecessary .can_receive functions, Stefan Hajnoczi, 2015/07/20