source: branches/backfire/target/linux/rdc/patches-2.6.30/015-r6040_fix_multicast.patch @ 22853

Last change on this file since 22853 was 22853, checked in by florian, 6 years ago

backport r22852

File size: 1.3 KB
  • drivers/net/r6040.c

    ---
    a b  
    136136#define RX_DESC_SIZE    (RX_DCNT * sizeof(struct r6040_descriptor)) 
    137137#define TX_DESC_SIZE    (TX_DCNT * sizeof(struct r6040_descriptor)) 
    138138#define MBCR_DEFAULT    0x012A  /* MAC Bus Control Register */ 
    139 #define MCAST_MAX       4       /* Max number multicast addresses to filter */ 
     139#define MCAST_MAX       3       /* Max number multicast addresses to filter */ 
    140140 
    141141/* Descriptor status */ 
    142142#define DSC_OWNER_MAC   0x8000  /* MAC is the owner of this descriptor */ 
    static void r6040_multicast_list(struct  
    887887                        crc >>= 26; 
    888888                        hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); 
    889889                } 
    890                 /* Write the index of the hash table */ 
    891                 for (i = 0; i < 4; i++) 
    892                         iowrite16(hash_table[i] << 14, ioaddr + MCR1); 
    893890                /* Fill the MAC hash tables with their values */ 
    894891                iowrite16(hash_table[0], ioaddr + MAR0); 
    895892                iowrite16(hash_table[1], ioaddr + MAR1); 
    static void r6040_multicast_list(struct  
    905902                dmi = dmi->next; 
    906903        } 
    907904        for (i = dev->mc_count; i < MCAST_MAX; i++) { 
    908                 iowrite16(0xffff, ioaddr + MID_0L + 8*i); 
    909                 iowrite16(0xffff, ioaddr + MID_0M + 8*i); 
    910                 iowrite16(0xffff, ioaddr + MID_0H + 8*i); 
     905                iowrite16(0xffff, ioaddr + MID_1L + 8 * i); 
     906                iowrite16(0xffff, ioaddr + MID_1M + 8 * i); 
     907                iowrite16(0xffff, ioaddr + MID_1H + 8 * i); 
    911908        } 
    912909} 
    913910 
Note: See TracBrowser for help on using the repository browser.