From: "jmartin" <jmartin@prodys.net>
To: <linuxppc-embedded@lists.linuxppc.org>
Subject: fec multicast question
Date: Fri, 18 Jun 2004 12:00:05 +0200 [thread overview]
Message-ID: <004301c4551b$07f6a8a0$2700000a@jmartin> (raw)
hi folks,
i'm working on fec driver modification. I'm implementing the
set_multicast_list. dev->dmi_addr is saved on LSB format. I want to do a
multicast filter. I'm doing it by sw.
Now i'm using crc32 from /linux/crc.h, witch use a table.
I convert LSB dmi_addr to MSB. Then apply crc32. Result obtained is for UART
tx purpose(LSB), pass result
to MSB again. Then mask with 0x7C000000 to obtain bit on
hash_table_register. mask with 0x80000000 to select what register.
on mine board, diferent to anyone you can know, multicast filter is done.
but not correctly. I can't access to any SCC(all used, modes diferent from
ETHERNET). I can't access to boards with scc enet.
when i call to crc32 val take 0xFFFFFFFF value, like
scc dpram says(c_pres, section 28.8 MPC860 PowerQuicc User's Manual), and
mask is not used(c_mask).
Can anyone give mi hex value of hash_table_high and hash_table_low using
CPM_SET_GROUP? i.e, for address 224.0.0.123. better for three or four
direcctions, then maybe can obtain algorithm used by cpm and sw
CPM_SET_GROUP can be do.
thanks all
----------------------------------------------------------------------------
----------------------------------------
"No nos atrevemos a muchas cosas porque son difíciles, pero son difíciles
porque no nos atrevemos a hacerlas"
Lucio Anneo Séneca , 2 AC-65
Jose Manuel Martin Bravo
jmartin@prodys.net
termita@ya.com
Madrid,Spain
----------------------------------------------------------------------------
----------------------------------------
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
reply other threads:[~2004-06-18 10:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='004301c4551b$07f6a8a0$2700000a@jmartin' \
--to=jmartin@prodys.net \
--cc=linuxppc-embedded@lists.linuxppc.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).