• Vince Bridgers's avatar
    net: stmmac: Correct set_filter for multicast and unicast cases · aefef4c1
    Vince Bridgers authored
    This patch removes the check for the number of mulitcast addresses
    when using hash based filtering since it's not necessary. If the number
    of multicast addresses in the list exceeds the number of multicast hash
    bins, the bins will "fold" over into one of the bins configured and
    enabled for the particular component instance.
    
    The default number of maximum unicast addresses was changed from 32 to 1
    since this number is not dependent on the component revision. The maximum
    number of multicast and unicast addresses is dependent on the configuration
    of the Synopsys EMAC configured by the SOC architect at the time the
    features were selected and configured for a particular component. Sadly,
    Synopsys does not provide a way to query the precise number supported
    by a particular component, so we must fall back on a devicetree entry.
    This configuration could vary from vendor to vendor (such as STMicro,
    Altera, etc).
    
    The multicast bins are set for every possible filtering case (including
    no entries) - previously the bits were set only if multicast filter entries
    were present.
    Signed-off-by: default avatarVince Bridgers <vbridgers2013@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    aefef4c1
dwmac1000.h 10.4 KB