src/dpdk/drivers/net/bnx2x/bnx2x.c
static int bnx2x_er_poll_igu_vq(struct bnx2x_softc *sc)
{
	uint32_t cnt = 1000;
	uint32_t pend_bits = 0;

	do {
		pend_bits = REG_RD(sc, IGU_REG_PENDING_BITS_STATUS);

		if (pend_bits == 0) {
			break;
		}

		DELAY(1000);
	} while (cnt-- > 0);

	if (cnt <= 0) {
		PMD_DRV_LOG(NOTICE, sc, "Still pending IGU requests bits=0x%08x!",
			    pend_bits);
		return -1;
	}

	return 0;
}
/* poll for pending writes bit, it should get cleared in no more than 1s */
poll for pending writes bit, it should get cleared in no more than 1s
poll for pending writes bit it should get cleared in no more than 1s
static int bnx2x_er_poll_igu_vq(struct bnx2x_softc *sc)
{
	uint32_t cnt = 1000;
	uint32_t pend_bits = 0;
	do {
		pend_bits = REG_RD(sc, IGU_REG_PENDING_BITS_STATUS);
		if (pend_bits == 0) {
			break;
		}
		DELAY(1000);
	} while (cnt-- > 0);
	if (cnt <= 0) {
		PMD_DRV_LOG(NOTICE, sc, "Still pending IGU requests bits=0x%08x!",
			    pend_bits);
		return -1;
	}
	return 0;
}
static int bnx2x_er_poll_igu_vq ( struct bnx2x_softc * sc ) { uint32_t cnt = 1000 ; uint32_t pend_bits = 0 ; do { pend_bits = REG_RD ( sc , IGU_REG_PENDING_BITS_STATUS ) ; if ( pend_bits == 0 ) { break ; } DELAY ( 1000 ) ; } while ( cnt -- > 0 ) ; if ( cnt <= 0 ) { PMD_DRV_LOG ( NOTICE , sc , " " , pend_bits ) ; return -1 ; } return 0 ; }
poll for pending writes bit, it should get cleared in no more than 1s
poll for pending writes bit it should get cleared in no more than 1s