src/dpdk/drivers/net/qede/base/ecore_dcbx.c
void ecore_dcbx_set_pf_update_params(struct ecore_dcbx_results *p_src,
				     struct pf_update_ramrod_data *p_dest)
{
	struct protocol_dcb_data *p_dcb_data;
	u8 update_flag;

	update_flag = p_src->arr[DCBX_PROTOCOL_ETH].update;
	p_dest->update_eth_dcb_data_mode = update_flag;
	update_flag = p_src->arr[DCBX_PROTOCOL_IWARP].update;
	p_dest->update_iwarp_dcb_data_mode = update_flag;

	p_dcb_data = &p_dest->eth_dcb_data;
	ecore_dcbx_update_protocol_data(p_dcb_data, p_src, DCBX_PROTOCOL_ETH);
	p_dcb_data = &p_dest->iwarp_dcb_data;
	ecore_dcbx_update_protocol_data(p_dcb_data, p_src, DCBX_PROTOCOL_IWARP);
}
/* Set pf update ramrod command params */
Set pf update ramrod command params
Set pf update ramrod command params
void ecore_dcbx_set_pf_update_params(struct ecore_dcbx_results *p_src,
				     struct pf_update_ramrod_data *p_dest)
{
	struct protocol_dcb_data *p_dcb_data;
	u8 update_flag;
	update_flag = p_src->arr[DCBX_PROTOCOL_ETH].update;
	p_dest->update_eth_dcb_data_mode = update_flag;
	update_flag = p_src->arr[DCBX_PROTOCOL_IWARP].update;
	p_dest->update_iwarp_dcb_data_mode = update_flag;
	p_dcb_data = &p_dest->eth_dcb_data;
	ecore_dcbx_update_protocol_data(p_dcb_data, p_src, DCBX_PROTOCOL_ETH);
	p_dcb_data = &p_dest->iwarp_dcb_data;
	ecore_dcbx_update_protocol_data(p_dcb_data, p_src, DCBX_PROTOCOL_IWARP);
}
void ecore_dcbx_set_pf_update_params ( struct ecore_dcbx_results * p_src , struct pf_update_ramrod_data * p_dest ) { struct protocol_dcb_data * p_dcb_data ; u8 update_flag ; update_flag = p_src -> arr [ DCBX_PROTOCOL_ETH ] . update ; p_dest -> update_eth_dcb_data_mode = update_flag ; update_flag = p_src -> arr [ DCBX_PROTOCOL_IWARP ] . update ; p_dest -> update_iwarp_dcb_data_mode = update_flag ; p_dcb_data = & p_dest -> eth_dcb_data ; ecore_dcbx_update_protocol_data ( p_dcb_data , p_src , DCBX_PROTOCOL_ETH ) ; p_dcb_data = & p_dest -> iwarp_dcb_data ; ecore_dcbx_update_protocol_data ( p_dcb_data , p_src , DCBX_PROTOCOL_IWARP ) ; }
Set pf update ramrod command params
Set pf update ramrod command params