src/dpdk/drivers/net/cxgbe/cxgbe_main.c
void cxgbe_get_speed_caps(struct port_info *pi, u32 *speed_caps)
{
	*speed_caps = 0;

	fw_caps_to_speed_caps(pi->link_cfg.port_type, pi->link_cfg.pcaps,
			      speed_caps);

	if (!(pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG))
		*speed_caps |= ETH_LINK_SPEED_FIXED;
}
/**
 * cxgbe_get_speed_caps - Fetch supported speed capabilities
 * @pi: Underlying port's info
 * @speed_caps: Device Info speed capabilities
 *
 * Fetch supported speed capabilities of the underlying port.
 */
Fetch supported speed capabilities
@pi: Underlying port's info
@speed_caps: Device Info speed capabilities

Fetch supported speed capabilities of the underlying port.
Fetch supported speed capabilities @pi : Underlying port ' s info @speed_caps : Device Info speed capabilities Fetch supported speed capabilities of the underlying port .
void cxgbe_get_speed_caps(struct port_info *pi, u32 *speed_caps)
{
	*speed_caps = 0;
	fw_caps_to_speed_caps(pi->link_cfg.port_type, pi->link_cfg.pcaps,
			      speed_caps);
	if (!(pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG))
		*speed_caps |= ETH_LINK_SPEED_FIXED;
}
void cxgbe_get_speed_caps ( struct port_info * pi , u32 * speed_caps ) { * speed_caps = 0 ; fw_caps_to_speed_caps ( pi -> link_cfg . port_type , pi -> link_cfg . pcaps , speed_caps ) ; if ( ! ( pi -> link_cfg . pcaps & FW_PORT_CAP32_ANEG ) ) * speed_caps |= ETH_LINK_SPEED_FIXED ; }
cxgbe_get_speed_caps - Fetch supported speed capabilities
 @pi: Underlying port's info
 @speed_caps: Device Info speed capabilities
cxgbe_get_speed_caps - Fetch supported speed capabilities @pi : Underlying port ' s info @speed_caps : Device Info speed capabilities