FreeBSD/sys/dev/qlxgb/qla_hw.c
/*
 * Name: qla_config_ipv4_addr
 * Function: Configures the Destination IP Addr for LRO.
 */
qla_config_ipv4_addr
Function: Configures the Destination IP Addr for LRO.
qla_config_ipv4_addr Function : Configures the Destination IP Addr for LRO .
void
qla_config_ipv4_addr(qla_host_t *ha, uint32_t ipv4_addr)
{
	qla_config_ipv4_t ip_conf;
	bzero(&ip_conf, sizeof(qla_config_ipv4_t));
	ip_conf.hdr.cmd = Q8_FWCD_CNTRL_REQ;
	ip_conf.hdr.opcode = Q8_FWCD_OPCODE_CONFIG_IPADDR;
	ip_conf.hdr.cntxt_id = (ha->hw.rx_cntxt_rsp)->rx_rsp.cntxt_id;
	ip_conf.cmd = (uint64_t)Q8_CONFIG_CMD_IP_ENABLE;
	ip_conf.ipv4_addr = (uint64_t)ipv4_addr;
	(void)qla_fw_cmd(ha, &ip_conf, sizeof(qla_config_ipv4_t));
	return;
}
void qla_config_ipv4_addr ( qla_host_t * ha , uint32_t ipv4_addr ) { qla_config_ipv4_t ip_conf ; bzero ( & ip_conf , sizeof ( qla_config_ipv4_t ) ) ; ip_conf . hdr . cmd = Q8_FWCD_CNTRL_REQ ; ip_conf . hdr . opcode = Q8_FWCD_OPCODE_CONFIG_IPADDR ; ip_conf . hdr . cntxt_id = ( ha -> hw . rx_cntxt_rsp ) -> rx_rsp . cntxt_id ; ip_conf . cmd = ( uint64_t ) Q8_CONFIG_CMD_IP_ENABLE ; ip_conf . ipv4_addr = ( uint64_t ) ipv4_addr ; ( void ) qla_fw_cmd ( ha , & ip_conf , sizeof ( qla_config_ipv4_t ) ) ; return ; }
Name: qla_config_ipv4_addr
 Function: Configures the Destination IP Addr for LRO.
Name : qla_config_ipv4_addr Function : Configures the Destination IP Addr for LRO .