FreeBSD/sys/dev/bxe/bxe.c
/* set flags that are common for the Tx-only and not normal connections */
set flags that are common for the Tx-only and not normal connections
set flags that are common for the Tx - only and not normal connections
static unsigned long
bxe_get_common_flags(struct bxe_softc    *sc,
                     struct bxe_fastpath *fp,
                     uint8_t             zero_stats)
{
    unsigned long flags = 0;
    bxe_set_bit(ECORE_Q_FLG_ACTIVE, &flags);
    bxe_set_bit(ECORE_Q_FLG_STATS, &flags);
    if (zero_stats) {
        bxe_set_bit(ECORE_Q_FLG_ZERO_STATS, &flags);
    }
    if (sc->flags & BXE_TX_SWITCHING) {
        bxe_set_bit(ECORE_Q_FLG_TX_SWITCH, &flags);
    }
    bxe_set_bit(ECORE_Q_FLG_PCSUM_ON_PKT, &flags);
    return (flags);
}
static unsigned long bxe_get_common_flags ( struct bxe_softc * sc , struct bxe_fastpath * fp , uint8_t zero_stats ) { unsigned long flags = 0 ; bxe_set_bit ( ECORE_Q_FLG_ACTIVE , & flags ) ; bxe_set_bit ( ECORE_Q_FLG_STATS , & flags ) ; if ( zero_stats ) { bxe_set_bit ( ECORE_Q_FLG_ZERO_STATS , & flags ) ; } if ( sc -> flags & BXE_TX_SWITCHING ) { bxe_set_bit ( ECORE_Q_FLG_TX_SWITCH , & flags ) ; } bxe_set_bit ( ECORE_Q_FLG_PCSUM_ON_PKT , & flags ) ; return ( flags ) ; }
set flags that are common for the Tx-only and not normal connections
set flags that are common for the Tx - only and not normal connections
/* PF driver will always initialize the Queue to an ACTIVE state */ /*
     * tx only connections collect statistics (on the same index as the
     * parent connection). The statistics are zeroed when the parent
     * connection is initialized.
     */ /*
     * tx only connections can support tx-switching, though their
     * CoS-ness doesn't survive the loopback
     */