Lines Matching refs:fc_conf
223 struct rte_eth_fc_conf fc_conf; in rte_ethtool_get_pauseparam() local
229 status = rte_eth_dev_flow_ctrl_get(port_id, &fc_conf); in rte_ethtool_get_pauseparam()
235 switch (fc_conf.mode) { in rte_ethtool_get_pauseparam()
249 pause_param->autoneg = (uint32_t)fc_conf.autoneg; in rte_ethtool_get_pauseparam()
258 struct rte_eth_fc_conf fc_conf; in rte_ethtool_set_pauseparam() local
272 status = rte_eth_dev_flow_ctrl_get(port_id, &fc_conf); in rte_ethtool_set_pauseparam()
276 fc_conf.autoneg = (uint8_t)pause_param->autoneg; in rte_ethtool_set_pauseparam()
280 fc_conf.mode = RTE_FC_FULL; in rte_ethtool_set_pauseparam()
282 fc_conf.mode = RTE_FC_TX_PAUSE; in rte_ethtool_set_pauseparam()
285 fc_conf.mode = RTE_FC_RX_PAUSE; in rte_ethtool_set_pauseparam()
287 fc_conf.mode = RTE_FC_NONE; in rte_ethtool_set_pauseparam()
290 status = rte_eth_dev_flow_ctrl_set(port_id, &fc_conf); in rte_ethtool_set_pauseparam()