From: schindele@nentec.de (Juergen Schindele)
To: linux-arm-kernel@lists.infradead.org
Subject: IXP425: help on HSS channelized service
Date: Thu, 26 Nov 2009 16:43:07 +0200 [thread overview]
Message-ID: <200911261543.08448.schindele@nentec.de> (raw)
In-Reply-To: <m3d437bi7i.fsf@intrepid.localdomain>
Am Mittwoch, 25. November 2009 schrieb Krzysztof Halasa:
> The buffers have different structures for RX and TX.
This was a very good hint :-). I discovered that the
"struct desc" used in the kernel mainline driver is quite
different from the one used in INTEL code !?????.
When I replace the "struct desc" (see below) it works fine for me.
Isn't there a general problem with this driver when it works only
for channelized mode (your case) ???
Has sombody made it working in HDLC_PIPE mode ????
here my changes:
I replaced
struct desc {
u32 next; /* pointer to next buffer, unused */
#ifdef __ARMEB__
u16 buf_len; /* buffer length */
u16 pkt_len; /* packet length */
u32 data; /* pointer to data buffer in RAM */
u8 status;
u8 error_count;
u16 __reserved;
#else
u16 pkt_len; /* packet length */
u16 buf_len; /* buffer length */
u32 data; /* pointer to data buffer in RAM */
u16 __reserved;
u8 error_count;
u8 status;
#endif
u32 __reserved1[4];
}
with
struct desc {
#ifdef __ARMEB__
u8 status; /* status of packet desriptor */
u8 error_count; /* number of errors */
u8 chain_count; /* used for chained buffers otherwise 0 */
u8 __reserved1; /* reserved byte for word alignment */
u16 pkt_len; /* packet length payload */
u16 __reserved2; /* reserved short for word alignment */
u32 head; /* pointer to first if chained buffers */
u32 next; /* pointer to next if chained buffers */
u32 data; /* pointer to data buffer in RAM */
u32 buf_len; /* total length of buffer in RAM */
#else
u8 __reserved1; /* reserved byte for word alignment */
u8 chain_count; /* used for chained buffers otherwise 0 */
u8 error_count; /* number of errors */
u8 status; /* status of packet desriptor */
u16 __reserved2; /* reserved short for word alignment */
u16 pkt_len; /* packet length payload */
u32 head; /* pointer to first if chained buffers */
u32 next; /* pointer to next if chained buffers */
u32 data; /* pointer to data buffer in RAM */
u32 buf_len; /* total length of buffer in RAM */
#endif
u32 __reserved3[2]; /* reserved to fill up */
}
--------------------------------------------------------------
J?rgen Schindele
Software-Entwicklung
NENTEC Netzwerktechnologie GmbH
Greschbachstr. 12
76229 Karlsruhe
Deutschland
Telefon: +49 721 94249-51
Telefax: +49 721 94249-10
E-Mail: schindele at nentec.de
WEB: www.nentec.de
Gesch?ftsf?hrung: Klaus Becker, Roland Knapp
Sitz der Gesellschaft: Karlsruhe
Handelsregister: Amtsgericht Mannheim HRB 107658
--------------------------------------------------------------
next prev parent reply other threads:[~2009-11-26 14:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 13:29 IXP425: help on HSS channelized service Davide Di Gesualdo
2009-11-24 15:22 ` Juergen Schindele
2009-11-25 0:07 ` Krzysztof Halasa
2009-11-25 12:52 ` Davide Di Gesualdo
2009-11-24 23:45 ` Krzysztof Halasa
2009-11-26 14:43 ` Juergen Schindele [this message]
2009-11-26 14:49 ` Russell King - ARM Linux
2009-11-26 15:44 ` Juergen Schindele
2009-11-26 15:51 ` Russell King - ARM Linux
2009-11-26 19:03 ` Krzysztof Halasa
2009-11-26 19:39 ` Krzysztof Halasa
2009-11-27 8:21 ` Juergen Schindele
2009-11-27 23:55 ` Krzysztof Halasa
2009-11-30 8:18 ` Juergen Schindele
-- strict thread matches above, loose matches on Subject: below --
2009-11-25 13:34 Davide Di Gesualdo
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=200911261543.08448.schindele@nentec.de \
--to=schindele@nentec.de \
--cc=linux-arm-kernel@lists.infradead.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).