Home
last modified time | relevance | path

Searched refs:rxmode (Results 1 – 25 of 171) sorted by relevance

1234567

/dpdk/drivers/net/bnxt/
H A Dbnxt_rxq.c82 if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB_RSS) { in bnxt_mq_rx_configure()
85 switch (dev_conf->rxmode.mq_mode) { in bnxt_mq_rx_configure()
108 dev_conf->rxmode.mq_mode); in bnxt_mq_rx_configure()
112 } else if (!dev_conf->rxmode.mq_mode) { in bnxt_mq_rx_configure()
141 if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB) { in bnxt_mq_rx_configure()
151 if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_DCB || in bnxt_mq_rx_configure()
152 !(dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS)) in bnxt_mq_rx_configure()
326 uint64_t rx_offloads = eth_dev->data->dev_conf.rxmode.offloads; in bnxt_rx_queue_setup_op()
498 if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG) { in bnxt_rx_queue_start()
569 if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG) { in bnxt_rx_queue_stop()
/dpdk/lib/ethdev/
H A Drte_ethdev_trace.h30 rte_trace_point_emit_u32(dev_conf->rxmode.mq_mode);
31 rte_trace_point_emit_u32(dev_conf->rxmode.mtu);
32 rte_trace_point_emit_u64(dev_conf->rxmode.offloads);
H A Drte_ethdev.c1188 if (dev_conf->rxmode.mtu == 0) in rte_eth_dev_configure()
1192 dev->data->dev_conf.rxmode.mtu); in rte_eth_dev_configure()
1209 if (dev_conf->rxmode.max_lro_pkt_size == 0) 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()
1310 dev_conf->rxmode.offloads, in rte_eth_dev_configure()
1311 dev->data->dev_conf.rxmode.offloads, "Rx", in rte_eth_dev_configure()
3410 if (!(dev->data->dev_conf.rxmode.offloads & in rte_eth_dev_vlan_filter()
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()
[all …]
/dpdk/examples/l2fwd-event/
H A Dl2fwd_common.c13 .rxmode = { in l2fwd_event_init_ports()
25 port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_RSS; in l2fwd_event_init_ports()
84 rxq_conf.offloads = local_port_conf.rxmode.offloads; in l2fwd_event_init_ports()
/dpdk/drivers/net/nfp/
H A Dnfp_common.c143 struct rte_eth_rxmode *rxmode; in nfp_net_configure() local
160 rxmode = &dev_conf->rxmode; in nfp_net_configure()
163 if (rxmode->mq_mode & RTE_ETH_MQ_RX_RSS_FLAG) in nfp_net_configure()
164 rxmode->offloads |= RTE_ETH_RX_OFFLOAD_RSS_HASH; in nfp_net_configure()
173 if (rxmode->mq_mode & RTE_ETH_MQ_RX_RSS && in nfp_net_configure()
348 struct rte_eth_rxmode *rxmode; in nfp_check_offloads() local
355 rxmode = &dev_conf->rxmode; in nfp_check_offloads()
358 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_IPV4_CKSUM) { in nfp_check_offloads()
363 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP) { in nfp_check_offloads()
H A Dnfp_ethdev_vf.c58 struct rte_eth_rxmode *rxmode; in nfp_netvf_start() local
105 rxmode = &dev_conf->rxmode; in nfp_netvf_start()
107 if (rxmode->mq_mode & RTE_ETH_MQ_RX_RSS) { in nfp_netvf_start()
/dpdk/drivers/net/i40e/
H A Di40e_rxtx_vec_common.h213 struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; in i40e_rx_vec_dev_conf_condition_check_default() local
224 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_HEADER_SPLIT) in i40e_rx_vec_dev_conf_condition_check_default()
228 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_EXTEND) in i40e_rx_vec_dev_conf_condition_check_default()
/dpdk/drivers/net/octeontx/
H A Docteontx_ethdev_ops.c41 struct rte_eth_rxmode *rxmode; in octeontx_dev_vlan_offload_set() local
44 rxmode = &dev->data->dev_conf.rxmode; in octeontx_dev_vlan_offload_set()
47 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_FILTER) { in octeontx_dev_vlan_offload_set()
/dpdk/drivers/net/octeontx_ep/
H A Dotx_ep_ethdev.c158 struct rte_eth_rxmode *rxmode; in otx_ep_dev_configure() local
163 rxmode = &conf->rxmode; in otx_ep_dev_configure()
173 otx_epvf->rx_offloads = rxmode->offloads; in otx_ep_dev_configure()
/dpdk/examples/multi_process/symmetric_mp/
H A Dmain.c177 .rxmode = { in smp_port_init()
238 port_conf.rxmode.offloads &= ~(RTE_ETH_RX_OFFLOAD_CHECKSUM); in smp_port_init()
245 port_conf.rxmode.mq_mode &= ~(RTE_ETH_MQ_RX_RSS); in smp_port_init()
257 rxq_conf.offloads = port_conf.rxmode.offloads; in smp_port_init()
/dpdk/drivers/net/thunderx/
H A Dnicvf_ethdev.c806 dev->data->dev_conf.rxmode.mq_mode, in nicvf_configure_rss()
1894 struct rte_eth_rxmode *rxmode = &conf->rxmode; in nicvf_dev_configure() local
1901 if (rxmode->mq_mode & RTE_ETH_MQ_RX_RSS_FLAG) in nicvf_dev_configure()
1902 rxmode->offloads |= RTE_ETH_RX_OFFLOAD_RSS_HASH; in nicvf_dev_configure()
1914 if (rxmode->mq_mode != RTE_ETH_MQ_RX_NONE && in nicvf_dev_configure()
1915 rxmode->mq_mode != RTE_ETH_MQ_RX_RSS) { in nicvf_dev_configure()
1920 if (rxmode->split_hdr_size) { in nicvf_dev_configure()
1960 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_CHECKSUM) in nicvf_dev_configure()
2034 struct rte_eth_rxmode *rxmode; in nicvf_vlan_offload_config() local
2036 rxmode = &dev->data->dev_conf.rxmode; in nicvf_vlan_offload_config()
[all …]
/dpdk/drivers/net/hns3/
H A Dhns3_rxtx_vec.c234 struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; in hns3_rx_check_vec_support() local
246 if (rxmode->offloads & offloads_mask) in hns3_rx_check_vec_support()
/dpdk/drivers/net/netvsc/
H A Dhn_ethdev.c715 const struct rte_eth_rxmode *rxmode = &dev_conf->rxmode; in hn_dev_configure() local
723 if (dev_conf->rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG) in hn_dev_configure()
724 dev_conf->rxmode.offloads |= RTE_ETH_RX_OFFLOAD_RSS_HASH; in hn_dev_configure()
734 unsupported = rxmode->offloads & ~HN_RX_OFFLOAD_CAPS; in hn_dev_configure()
738 rxmode->offloads); in hn_dev_configure()
742 hv->vlan_strip = !!(rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP); in hn_dev_configure()
745 rxmode->offloads); in hn_dev_configure()
/dpdk/examples/flow_filtering/
H A Dmain.c136 .rxmode = { in init_port()
170 rxq_conf.offloads = port_conf.rxmode.offloads; in init_port()
/dpdk/examples/qos_meter/
H A Dmain.c53 .rxmode = {
358 rxq_conf.offloads = conf.rxmode.offloads; in main()
406 rxq_conf.offloads = conf.rxmode.offloads; in main()
/dpdk/examples/ipv4_multicast/
H A Dmain.c111 .rxmode = {
717 local_port_conf.rxmode.mtu = RTE_MIN( in main()
719 local_port_conf.rxmode.mtu); in main()
770 rxq_conf.offloads = local_port_conf.rxmode.offloads; in main()
/dpdk/examples/ip_pipeline/
H A Dlink.c47 .rxmode = {
160 port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_RSS; in link_create()
/dpdk/drivers/net/e1000/
H A Digb_rxtx.c1694 offloads = rx_conf->offloads | dev->data->dev_conf.rxmode.offloads; in eth_igb_rx_queue_setup()
1735 if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC) in eth_igb_rx_queue_setup()
2283 switch (dev->data->dev_conf.rxmode.mq_mode) { in igb_dev_mq_rx_configure()
2305 struct rte_eth_rxmode *rxmode; in eth_igb_rx_init() local
2327 rxmode = &dev->data->dev_conf.rxmode; in eth_igb_rx_init()
2340 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_EXTEND) in eth_igb_rx_init()
2376 if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC) in eth_igb_rx_init()
2490 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_IPV4_CKSUM) in eth_igb_rx_init()
2494 if (rxmode->offloads & in eth_igb_rx_init()
2499 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_CHECKSUM) in eth_igb_rx_init()
[all …]
H A Dem_rxtx.c1413 offloads = rx_conf->offloads | dev->data->dev_conf.rxmode.offloads; in eth_em_rx_queue_setup()
1471 if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC) in eth_em_rx_queue_setup()
1721 struct rte_eth_rxmode *rxmode; in eth_em_rx_init() local
1730 rxmode = &dev->data->dev_conf.rxmode; in eth_em_rx_init()
1790 if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC) in eth_em_rx_init()
1833 if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_SCATTER) { in eth_em_rx_init()
1846 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_CHECKSUM) in eth_em_rx_init()
1872 if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC) in eth_em_rx_init()
/dpdk/app/test-pmd/
H A Dtestpmd.c1564 port->dev_conf.rxmode = rx_mode; in init_config_port_offloads()
2809 if (dev_conf.rxmode.offloads != in start_port()
2810 port->dev_conf.rxmode.offloads) { in start_port()
2811 port->dev_conf.rxmode.offloads |= in start_port()
2812 dev_conf.rxmode.offloads; in start_port()
2817 dev_conf.rxmode.offloads; in start_port()
3762 port->dev_conf.rxmode.mtu = new_mtu; in update_mtu_from_frame_size()
3793 port->dev_conf.rxmode.mq_mode = in init_port_config()
3798 port->dev_conf.rxmode.offloads &= in init_port_config()
3909 eth_conf->rxmode.mq_mode = in get_eth_dcb_conf()
[all …]
/dpdk/drivers/net/sfc/
H A Dsfc_rx.c1131 offloads |= sa->eth_dev->data->dev_conf.rxmode.offloads; in sfc_rx_qinit()
1646 sfc_rx_check_mode(struct sfc_adapter *sa, struct rte_eth_rxmode *rxmode) in sfc_rx_check_mode() argument
1654 switch (rxmode->mq_mode) { in sfc_rx_check_mode()
1666 rxmode->mq_mode); in sfc_rx_check_mode()
1675 if ((rxmode->offloads & RTE_ETH_RX_OFFLOAD_CHECKSUM) != in sfc_rx_check_mode()
1678 rxmode->offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM; in sfc_rx_check_mode()
1682 (~rxmode->offloads & RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM)) { in sfc_rx_check_mode()
1684 rxmode->offloads |= RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM; in sfc_rx_check_mode()
1746 rc = sfc_rx_check_mode(sa, &dev_conf->rxmode); in sfc_rx_configure()
1830 rss->channels = (dev_conf->rxmode.mq_mode == RTE_ETH_MQ_RX_RSS) ? in sfc_rx_configure()
/dpdk/examples/ip_fragmentation/
H A Dmain.c147 .rxmode = {
920 local_port_conf.rxmode.mtu = RTE_MIN( in main()
922 local_port_conf.rxmode.mtu); in main()
965 ret = rte_eth_dev_set_mtu(portid, local_port_conf.rxmode.mtu); in main()
983 rxq_conf.offloads = local_port_conf.rxmode.offloads; in main()
/dpdk/app/test-eventdev/
H A Dtest_pipeline_common.c178 .rxmode = { in pipeline_ethdev_setup()
200 port_conf.rxmode.mtu = opt->max_pkt_sz - RTE_ETHER_HDR_LEN - in pipeline_ethdev_setup()
225 local_port_conf.rxmode.offloads |= in pipeline_ethdev_setup()
241 rx_conf.offloads = port_conf.rxmode.offloads; in pipeline_ethdev_setup()
/dpdk/drivers/net/ionic/
H A Dionic_lif.c1687 struct rte_eth_rxmode *rxmode = &eth_dev->data->dev_conf.rxmode; in ionic_lif_configure_vlan_offload() local
1693 rxmode->offloads |= RTE_ETH_RX_OFFLOAD_VLAN_FILTER; in ionic_lif_configure_vlan_offload()
1696 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP) in ionic_lif_configure_vlan_offload()
1706 struct rte_eth_rxmode *rxmode = &lif->eth_dev->data->dev_conf.rxmode; in ionic_lif_configure() local
1741 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_IPV4_CKSUM || in ionic_lif_configure()
1742 rxmode->offloads & RTE_ETH_RX_OFFLOAD_UDP_CKSUM || in ionic_lif_configure()
1743 rxmode->offloads & RTE_ETH_RX_OFFLOAD_TCP_CKSUM) in ionic_lif_configure()
1748 if (rxmode->offloads & RTE_ETH_RX_OFFLOAD_SCATTER) { in ionic_lif_configure()
/dpdk/drivers/net/txgbe/
H A Dtxgbe_ethdev_vf.c578 if (dev->data->dev_conf.rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG) in txgbevf_dev_configure()
579 dev->data->dev_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_RSS_HASH; in txgbevf_dev_configure()
586 if (conf->rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC) { in txgbevf_dev_configure()
588 conf->rxmode.offloads &= ~RTE_ETH_RX_OFFLOAD_KEEP_CRC; in txgbevf_dev_configure()
591 if (!(conf->rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC)) { in txgbevf_dev_configure()
593 conf->rxmode.offloads |= RTE_ETH_RX_OFFLOAD_KEEP_CRC; in txgbevf_dev_configure()

1234567