From: Michael Brown <mcb30@ipxe.org>
To: qemu-devel@nongnu.org
Cc: Michael Brown <mcb30@ipxe.org>
Subject: [Qemu-devel] [PATCH 2/4] usbnet: Accept mandatory USB_CDC_SET_ETHERNET_PACKET_FILTER request
Date: Mon, 8 Feb 2016 14:19:32 +0000 [thread overview]
Message-ID: <1454941174-25050-3-git-send-email-mcb30@ipxe.org> (raw)
In-Reply-To: <1454941174-25050-1-git-send-email-mcb30@ipxe.org>
The USB_CDC_SET_ETHERNET_PACKET_FILTER request is mandatory for
CDC-ECM devices. Accept this request, ignoring the actual filter
value (to match the existing behaviour for RNDIS).
Signed-off-by: Michael Brown <mcb30@ipxe.org>
---
hw/usb/dev-network.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c
index cf2c641..f4e7acb 100644
--- a/hw/usb/dev-network.c
+++ b/hw/usb/dev-network.c
@@ -1117,6 +1117,12 @@ static void usb_net_handle_control(USBDevice *dev, USBPacket *p,
#endif
break;
+ case ClassInterfaceOutRequest | USB_CDC_SET_ETHERNET_PACKET_FILTER:
+ if (is_rndis(s)) {
+ goto fail;
+ }
+ break;
+
default:
fail:
fprintf(stderr, "usbnet: failed control transaction: "
--
2.3.8
next prev parent reply other threads:[~2016-02-08 14:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 14:19 [Qemu-devel] [PATCH 0/4] usbnet: various CDC-ECM and xHCI fixes Michael Brown
2016-02-08 14:19 ` [Qemu-devel] [PATCH 1/4] usbnet: Add missing usb_wakeup() call in usbnet_receive() Michael Brown
2016-02-08 14:19 ` Michael Brown [this message]
2016-02-08 14:19 ` [Qemu-devel] [PATCH 3/4] usbnet: Detect short packets as sent by the xHCI controller Michael Brown
2016-02-08 14:19 ` [Qemu-devel] [PATCH 4/4] usbnet: Report link-up via interrupt endpoint in CDC-ECM mode Michael Brown
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=1454941174-25050-3-git-send-email-mcb30@ipxe.org \
--to=mcb30@ipxe.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).