PMC RM9000x2 GL titan (yosemite) multicast address filtering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I am trying to configure the ethernet subsystem to filter out
multicast streams selectively, and I am running into some problems.

If anyone has done this before, could you try to answer the following questions?

1) For an incoming packet, the chip computes a non-inverted CRC32
calculation over the destination MAC address, and uses the top 6 bits
(using the default values of MHASH_INDEX) to hash into the 64bin
multicast hash table to decide whether to filter the packet out or
not.

As an example, if I set the multicast filter to accept packets from
225.10.10.0/255.255.255.252 ( MACs - 008a000a0a00 to 008a000a0a03 ).

The port configuration is,

AFAFIL1 0xffff0003
multicast 64bin hash filter 4000:0008:0100:0000 (high, mid-high , mid-low , low)

With this configuration, the box sees streams like 225.10.10.11, but
filters out 225.11.10.1.

I would like to make sure that the CRC32 algorithm that the chip is
using is the same I'm using. I have tried two different
implementations that don't seem to work (in both cases they filter out
some multicast streams but not the correct ones).

My CRC32 implementation details are:

CRC32(123456789) is 2dfd2d88, which is a bytes reversed, non-inverted
result, seeded on 0x00000000 and with a polynomial base 0x04c11db7
implementation.
CRC32(123456789) is cbf43926, which is a bytes reversed, result
inverted, seeded on 0xffffffff and with a polynomial base 0x04c11db7
implementation.

Has anybody tried this before? Could this be an endianness problem
with my CRC32 calculations (even though they both give the correct
checksum over the '123456789' pattern?

2) I will just mention my second problem just in case somebody else
has seen it. I have three ethernet ports, eth0, eth1 and eth2, and I
use the same code with the correct register offsets to write to the
address filtering logic. I can't write any values to eth1, even though
it works perfectly for eth0 and eth2.

Thanks,
Alex


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux