Skip to contentSkip to conversation

question tehuti.c

DISCUSSION Julia Lawall 2 participants 2 messages Sep 23, 2013 – Sep 24, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The function bdx_setmulti in the file drivers/net/ethernet/tehuti/tehuti.c contains:

        u32 rxf_val =
            GMAC_RX_FILTER_AM | GMAC_RX_FILTER_AB | GMAC_RX_FILTER_OSEN;

and then later:

       } else {
                DBG("only own mac %d\n", netdev_mc_count(ndev));
                rxf_val |= GMAC_RX_FILTER_AB;
        }

The last assignment doesn't look very useful, because GMAC_RX_FILTER_ABis already included in rxf_val. Was something else intended?

thanks,
julia

#1 lore raw
Quoted 8 lines · Julia Lawall

The function bdx_setmulti in the file drivers/net/ethernet/tehuti/tehuti.c contains:

        u32 rxf_val =
            GMAC_RX_FILTER_AM | GMAC_RX_FILTER_AB | GMAC_RX_FILTER_OSEN;

and then later:

Quoted 7 lines
       } else {
                DBG("only own mac %d\n", netdev_mc_count(ndev));
                rxf_val |= GMAC_RX_FILTER_AB;
        }

The last assignment doesn't look very useful, because GMAC_RX_FILTER_ABis already included in rxf_val. Was something else intended?

You are correct that the setting of GMAC_RX_FILTER_AB is a bit redundant since it was set earlier in the function.

I have not worked on this driver in several years and if there is no response from Alexander or someone else at Tehuti Networks then you may not get an answer to your question. :-/