src/dpdk/drivers/net/qede/base/ecore_sriov.c
void *ecore_add_tlv(u8 **offset, u16 type, u16 length)
{
	struct channel_tlv *tl = (struct channel_tlv *)*offset;

	tl->type = type;
	tl->length = length;

	/* Offset should keep pointing to next TLV (the end of the last) */
	*offset += length;

	/* Return a pointer to the start of the added tlv */
	return *offset - length;
}
/* place a given tlv on the tlv buffer, continuing current tlv list */
place a given tlv on the tlv buffer, continuing current tlv list
place a given tlv on the tlv buffer continuing current tlv list
void *ecore_add_tlv(u8 **offset, u16 type, u16 length)
{
	struct channel_tlv *tl = (struct channel_tlv *)*offset;
	tl->type = type;
	tl->length = length;
	*offset += length;
	return *offset - length;
}
void * ecore_add_tlv ( u8 * * offset , u16 type , u16 length ) { struct channel_tlv * tl = ( struct channel_tlv * ) * offset ; tl -> type = type ; tl -> length = length ; * offset += length ; return * offset - length ; }
place a given tlv on the tlv buffer, continuing current tlv list
place a given tlv on the tlv buffer continuing current tlv list
/* Offset should keep pointing to next TLV (the end of the last) */ /* Return a pointer to the start of the added tlv */