powerpc: Fix multicast problem in fs_enet driver
authorAndrea Galbusera <gizero@gmail.com>
Thu, 21 Apr 2011 02:21:21 +0000 (02:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2011 23:59:30 +0000 (16:59 -0700)
commite2a85aecebc03d165bc2dcd233deadd5dd97ea9f
treeb10efdc196b4ae601a499f36ade2ed98492302fe
parenta9cf73ea7ff78f52662c8658d93c226effbbedde
powerpc: Fix multicast problem in fs_enet driver

mac-fec.c was setting individual UDP address registers instead of multicast
group address registers when joining a multicast group.
This prevented from correctly receiving UDP multicast packets.
According to datasheet, replaced hash_table_high and hash_table_low
with grp_hash_table_high and grp_hash_table_low respectively.
Also renamed hash_table_* with grp_hash_table_* in struct fec declaration
for 8xx: these registers are used only for multicast there.

Tested on a MPC5121 based board.
Build tested also against mpc866_ads_defconfig.

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/powerpc/include/asm/8xx_immap.h
drivers/net/fs_enet/mac-fec.c