From: Enrico Mioso <mrkiko.rs@gmail.com>
To: "Bjørn Mork" <bjorn@mork.no>
Cc: Kevin Zhu <Mingying.Zhu@audiocodes.com>,
Eli Britstein <Eli.Britstein@audiocodes.com>,
Alex Strizhevsky <alexxst@gmail.com>,
Midge Shaojun Tan <ShaojunMidge.Tan@audiocodes.com>,
"youtux@gmail.com" <youtux@gmail.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: Is this 32-bit NCM?
Date: Tue, 2 Dec 2014 14:11:47 +0100 (CET) [thread overview]
Message-ID: <alpine.LNX.2.03.1412021410270.29633@gmail.com> (raw)
In-Reply-To: <87fvcyqoup.fsf@nemi.mork.no>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2429 bytes --]
... but out of curiosity: are NCM specs allowing to change order of things in
the package or not?
This is not to start philosofical falames or something, but to understand
better how things work. And, if they do: how much arbitrarily?
On Tue, 2 Dec 2014, Bjørn Mork wrote:
==Date: Tue, 2 Dec 2014 12:21:18
==From: Bjørn Mork <bjorn@mork.no>
==To: Enrico Mioso <mrkiko.rs@gmail.com>
==Cc: Kevin Zhu <Mingying.Zhu@audiocodes.com>,
== Eli Britstein <Eli.Britstein@audiocodes.com>,
== Alex Strizhevsky <alexxst@gmail.com>,
== Midge Shaojun Tan <ShaojunMidge.Tan@audiocodes.com>,
== "youtux@gmail.com" <youtux@gmail.com>,
== "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
== "netdev@vger.kernel.org" <netdev@vger.kernel.org>
==Subject: Re: Is this 32-bit NCM?
==
==Enrico Mioso <mrkiko.rs@gmail.com> writes:
==
==> Kevin - it works! the key seems to be in the tx_fixup function; there is a
==> special handling for frames effectively.
==> Please ... help me backport those changes to the standard Linux driver - it
==> will be a gain for us all, and in general you'll have a more probable
==> maintenance than you would with the driver from huawei.
==
==Very interesting. The NCM code in the huawei driver has a different
==origin, so it is quite different and not too easy to merge into the
==existing Linux cdc_ncm driver.
==
==But this does pinpoint differences we should explore. One is the
==placement of the NDP: The Huawei driver puts it at the end. Another,
==which is much easier to test out quickly, is the sequence numbering: The
==Huawei driver doesn't use it.
==
==So I wonder if this makes any difference:
==
==diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c
==index 80a844e0ae03..37f11770acb6 100644
==--- a/drivers/net/usb/cdc_ncm.c
==+++ b/drivers/net/usb/cdc_ncm.c
==@@ -1049,7 +1049,7 @@ cdc_ncm_fill_tx_frame(struct usbnet *dev, struct sk_buff *skb, __le32 sign)
== nth16 = (struct usb_cdc_ncm_nth16 *)memset(skb_put(skb_out, sizeof(struct usb_cdc_ncm_nth16)), 0, sizeof(struct usb_cdc_ncm_nth16));
== nth16->dwSignature = cpu_to_le32(USB_CDC_NCM_NTH16_SIGN);
== nth16->wHeaderLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_nth16));
==- nth16->wSequence = cpu_to_le16(ctx->tx_seq++);
==+// nth16->wSequence = cpu_to_le16(ctx->tx_seq++);
==
== /* count total number of frames in this NTB */
== ctx->tx_curr_frame_num = 0;
==
==
==
==Bjørn
==
next prev parent reply other threads:[~2014-12-02 13:11 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-26 21:51 Is this 32-bit NCM? Enrico Mioso
2014-11-27 9:16 ` Bjørn Mork
2014-11-27 9:22 ` Enrico Mioso
2014-11-27 9:45 ` Enrico Mioso
2014-11-27 10:03 ` Bjørn Mork
[not found] ` <CAPChA0cLuvRpYTYuFoi3bewqASgf_oZHSz5yQQ8JYm96dZ4-TQ@mail.gmail.com>
2014-11-27 13:05 ` Enrico Mioso
[not found] ` <CAPChA0cLuvRpYTYuFoi3bewqASgf_oZHSz5yQQ8JYm96dZ4-TQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-27 12:55 ` Enrico Mioso
2014-11-27 18:34 ` Enrico Mioso
2014-11-28 9:29 ` Bjørn Mork
2014-11-28 10:27 ` Enrico Mioso
2014-11-30 18:10 ` Enrico Mioso
2014-12-01 21:11 ` Enrico Mioso
[not found] ` <alpine.LNX.2.03.1412012202480.1301-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-01 22:02 ` Eli Britstein
2014-12-02 3:53 ` Kevin Zhu
[not found] ` <547D37CA.7050506-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-12-02 6:32 ` Enrico Mioso
2014-12-02 6:43 ` Kevin Zhu
2014-12-02 6:49 ` Enrico Mioso
[not found] ` <alpine.LNX.2.03.1412020747360.1921-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-02 6:52 ` Kevin Zhu
2014-12-02 7:11 ` Eli Britstein
2014-12-02 7:44 ` Kevin Zhu
[not found] ` <547D6D7B.5090704-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-12-02 7:45 ` Eli Britstein
2014-12-02 8:03 ` Kevin Zhu
2014-12-02 10:13 ` Enrico Mioso
2014-12-02 10:24 ` Enrico Mioso
2014-12-02 10:32 ` Enrico Mioso
2014-12-02 11:21 ` Bjørn Mork
2014-12-02 11:28 ` Enrico Mioso
2014-12-02 11:39 ` Enrico Mioso
2014-12-02 13:11 ` Enrico Mioso [this message]
[not found] ` <alpine.LNX.2.03.1412021410270.29633-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-02 13:37 ` Bjørn Mork
[not found] ` <87lhmqp400.fsf-lbf33ChDnrE/G1V5fR+Y7Q@public.gmane.org>
2014-12-02 13:53 ` Enrico Mioso
[not found] ` <alpine.LNX.2.03.1412021453340.7488-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-02 15:04 ` Kevin Zhu
2014-12-02 15:28 ` Enrico Mioso
[not found] ` <alpine.LNX.2.03.1412021627360.8131-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-03 5:38 ` Kevin Zhu
2014-12-03 6:00 ` Enrico Mioso
[not found] ` <alpine.LNX.2.03.1412030659001.1288-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-03 6:05 ` Kevin Zhu
[not found] ` <547EA82F.5050500-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-12-03 6:29 ` Enrico Mioso
2014-12-04 6:31 ` Is this 32-bit NCM?y Enrico Mioso
2014-12-04 8:52 ` Kevin Zhu
2014-12-04 8:56 ` Enrico Mioso
[not found] ` <alpine.LNX.2.03.1412040955140.3516-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-04 9:01 ` Kevin Zhu
2014-12-04 9:19 ` Bjørn Mork
2014-12-04 9:26 ` Kevin Zhu
[not found] ` <548028A0.5000909-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-12-04 9:28 ` Enrico Mioso
2014-12-04 9:55 ` Bjørn Mork
2014-12-04 9:53 ` Enrico Mioso
2014-12-04 10:02 ` Bjørn Mork
[not found] ` <547D7243.80508-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-12-02 10:37 ` Is this 32-bit NCM? Enrico Mioso
2014-12-02 10:45 ` Enrico Mioso
2014-12-02 10:48 ` Enrico Mioso
2014-12-02 9:55 ` Enrico Mioso
2014-12-02 7:53 ` Kevin Zhu
[not found] ` <B315C8AC-3B33-406B-A728-14F8FAAAE986-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-12-02 6:07 ` Enrico Mioso
2014-12-02 6:12 ` Enrico Mioso
2014-11-28 5:59 ` Enrico Mioso
2014-11-27 18:38 ` Enrico Mioso
2014-11-28 6:23 ` Enrico Mioso
[not found] ` <54781523.6030600@audiocodes.com>
2014-11-28 6:40 ` Enrico Mioso
2014-11-28 8:17 ` Enrico Mioso
2014-11-28 8:23 ` Kevin Zhu
2014-11-28 8:39 ` Enrico Mioso
2014-11-28 8:24 ` Enrico Mioso
2014-11-28 8:37 ` Kevin Zhu
[not found] ` <54783443.50700-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-11-28 8:42 ` Enrico Mioso
2014-11-28 8:46 ` Kevin Zhu
2014-11-28 8:46 ` Kevin Zhu
2014-11-28 8:45 ` Enrico Mioso
2014-11-28 9:02 ` Kevin Zhu
2014-11-28 9:17 ` Enrico Mioso
2014-11-28 9:23 ` Kevin Zhu
[not found] ` <54783F18.1070709-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-12-01 16:54 ` Enrico Mioso
2014-11-28 9:25 ` Kevin Zhu
[not found] ` <54783F84.20105-6C2+4RG2qWF0ubjbjo6WXg@public.gmane.org>
2014-11-30 1:13 ` Enrico Mioso
[not found] ` <CAPChA0czA3vxPZdwk-SgO1Wr83zOV1UoWcL4=05qtBktwq5=TA@mail.gmail.com>
2014-11-30 10:18 ` Enrico Mioso
2014-12-01 2:51 ` Kevin Zhu
2014-11-30 10:31 ` Enrico Mioso
2014-11-30 10:32 ` Enrico Mioso
2014-11-30 10:39 ` Enrico Mioso
[not found] ` <547BDCF5.8070705@audiocodes.com>
2014-12-01 5:28 ` Enrico Mioso
2014-12-01 5:51 ` Kevin Zhu
2014-12-01 16:11 ` Enrico Mioso
2014-11-30 18:36 ` Enrico Mioso
[not found] ` <alpine.LNX.2.03.1411301931280.2605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-01 2:31 ` Kevin Zhu
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=alpine.LNX.2.03.1412021410270.29633@gmail.com \
--to=mrkiko.rs@gmail.com \
--cc=Eli.Britstein@audiocodes.com \
--cc=Mingying.Zhu@audiocodes.com \
--cc=ShaojunMidge.Tan@audiocodes.com \
--cc=alexxst@gmail.com \
--cc=bjorn@mork.no \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=youtux@gmail.com \
/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).