src/dpdk/drivers/net/bnx2x/bnx2x.c
static unsigned long
bnx2x_get_common_flags(struct bnx2x_softc *sc, uint8_t zero_stats)
{
	uint32_t flags = 0;

	/* PF driver will always initialize the Queue to an ACTIVE state */
	rte_bit_relaxed_set32(ECORE_Q_FLG_ACTIVE, &flags);

	/*
	 * tx only connections collect statistics (on the same index as the
	 * parent connection). The statistics are zeroed when the parent
	 * connection is initialized.
	 */

	rte_bit_relaxed_set32(ECORE_Q_FLG_STATS, &flags);
	if (zero_stats) {
		rte_bit_relaxed_set32(ECORE_Q_FLG_ZERO_STATS, &flags);
	}

	/*
	 * tx only connections can support tx-switching, though their
	 * CoS-ness doesn't survive the loopback
	 */
	if (sc->flags & BNX2X_TX_SWITCHING) {
		rte_bit_relaxed_set32(ECORE_Q_FLG_TX_SWITCH, &flags);
	}

	rte_bit_relaxed_set32(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
set flags that are common for the Tx - only and not normal connections
static unsigned long
bnx2x_get_common_flags(struct bnx2x_softc *sc, uint8_t zero_stats)
{
	uint32_t flags = 0;
	rte_bit_relaxed_set32(ECORE_Q_FLG_ACTIVE, &flags);
	rte_bit_relaxed_set32(ECORE_Q_FLG_STATS, &flags);
	if (zero_stats) {
		rte_bit_relaxed_set32(ECORE_Q_FLG_ZERO_STATS, &flags);
	}
	if (sc->flags & BNX2X_TX_SWITCHING) {
		rte_bit_relaxed_set32(ECORE_Q_FLG_TX_SWITCH, &flags);
	}
	rte_bit_relaxed_set32(ECORE_Q_FLG_PCSUM_ON_PKT, &flags);
	return flags;
}
static unsigned long bnx2x_get_common_flags ( struct bnx2x_softc * sc , uint8_t zero_stats ) { uint32_t flags = 0 ; rte_bit_relaxed_set32 ( ECORE_Q_FLG_ACTIVE , & flags ) ; rte_bit_relaxed_set32 ( ECORE_Q_FLG_STATS , & flags ) ; if ( zero_stats ) { rte_bit_relaxed_set32 ( ECORE_Q_FLG_ZERO_STATS , & flags ) ; } if ( sc -> flags & BNX2X_TX_SWITCHING ) { rte_bit_relaxed_set32 ( ECORE_Q_FLG_TX_SWITCH , & flags ) ; } rte_bit_relaxed_set32 ( 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
	 */