Lines Matching refs:dev_conf
1069 const struct rte_eth_conf *dev_conf) in rte_eth_dev_configure() argument
1081 if (dev_conf == NULL) { in rte_eth_dev_configure()
1105 memcpy(&orig_conf, &dev->data->dev_conf, sizeof(dev->data->dev_conf)); in rte_eth_dev_configure()
1111 if (dev_conf != &dev->data->dev_conf) in rte_eth_dev_configure()
1112 memcpy(&dev->data->dev_conf, dev_conf, in rte_eth_dev_configure()
1113 sizeof(dev->data->dev_conf)); in rte_eth_dev_configure()
1173 if ((dev_conf->intr_conf.lsc == 1) && in rte_eth_dev_configure()
1180 if ((dev_conf->intr_conf.rmv == 1) && in rte_eth_dev_configure()
1188 if (dev_conf->rxmode.mtu == 0) in rte_eth_dev_configure()
1189 dev->data->dev_conf.rxmode.mtu = RTE_ETHER_MTU; in rte_eth_dev_configure()
1192 dev->data->dev_conf.rxmode.mtu); in rte_eth_dev_configure()
1196 dev->data->mtu = dev->data->dev_conf.rxmode.mtu; in rte_eth_dev_configure()
1202 if (dev_conf->rxmode.offloads & RTE_ETH_RX_OFFLOAD_TCP_LRO) { in rte_eth_dev_configure()
1208 max_rx_pktlen = dev->data->dev_conf.rxmode.mtu + overhead_len; in rte_eth_dev_configure()
1209 if (dev_conf->rxmode.max_lro_pkt_size == 0) in rte_eth_dev_configure()
1210 dev->data->dev_conf.rxmode.max_lro_pkt_size = max_rx_pktlen; in rte_eth_dev_configure()
1212 dev->data->dev_conf.rxmode.max_lro_pkt_size, in rte_eth_dev_configure()
1220 if ((dev_conf->rxmode.offloads & dev_info.rx_offload_capa) != in rte_eth_dev_configure()
1221 dev_conf->rxmode.offloads) { in rte_eth_dev_configure()
1225 port_id, dev_conf->rxmode.offloads, in rte_eth_dev_configure()
1231 if ((dev_conf->txmode.offloads & dev_info.tx_offload_capa) != in rte_eth_dev_configure()
1232 dev_conf->txmode.offloads) { in rte_eth_dev_configure()
1236 port_id, dev_conf->txmode.offloads, in rte_eth_dev_configure()
1243 dev->data->dev_conf.rx_adv_conf.rss_conf.rss_hf = in rte_eth_dev_configure()
1244 rte_eth_rss_hf_refine(dev_conf->rx_adv_conf.rss_conf.rss_hf); in rte_eth_dev_configure()
1248 dev_conf->rx_adv_conf.rss_conf.rss_hf) != in rte_eth_dev_configure()
1252 port_id, dev_conf->rx_adv_conf.rss_conf.rss_hf, in rte_eth_dev_configure()
1259 if (((dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG) == 0) && in rte_eth_dev_configure()
1260 (dev_conf->rxmode.offloads & RTE_ETH_RX_OFFLOAD_RSS_HASH)) { in rte_eth_dev_configure()
1310 dev_conf->rxmode.offloads, in rte_eth_dev_configure()
1311 dev->data->dev_conf.rxmode.offloads, "Rx", in rte_eth_dev_configure()
1320 dev_conf->txmode.offloads, in rte_eth_dev_configure()
1321 dev->data->dev_conf.txmode.offloads, "Tx", in rte_eth_dev_configure()
1329 rte_ethdev_trace_configure(port_id, nb_rx_q, nb_tx_q, dev_conf, 0); in rte_eth_dev_configure()
1335 memcpy(&dev->data->dev_conf, &orig_conf, sizeof(dev->data->dev_conf)); in rte_eth_dev_configure()
1339 rte_ethdev_trace_configure(port_id, nb_rx_q, nb_tx_q, dev_conf, ret); in rte_eth_dev_configure()
1503 if (dev->data->dev_conf.intr_conf.lsc == 0) { in rte_eth_dev_start()
1838 local_conf.offloads &= ~dev->data->dev_conf.rxmode.offloads; in rte_eth_rx_queue_setup()
1880 if (dev->data->dev_conf.rxmode.max_lro_pkt_size == 0) in rte_eth_rx_queue_setup()
1881 dev->data->dev_conf.rxmode.max_lro_pkt_size = max_rx_pktlen; in rte_eth_rx_queue_setup()
1883 dev->data->dev_conf.rxmode.max_lro_pkt_size, in rte_eth_rx_queue_setup()
2043 local_conf.offloads &= ~dev->data->dev_conf.txmode.offloads; in rte_eth_tx_queue_setup()
2412 if (dev->data->dev_conf.intr_conf.lsc && dev->data->dev_started) in rte_eth_link_get()
2437 if (dev->data->dev_conf.intr_conf.lsc && dev->data->dev_started) in rte_eth_link_get_nowait()
3154 rte_eth_dev_conf_get(uint16_t port_id, struct rte_eth_conf *dev_conf) in rte_eth_dev_conf_get() argument
3161 if (dev_conf == NULL) { in rte_eth_dev_conf_get()
3168 memcpy(dev_conf, &dev->data->dev_conf, sizeof(struct rte_eth_conf)); in rte_eth_dev_conf_get()
3410 if (!(dev->data->dev_conf.rxmode.offloads & in rte_eth_dev_vlan_filter()
3494 orig_offloads = dev->data->dev_conf.rxmode.offloads; in rte_eth_dev_set_vlan_offload()
3559 dev->data->dev_conf.rxmode.offloads = dev_offloads; in rte_eth_dev_set_vlan_offload()
3563 dev->data->dev_conf.rxmode.offloads = orig_offloads; in rte_eth_dev_set_vlan_offload()
3578 dev_offloads = &dev->data->dev_conf.rxmode.offloads; in rte_eth_dev_get_vlan_offload()
3902 mq_mode = dev->data->dev_conf.rxmode.mq_mode; in rte_eth_dev_rss_reta_update()
3974 mq_mode = dev->data->dev_conf.rxmode.mq_mode; in rte_eth_dev_rss_hash_update()
5719 eth_dev->data->dev_conf.rxmode.offloads); in eth_dev_handle_port_info()
5721 eth_dev->data->dev_conf.txmode.offloads); in eth_dev_handle_port_info()
5723 eth_dev->data->dev_conf.rx_adv_conf.rss_conf.rss_hf); in eth_dev_handle_port_info()