| /f-stack/dpdk/examples/l2fwd-event/ |
| H A D | l2fwd_common.c | 28 port_conf.rx_adv_conf.rss_conf.rss_hf = ETH_RSS_IP; in l2fwd_event_init_ports() 53 local_port_conf.rx_adv_conf.rss_conf.rss_hf &= in l2fwd_event_init_ports() 55 if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != in l2fwd_event_init_ports() 56 port_conf.rx_adv_conf.rss_conf.rss_hf) { in l2fwd_event_init_ports() 60 port_conf.rx_adv_conf.rss_conf.rss_hf, in l2fwd_event_init_ports() 61 local_port_conf.rx_adv_conf.rss_conf.rss_hf); in l2fwd_event_init_ports()
|
| /f-stack/dpdk/examples/qos_meter/ |
| H A D | main.c | 64 .rss_hf = ETH_RSS_IP, 339 conf.rx_adv_conf.rss_conf.rss_hf &= dev_info.flow_type_rss_offloads; in main() 340 if (conf.rx_adv_conf.rss_conf.rss_hf != in main() 341 port_conf.rx_adv_conf.rss_conf.rss_hf) { in main() 345 port_conf.rx_adv_conf.rss_conf.rss_hf, in main() 346 conf.rx_adv_conf.rss_conf.rss_hf); in main() 385 conf.rx_adv_conf.rss_conf.rss_hf &= dev_info.flow_type_rss_offloads; in main() 386 if (conf.rx_adv_conf.rss_conf.rss_hf != in main() 387 port_conf.rx_adv_conf.rss_conf.rss_hf) { in main() 391 port_conf.rx_adv_conf.rss_conf.rss_hf, in main() [all …]
|
| /f-stack/dpdk/drivers/net/mlx5/ |
| H A D | mlx5_rss.c | 39 if (rss_conf->rss_hf & MLX5_RSS_HF_MASK) { in mlx5_rss_hash_update() 64 priv->rss_conf.rss_hf = rss_conf->rss_hf; in mlx5_rss_hash_update() 69 (*priv->rxqs)[i]->rss_hash = !!rss_conf->rss_hf && in mlx5_rss_hash_update() 103 rss_conf->rss_hf = priv->rss_conf.rss_hf; in mlx5_rss_hash_conf_get()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_link_bonding_rssconf.c | 105 .rss_hf = ETH_RSS_IPV6, 330 uint64_t rss_hf = 0; in test_propagate() local 345 rss_hf = test_params.bond_dev_info.flow_type_rss_offloads & (1<<i); in test_propagate() 346 if (rss_hf) { in test_propagate() 348 bond_rss_conf.rss_hf = rss_hf; in test_propagate() 362 TEST_ASSERT(port->rss_conf.rss_hf == rss_hf, in test_propagate() 367 default_rss_hf = rss_hf; in test_propagate() 387 bond_rss_conf.rss_hf = default_rss_hf, in test_propagate()
|
| /f-stack/dpdk/examples/l3fwd/ |
| H A D | l3fwd_event.c | 82 local_port_conf.rx_adv_conf.rss_conf.rss_hf &= in l3fwd_eth_dev_port_setup() 84 if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != in l3fwd_eth_dev_port_setup() 85 port_conf->rx_adv_conf.rss_conf.rss_hf) { in l3fwd_eth_dev_port_setup() 90 port_conf->rx_adv_conf.rss_conf.rss_hf, in l3fwd_eth_dev_port_setup() 91 local_port_conf.rx_adv_conf.rss_conf.rss_hf); in l3fwd_eth_dev_port_setup()
|
| /f-stack/dpdk/drivers/net/octeontx2/ |
| H A D | otx2_rss.c | 346 rss_hash_level = ETH_RSS_LEVEL(rss_conf->rss_hf); in otx2_nix_rss_hash_update() 350 otx2_rss_ethdev_to_nix(dev, rss_conf->rss_hf, rss_hash_level); in otx2_nix_rss_hash_update() 376 rss_conf->rss_hf = dev->rss_info.nix_rss; in otx2_nix_rss_hash_conf_get() 388 uint64_t rss_hf; in otx2_nix_rss_config() local 410 rss_hf = eth_dev->data->dev_conf.rx_adv_conf.rss_conf.rss_hf; in otx2_nix_rss_config() 411 rss_hash_level = ETH_RSS_LEVEL(rss_hf); in otx2_nix_rss_config() 414 flowkey_cfg = otx2_rss_ethdev_to_nix(dev, rss_hf, rss_hash_level); in otx2_nix_rss_config()
|
| /f-stack/dpdk/drivers/net/hns3/ |
| H A D | hns3_rss.c | 343 struct hns3_rss_tuple_cfg *tuple, uint64_t rss_hf) in hns3_set_rss_tuple_by_rss_hf() argument 356 if ((rss_hf & hns3_set_tuple_table[i].rss_types) == in hns3_set_rss_tuple_by_rss_hf() 375 if ((rss_hf & hns3_set_rss_types[i].rss_types) == in hns3_set_rss_tuple_by_rss_hf() 411 uint64_t rss_hf = rss_conf->rss_hf; in hns3_dev_rss_hash_update() local 419 ret = hns3_set_rss_tuple_by_rss_hf(hw, tuple, rss_hf); in hns3_dev_rss_hash_update() 423 if (rss_cfg->conf.types && rss_hf == 0) { in hns3_dev_rss_hash_update() 428 } else if (rss_hf && rss_cfg->conf.types == 0) { in hns3_dev_rss_hash_update() 437 rss_cfg->conf.types = rss_hf; in hns3_dev_rss_hash_update() 477 rss_conf->rss_hf = rss_cfg->conf.types; in hns3_dev_rss_hash_conf_get()
|
| /f-stack/dpdk/drivers/net/netvsc/ |
| H A D | hn_ethdev.c | 356 if (rss_conf->rss_hf & ETH_RSS_IPV4) in hn_rss_hash_init() 360 if (rss_conf->rss_hf & ETH_RSS_IPV6) in hn_rss_hash_init() 362 if (rss_conf->rss_hf & ETH_RSS_IPV6_EX) in hn_rss_hash_init() 366 if (rss_conf->rss_hf & ETH_RSS_IPV6_TCP_EX) in hn_rss_hash_init() 390 if (rss_conf->rss_hf != 0) { in hn_rss_hash_update() 419 rss_conf->rss_hf = 0; in hn_rss_hash_conf_get() 421 rss_conf->rss_hf |= ETH_RSS_IPV4; in hn_rss_hash_conf_get() 427 rss_conf->rss_hf |= ETH_RSS_IPV6; in hn_rss_hash_conf_get() 430 rss_conf->rss_hf |= ETH_RSS_IPV6_EX; in hn_rss_hash_conf_get() 436 rss_conf->rss_hf |= ETH_RSS_IPV6_TCP_EX; in hn_rss_hash_conf_get() [all …]
|
| /f-stack/dpdk/drivers/net/ionic/ |
| H A D | ionic_ethdev.c | 636 uint64_t rss_hf = 0; in ionic_dev_rss_hash_conf_get() local 652 rss_hf |= ETH_RSS_IPV4; in ionic_dev_rss_hash_conf_get() 654 rss_hf |= ETH_RSS_NONFRAG_IPV4_TCP; in ionic_dev_rss_hash_conf_get() 656 rss_hf |= ETH_RSS_NONFRAG_IPV4_UDP; in ionic_dev_rss_hash_conf_get() 658 rss_hf |= ETH_RSS_IPV6; in ionic_dev_rss_hash_conf_get() 660 rss_hf |= ETH_RSS_NONFRAG_IPV6_TCP; in ionic_dev_rss_hash_conf_get() 662 rss_hf |= ETH_RSS_NONFRAG_IPV6_UDP; in ionic_dev_rss_hash_conf_get() 664 rss_conf->rss_hf = rss_hf; in ionic_dev_rss_hash_conf_get() 694 if (rss_conf->rss_hf & ETH_RSS_IPV4) in ionic_dev_rss_hash_update() 696 if (rss_conf->rss_hf & ETH_RSS_NONFRAG_IPV4_TCP) in ionic_dev_rss_hash_update() [all …]
|
| /f-stack/dpdk/drivers/net/e1000/ |
| H A D | igb_rxtx.c | 1948 uint64_t rss_hf; in igb_hw_rss_hash_set() local 1964 rss_hf = rss_conf->rss_hf; in igb_hw_rss_hash_set() 1966 if (rss_hf & ETH_RSS_IPV4) in igb_hw_rss_hash_set() 1993 uint64_t rss_hf; in eth_igb_rss_hash_update() local 2003 rss_hf = rss_conf->rss_hf & IGB_RSS_OFFLOAD_ALL; in eth_igb_rss_hash_update() 2024 uint64_t rss_hf; in eth_igb_rss_hash_conf_get() local 2043 rss_conf->rss_hf = 0; in eth_igb_rss_hash_conf_get() 2046 rss_hf = 0; in eth_igb_rss_hash_conf_get() 2048 rss_hf |= ETH_RSS_IPV4; in eth_igb_rss_hash_conf_get() 2052 rss_hf |= ETH_RSS_IPV6; in eth_igb_rss_hash_conf_get() [all …]
|
| /f-stack/dpdk/examples/multi_process/symmetric_mp/ |
| H A D | main.c | 186 .rss_hf = ETH_RSS_IP, in smp_port_init() 225 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in smp_port_init() 226 port_conf.rx_adv_conf.rss_conf.rss_hf &= info.flow_type_rss_offloads; in smp_port_init() 227 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in smp_port_init() 232 port_conf.rx_adv_conf.rss_conf.rss_hf); in smp_port_init()
|
| /f-stack/dpdk/app/test-eventdev/ |
| H A D | test_pipeline_common.c | 179 .rss_hf = ETH_RSS_IP, in pipeline_ethdev_setup() 229 local_port_conf.rx_adv_conf.rss_conf.rss_hf &= in pipeline_ethdev_setup() 231 if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != in pipeline_ethdev_setup() 232 port_conf.rx_adv_conf.rss_conf.rss_hf) { in pipeline_ethdev_setup() 236 port_conf.rx_adv_conf.rss_conf.rss_hf, in pipeline_ethdev_setup() 237 local_port_conf.rx_adv_conf.rss_conf.rss_hf); in pipeline_ethdev_setup()
|
| /f-stack/dpdk/drivers/net/hinic/ |
| H A D | hinic_pmd_rx.c | 505 u64 rss_hf = rss_conf->rss_hf; in hinic_fill_rss_type() local 507 rss_type->ipv4 = (rss_hf & (ETH_RSS_IPV4 | ETH_RSS_FRAG_IPV4)) ? 1 : 0; in hinic_fill_rss_type() 508 rss_type->tcp_ipv4 = (rss_hf & ETH_RSS_NONFRAG_IPV4_TCP) ? 1 : 0; in hinic_fill_rss_type() 510 rss_type->ipv6_ext = (rss_hf & ETH_RSS_IPV6_EX) ? 1 : 0; in hinic_fill_rss_type() 511 rss_type->tcp_ipv6 = (rss_hf & ETH_RSS_NONFRAG_IPV6_TCP) ? 1 : 0; in hinic_fill_rss_type() 512 rss_type->tcp_ipv6_ext = (rss_hf & ETH_RSS_IPV6_TCP_EX) ? 1 : 0; in hinic_fill_rss_type() 513 rss_type->udp_ipv4 = (rss_hf & ETH_RSS_NONFRAG_IPV4_UDP) ? 1 : 0; in hinic_fill_rss_type() 514 rss_type->udp_ipv6 = (rss_hf & ETH_RSS_NONFRAG_IPV6_UDP) ? 1 : 0; in hinic_fill_rss_type() 666 if (rss_conf.rss_hf == 0) { in hinic_rx_configure() 667 rss_conf.rss_hf = HINIC_RSS_OFFLOAD_ALL; in hinic_rx_configure() [all …]
|
| /f-stack/dpdk/drivers/net/vmxnet3/ |
| H A D | vmxnet3_rxtx.c | 1311 uint64_t rss_hf; in vmxnet3_v4_rss_configure() local 1326 rss_hf = port_rss_conf->rss_hf & in vmxnet3_v4_rss_configure() 1329 if (rss_hf & ETH_RSS_NONFRAG_IPV4_TCP) in vmxnet3_v4_rss_configure() 1331 if (rss_hf & ETH_RSS_NONFRAG_IPV6_TCP) in vmxnet3_v4_rss_configure() 1333 if (rss_hf & ETH_RSS_NONFRAG_IPV4_UDP) in vmxnet3_v4_rss_configure() 1335 if (rss_hf & ETH_RSS_NONFRAG_IPV6_UDP) in vmxnet3_v4_rss_configure() 1358 uint64_t rss_hf; in vmxnet3_rss_configure() local 1391 rss_hf = port_rss_conf->rss_hf & VMXNET3_RSS_OFFLOAD_ALL; in vmxnet3_rss_configure() 1392 if (rss_hf & ETH_RSS_IPV4) in vmxnet3_rss_configure() 1394 if (rss_hf & ETH_RSS_NONFRAG_IPV4_TCP) in vmxnet3_rss_configure() [all …]
|
| /f-stack/dpdk/drivers/net/liquidio/ |
| H A D | lio_ethdev.c | 605 uint64_t rss_hf = 0; in lio_dev_rss_hash_conf_get() local 609 rss_conf->rss_hf = 0; in lio_dev_rss_hash_conf_get() 619 rss_hf |= ETH_RSS_IPV4; in lio_dev_rss_hash_conf_get() 621 rss_hf |= ETH_RSS_NONFRAG_IPV4_TCP; in lio_dev_rss_hash_conf_get() 623 rss_hf |= ETH_RSS_IPV6; in lio_dev_rss_hash_conf_get() 625 rss_hf |= ETH_RSS_NONFRAG_IPV6_TCP; in lio_dev_rss_hash_conf_get() 627 rss_hf |= ETH_RSS_IPV6_EX; in lio_dev_rss_hash_conf_get() 629 rss_hf |= ETH_RSS_IPV6_TCP_EX; in lio_dev_rss_hash_conf_get() 631 rss_conf->rss_hf = rss_hf; in lio_dev_rss_hash_conf_get() 697 if (rss_conf->rss_hf & ETH_RSS_IPV4) { in lio_dev_rss_hash_update() [all …]
|
| /f-stack/dpdk/examples/eventdev_pipeline/ |
| H A D | pipeline_worker_generic.c | 291 .rss_hf = ETH_RSS_IP | in port_init() 325 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init() 327 if (port_conf.rx_adv_conf.rss_conf.rss_hf != in port_init() 328 port_conf_default.rx_adv_conf.rss_conf.rss_hf) { in port_init() 332 port_conf_default.rx_adv_conf.rss_conf.rss_hf, in port_init() 333 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
|
| /f-stack/dpdk/drivers/net/cxgbe/ |
| H A D | cxgbe_ethdev.c | 860 err = cxgbe_write_rss_conf(pi, rss_conf->rss_hf); in cxgbe_dev_rss_hash_update() 864 pi->rss_hf = rss_conf->rss_hf; in cxgbe_dev_rss_hash_update() 888 u64 rss_hf = 0; in cxgbe_dev_rss_hash_conf_get() local 899 rss_hf |= CXGBE_RSS_HF_TCP_IPV6_MASK; in cxgbe_dev_rss_hash_conf_get() 901 rss_hf |= CXGBE_RSS_HF_UDP_IPV6_MASK; in cxgbe_dev_rss_hash_conf_get() 905 rss_hf |= CXGBE_RSS_HF_IPV6_MASK; in cxgbe_dev_rss_hash_conf_get() 908 rss_hf |= ETH_RSS_NONFRAG_IPV4_TCP; in cxgbe_dev_rss_hash_conf_get() 910 rss_hf |= ETH_RSS_NONFRAG_IPV4_UDP; in cxgbe_dev_rss_hash_conf_get() 914 rss_hf |= CXGBE_RSS_HF_IPV4_MASK; in cxgbe_dev_rss_hash_conf_get() 916 rss_conf->rss_hf = rss_hf; in cxgbe_dev_rss_hash_conf_get()
|
| /f-stack/dpdk/examples/vmdq/ |
| H A D | main.c | 149 eth_conf->rx_adv_conf.rss_conf.rss_hf = ETH_RSS_IP | in get_eth_conf() 221 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in port_init() 222 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init() 224 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in port_init() 229 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
|
| /f-stack/dpdk/drivers/net/enic/ |
| H A D | enic_main.c | 1344 if (rss_conf->rss_hf != 0 && in enic_rss_conf_valid() 1345 (rss_conf->rss_hf & enic->flow_type_rss_offloads) == 0) { in enic_rss_conf_valid() 1357 uint64_t rss_hf; in enic_set_rss_conf() local 1371 rss_hf = rss_conf->rss_hf & enic->flow_type_rss_offloads; in enic_set_rss_conf() 1374 rss_hf != 0) { in enic_set_rss_conf() 1376 if (rss_hf & (ETH_RSS_IPV4 | ETH_RSS_FRAG_IPV4 | in enic_set_rss_conf() 1379 if (rss_hf & ETH_RSS_NONFRAG_IPV4_TCP) in enic_set_rss_conf() 1381 if (rss_hf & ETH_RSS_NONFRAG_IPV4_UDP) { in enic_set_rss_conf() 1392 if (rss_hf & (ETH_RSS_IPV6 | ETH_RSS_IPV6_EX | in enic_set_rss_conf() 1404 rss_hf = 0; in enic_set_rss_conf() [all …]
|
| /f-stack/dpdk/lib/librte_ethdev/ |
| H A D | rte_ethdev.h | 457 uint64_t rss_hf; /**< Hash functions to apply - see below. */ member 587 #define ETH_RSS_LEVEL(rss_hf) ((rss_hf & ETH_RSS_LEVEL_MASK) >> 50) argument 600 rte_eth_rss_hf_refine(uint64_t rss_hf) in rte_eth_rss_hf_refine() argument 602 if ((rss_hf & ETH_RSS_L3_SRC_ONLY) && (rss_hf & ETH_RSS_L3_DST_ONLY)) in rte_eth_rss_hf_refine() 603 rss_hf &= ~(ETH_RSS_L3_SRC_ONLY | ETH_RSS_L3_DST_ONLY); in rte_eth_rss_hf_refine() 605 if ((rss_hf & ETH_RSS_L4_SRC_ONLY) && (rss_hf & ETH_RSS_L4_DST_ONLY)) in rte_eth_rss_hf_refine() 606 rss_hf &= ~(ETH_RSS_L4_SRC_ONLY | ETH_RSS_L4_DST_ONLY); in rte_eth_rss_hf_refine() 608 return rss_hf; in rte_eth_rss_hf_refine()
|
| /f-stack/dpdk/examples/vmdq_dcb/ |
| H A D | main.c | 175 eth_conf->rx_adv_conf.rss_conf.rss_hf = ETH_RSS_IP | in get_eth_conf() 275 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in port_init() 276 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init() 278 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in port_init() 283 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
|
| /f-stack/dpdk/drivers/net/nfp/ |
| H A D | nfp_net.c | 2532 uint64_t rss_hf; in nfp_net_rss_hash_write() local 2545 rss_hf = rss_conf->rss_hf; in nfp_net_rss_hash_write() 2547 if (rss_hf & ETH_RSS_IPV4) in nfp_net_rss_hash_write() 2556 if (rss_hf & ETH_RSS_IPV6) in nfp_net_rss_hash_write() 2582 uint64_t rss_hf; in nfp_net_rss_hash_update() local 2587 rss_hf = rss_conf->rss_hf; in nfp_net_rss_hash_update() 2617 uint64_t rss_hf; in nfp_net_rss_hash_conf_get() local 2628 rss_hf = rss_conf->rss_hf; in nfp_net_rss_hash_conf_get() 2635 rss_hf |= ETH_RSS_NONFRAG_IPV4_TCP; in nfp_net_rss_hash_conf_get() 2638 rss_hf |= ETH_RSS_NONFRAG_IPV6_TCP; in nfp_net_rss_hash_conf_get() [all …]
|
| /f-stack/dpdk/examples/distributor/ |
| H A D | main.c | 91 .rss_hf = ETH_RSS_IP | ETH_RSS_UDP | 134 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init() 136 if (port_conf.rx_adv_conf.rss_conf.rss_hf != in port_init() 137 port_conf_default.rx_adv_conf.rss_conf.rss_hf) { in port_init() 141 port_conf_default.rx_adv_conf.rss_conf.rss_hf, in port_init() 142 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
|
| /f-stack/dpdk/examples/bond/ |
| H A D | main.c | 126 .rss_hf = ETH_RSS_IP, 158 local_port_conf.rx_adv_conf.rss_conf.rss_hf &= in slave_port_init() 160 if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != in slave_port_init() 161 port_conf.rx_adv_conf.rss_conf.rss_hf) { in slave_port_init() 165 port_conf.rx_adv_conf.rss_conf.rss_hf, in slave_port_init() 166 local_port_conf.rx_adv_conf.rss_conf.rss_hf); in slave_port_init()
|
| /f-stack/dpdk/drivers/net/igc/ |
| H A D | igc_txrx.c | 855 uint64_t rss_hf; in igc_hw_rss_hash_set() local 866 rss_hf = rss_conf->rss_hf; in igc_hw_rss_hash_set() 868 if (rss_hf & ETH_RSS_IPV4) in igc_hw_rss_hash_set() 870 if (rss_hf & ETH_RSS_NONFRAG_IPV4_TCP) in igc_hw_rss_hash_set() 872 if (rss_hf & ETH_RSS_IPV6) in igc_hw_rss_hash_set() 874 if (rss_hf & ETH_RSS_IPV6_EX) in igc_hw_rss_hash_set() 876 if (rss_hf & ETH_RSS_NONFRAG_IPV6_TCP) in igc_hw_rss_hash_set() 878 if (rss_hf & ETH_RSS_IPV6_TCP_EX) in igc_hw_rss_hash_set() 884 if (rss_hf & ETH_RSS_IPV6_UDP_EX) in igc_hw_rss_hash_set() 974 .rss_hf = rss->conf.types, in igc_add_rss_filter() [all …]
|