From: "Bjørn Mork" <bjorn@mork.no>
To: Ben Chan <benchan@chromium.org>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
netdev@vger.kernel.org, Oliver Neukum <oliver@neukum.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Greg Suarez <gsuarez@smithmicro.com>
Subject: Re: [PATCH v3 2/2] net: cdc_ncm: respect operator preferred MTU reported by MBIM
Date: Tue, 18 Mar 2014 09:33:40 +0100 [thread overview]
Message-ID: <871txzlxcr.fsf@nemi.mork.no> (raw)
In-Reply-To: <1395115145-31821-2-git-send-email-benchan@chromium.org> (Ben Chan's message of "Mon, 17 Mar 2014 20:59:05 -0700")
Ben Chan <benchan@chromium.org> writes:
> According to "Universal Serial Bus Communications Class Subclass
> Specification for Mobile Broadband Interface Model, Revision 1.0,
> Errata-1" published by USB-IF, the wMTU field of the MBIM extended
> functional descriptor indicates the operator preferred MTU for IP data
> streams.
>
> This patch modifies cdc_ncm_setup to ensure that the MTU value set on
> the usbnet device does not exceed the operator preferred MTU indicated
> by wMTU if the MBIM device exposes a MBIM extended functional
> descriptor.
>
> Signed-off-by: Ben Chan <benchan@chromium.org>
> ---
> Patch v3 (which is same as v2) adds the le16_to_cpu conversion on
> ctx->mbim_extended_desc->wMTU as pointed out and suggested by
> 'Bjørn Mork <bjorn@mork.no>'.
Looks good to me FWIW.
I was worried that I might have created a merge conflict here by posting
the unrelated cdc_ncm fix, touching the same function. But we're in
luck: That fix and your patch applies cleanly on top of each other in
any order.
Bjørn
next prev parent reply other threads:[~2014-03-18 8:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 3:59 [PATCH v3 1/2] USB: cdc: add MBIM extended functional descriptor structure Ben Chan
2014-03-18 3:59 ` [PATCH v3 2/2] net: cdc_ncm: respect operator preferred MTU reported by MBIM Ben Chan
2014-03-18 8:33 ` Bjørn Mork [this message]
2014-03-18 8:35 ` [PATCH v3 1/2] USB: cdc: add MBIM extended functional descriptor structure Bjørn Mork
2014-03-19 20:05 ` David Miller
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=871txzlxcr.fsf@nemi.mork.no \
--to=bjorn@mork.no \
--cc=benchan@chromium.org \
--cc=gregkh@linuxfoundation.org \
--cc=gsuarez@smithmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oliver@neukum.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
all inboxes | Powered by JetHome®