src/dpdk/drivers/net/bnxt/tf_ulp/ulp_utils.c
int32_t
ulp_blob_pad_push(struct ulp_blob *blob,
		  uint32_t datalen)
{
	if (datalen > (uint32_t)(blob->bitlen - blob->write_idx)) {
		BNXT_TF_DBG(ERR, "Pad too large for blob\n");
		return 0;
	}

	blob->write_idx += datalen;
	return datalen;
}
/*
 * Adds pad to an initialized blob at the current offset
 *
 * blob [in] The blob that data is added to.  The blob must
 * be initialized prior to pushing data.
 *
 * datalen [in] The number of bits of pad to add
 *
 * returns the number of pad bits added, -1 on failure
 */
Adds pad to an initialized blob at the current offset
blob [in] The blob that data is added to.  The blob must
be initialized prior to pushing data.

datalen [in] The number of bits of pad to add

returns the number of pad bits added, -1 on failure
Adds pad to an initialized blob at the current offset blob [ in ] The blob that data is added to . The blob must be initialized prior to pushing data . datalen [ in ] The number of bits of pad to add returns the number of pad bits added - 1 on failure
int32_t
ulp_blob_pad_push(struct ulp_blob *blob,
		  uint32_t datalen)
{
	if (datalen > (uint32_t)(blob->bitlen - blob->write_idx)) {
		BNXT_TF_DBG(ERR, "Pad too large for blob\n");
		return 0;
	}
	blob->write_idx += datalen;
	return datalen;
}
int32_t ulp_blob_pad_push ( struct ulp_blob * blob , uint32_t datalen ) { if ( datalen > ( uint32_t ) ( blob -> bitlen - blob -> write_idx ) ) { BNXT_TF_DBG ( ERR , " \n " ) ; return 0 ; } blob -> write_idx += datalen ; return datalen ; }
Adds pad to an initialized blob at the current offset
 blob [in] The blob that data is added to.
Adds pad to an initialized blob at the current offset blob [ in ] The blob that data is added to .