Lines Matching refs:fc_conf

230 eth_igc_flow_ctrl_get(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf);
232 eth_igc_flow_ctrl_set(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf);
2139 eth_igc_flow_ctrl_get(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf) in eth_igc_flow_ctrl_get() argument
2146 fc_conf->pause_time = hw->fc.pause_time; in eth_igc_flow_ctrl_get()
2147 fc_conf->high_water = hw->fc.high_water; in eth_igc_flow_ctrl_get()
2148 fc_conf->low_water = hw->fc.low_water; in eth_igc_flow_ctrl_get()
2149 fc_conf->send_xon = hw->fc.send_xon; in eth_igc_flow_ctrl_get()
2150 fc_conf->autoneg = hw->mac.autoneg; in eth_igc_flow_ctrl_get()
2168 fc_conf->mode = RTE_FC_FULL; in eth_igc_flow_ctrl_get()
2170 fc_conf->mode = RTE_FC_RX_PAUSE; in eth_igc_flow_ctrl_get()
2172 fc_conf->mode = RTE_FC_TX_PAUSE; in eth_igc_flow_ctrl_get()
2174 fc_conf->mode = RTE_FC_NONE; in eth_igc_flow_ctrl_get()
2180 eth_igc_flow_ctrl_set(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf) in eth_igc_flow_ctrl_set() argument
2188 if (fc_conf->autoneg != hw->mac.autoneg) in eth_igc_flow_ctrl_set()
2196 if (fc_conf->high_water > max_high_water || in eth_igc_flow_ctrl_set()
2197 fc_conf->high_water < fc_conf->low_water) { in eth_igc_flow_ctrl_set()
2200 fc_conf->high_water, fc_conf->low_water, in eth_igc_flow_ctrl_set()
2205 switch (fc_conf->mode) { in eth_igc_flow_ctrl_set()
2219 PMD_DRV_LOG(ERR, "unsupported fc mode: %u", fc_conf->mode); in eth_igc_flow_ctrl_set()
2223 hw->fc.pause_time = fc_conf->pause_time; in eth_igc_flow_ctrl_set()
2224 hw->fc.high_water = fc_conf->high_water; in eth_igc_flow_ctrl_set()
2225 hw->fc.low_water = fc_conf->low_water; in eth_igc_flow_ctrl_set()
2226 hw->fc.send_xon = fc_conf->send_xon; in eth_igc_flow_ctrl_set()
2238 if (fc_conf->mac_ctrl_frame_fwd != 0) in eth_igc_flow_ctrl_set()