src/dpdk/drivers/net/qede/base/ecore_dcbx.c
static void
ecore_dcbx_update_app_info(struct ecore_dcbx_results *p_data,
			   struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
			   bool enable, u8 prio, u8 tc,
			   enum dcbx_protocol_type type)
{
	enum ecore_pci_personality personality;
	enum dcbx_protocol_type id;
	int i;

	for (i = 0; i < OSAL_ARRAY_SIZE(ecore_dcbx_app_update); i++) {
		id = ecore_dcbx_app_update[i].id;

		if (type != id)
			continue;

		personality = ecore_dcbx_app_update[i].personality;

		ecore_dcbx_set_params(p_data, p_hwfn, p_ptt, enable,
				      prio, tc, type, personality);
	}
}
/* Update app protocol data and hw_info fields with the TLV info */
Update app protocol data and hw_info fields with the TLV info
Update app protocol data and hw_info fields with the TLV info
static void
ecore_dcbx_update_app_info(struct ecore_dcbx_results *p_data,
			   struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
			   bool enable, u8 prio, u8 tc,
			   enum dcbx_protocol_type type)
{
	enum ecore_pci_personality personality;
	enum dcbx_protocol_type id;
	int i;
	for (i = 0; i < OSAL_ARRAY_SIZE(ecore_dcbx_app_update); i++) {
		id = ecore_dcbx_app_update[i].id;
		if (type != id)
			continue;
		personality = ecore_dcbx_app_update[i].personality;
		ecore_dcbx_set_params(p_data, p_hwfn, p_ptt, enable,
				      prio, tc, type, personality);
	}
}
static void ecore_dcbx_update_app_info ( struct ecore_dcbx_results * p_data , struct ecore_hwfn * p_hwfn , struct ecore_ptt * p_ptt , bool enable , u8 prio , u8 tc , enum dcbx_protocol_type type ) { enum ecore_pci_personality personality ; enum dcbx_protocol_type id ; int i ; for ( i = 0 ; i < OSAL_ARRAY_SIZE ( ecore_dcbx_app_update ) ; i ++ ) { id = ecore_dcbx_app_update [ i ] . id ; if ( type != id ) continue ; personality = ecore_dcbx_app_update [ i ] . personality ; ecore_dcbx_set_params ( p_data , p_hwfn , p_ptt , enable , prio , tc , type , personality ) ; } }
Update app protocol data and hw_info fields with the TLV info
Update app protocol data and hw_info fields with the TLV info