From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>, Jan Kiszka <jan.kiszka@web.de>
Subject: [Qemu-devel] [PATCH 2/3] etraxfs_eth: Drop eth_can_receive
Date: Wed, 1 Jul 2015 15:10:46 +0800 [thread overview]
Message-ID: <1435734647-8371-3-git-send-email-famz@redhat.com> (raw)
In-Reply-To: <1435734647-8371-1-git-send-email-famz@redhat.com>
True is the default.
Signed-off-by: Fam Zheng <famz@redhat.com>
---
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
next prev parent reply other threads:[~2015-07-01 7:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 7:10 [Qemu-devel] [PATCH 0/3] hw/net: Drop unnecessary .can_receive functions Fam Zheng
2015-07-01 7:10 ` [Qemu-devel] [PATCH 1/3] musicpal: Drop eth_can_receive Fam Zheng
2015-07-01 7:10 ` Fam Zheng [this message]
2015-07-01 7:10 ` [Qemu-devel] [PATCH 3/3] lan9118: Drop lan9118_can_receive Fam Zheng
2015-07-13 5:44 ` [Qemu-devel] [PATCH 0/3] hw/net: Drop unnecessary .can_receive functions Fam Zheng
2015-07-13 6:10 ` Jason Wang
2015-07-20 16:47 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435734647-8371-3-git-send-email-famz@redhat.com \
--to=famz@redhat.com \
--cc=jan.kiszka@web.de \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).