FreeBSD/sys/dev/qlxgb/qla_hw.c
static int
qla_get_max_lro(qla_host_t *ha)
{
	qla_cdrp_t	cdrp;
	device_t	dev;

	dev = ha->pci_dev;

	bzero(&cdrp, sizeof(qla_cdrp_t));

	cdrp.cmd = Q8_CMD_RD_MAX_LRO;

	if (qla_issue_cmd(ha, &cdrp)) {
		device_printf(dev, "%s: Q8_CMD_RD_MAX_LRO failed\n", __func__);
		return (-1);
	} else {
		ha->hw.max_lro = cdrp.rsp_arg1;
		QL_DPRINT2((dev, "%s: max_lro 0x%08x\n", __func__,
			ha->hw.max_lro));
	}
	return 0;
}
/*
 * Name: qla_get_max_lro
 * Function: Returns the maximum number of TCP Connection which can be supported
 *	with LRO.
 */
qla_get_max_lro
Function: Returns the maximum number of TCP Connection which can be supported
with LRO.
qla_get_max_lro Function : Returns the maximum number of TCP Connection which can be supported with LRO .
static int
qla_get_max_lro(qla_host_t *ha)
{
	qla_cdrp_t	cdrp;
	device_t	dev;
	dev = ha->pci_dev;
	bzero(&cdrp, sizeof(qla_cdrp_t));
	cdrp.cmd = Q8_CMD_RD_MAX_LRO;
	if (qla_issue_cmd(ha, &cdrp)) {
		device_printf(dev, "%s: Q8_CMD_RD_MAX_LRO failed\n", __func__);
		return (-1);
	} else {
		ha->hw.max_lro = cdrp.rsp_arg1;
		QL_DPRINT2((dev, "%s: max_lro 0x%08x\n", __func__,
			ha->hw.max_lro));
	}
	return 0;
}
static int qla_get_max_lro ( qla_host_t * ha ) { qla_cdrp_t cdrp ; device_t dev ; dev = ha -> pci_dev ; bzero ( & cdrp , sizeof ( qla_cdrp_t ) ) ; cdrp . cmd = Q8_CMD_RD_MAX_LRO ; if ( qla_issue_cmd ( ha , & cdrp ) ) { device_printf ( dev , " \n " , __func__ ) ; return ( -1 ) ; } else { ha -> hw . max_lro = cdrp . rsp_arg1 ; QL_DPRINT2 ( ( dev , " \n " , __func__ , ha -> hw . max_lro ) ) ; } return 0 ; }
Name: qla_get_max_lro
 Function: Returns the maximum number of TCP Connection which can be supported
      with LRO.
Name : qla_get_max_lro Function : Returns the maximum number of TCP Connection which can be supported with LRO .