Lines Matching refs:fc_conf
848 sfc_flow_ctrl_get(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf) in sfc_flow_ctrl_get() argument
853 memset(fc_conf, 0, sizeof(*fc_conf)); in sfc_flow_ctrl_get()
864 fc_conf->mode = RTE_FC_NONE; in sfc_flow_ctrl_get()
867 fc_conf->mode = RTE_FC_RX_PAUSE; in sfc_flow_ctrl_get()
870 fc_conf->mode = RTE_FC_TX_PAUSE; in sfc_flow_ctrl_get()
873 fc_conf->mode = RTE_FC_FULL; in sfc_flow_ctrl_get()
880 fc_conf->autoneg = sa->port.flow_ctrl_autoneg; in sfc_flow_ctrl_get()
888 sfc_flow_ctrl_set(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf) in sfc_flow_ctrl_set() argument
895 if (fc_conf->high_water != 0 || fc_conf->low_water != 0 || in sfc_flow_ctrl_set()
896 fc_conf->pause_time != 0 || fc_conf->send_xon != 0 || in sfc_flow_ctrl_set()
897 fc_conf->mac_ctrl_frame_fwd != 0) { in sfc_flow_ctrl_set()
903 switch (fc_conf->mode) { in sfc_flow_ctrl_set()
924 rc = efx_mac_fcntl_set(sa->nic, fcntl, fc_conf->autoneg); in sfc_flow_ctrl_set()
930 port->flow_ctrl_autoneg = fc_conf->autoneg; in sfc_flow_ctrl_set()