| /dpdk/drivers/net/ena/ |
| H A D | ena_rss.c | 38 uint64_t rss_hf); 193 uint64_t rss_hf = 0; in ena_admin_hf_to_eth_hf() local 214 rss_hf |= RTE_ETH_RSS_IPV4; in ena_admin_hf_to_eth_hf() 217 rss_hf |= RTE_ETH_RSS_IPV6; in ena_admin_hf_to_eth_hf() 220 rss_hf |= RTE_ETH_RSS_FRAG_IPV4; in ena_admin_hf_to_eth_hf() 229 rss_hf |= RTE_ETH_RSS_IPV6_EX; in ena_admin_hf_to_eth_hf() 259 return rss_hf; in ena_admin_hf_to_eth_hf() 263 uint64_t rss_hf) in ena_eth_hf_to_admin_hf() argument 539 uint64_t rss_hf = 0; in ena_rss_hash_conf_get() local 576 rss_hf = ENA_ALL_RSS_HF; in ena_rss_hash_conf_get() [all …]
|
| /dpdk/examples/qos_meter/ |
| H A D | main.c | 61 .rss_hf = RTE_ETH_RSS_IP, 338 conf.rx_adv_conf.rss_conf.rss_hf &= dev_info.flow_type_rss_offloads; in main() 339 if (conf.rx_adv_conf.rss_conf.rss_hf != in main() 340 port_conf.rx_adv_conf.rss_conf.rss_hf) { in main() 344 port_conf.rx_adv_conf.rss_conf.rss_hf, in main() 345 conf.rx_adv_conf.rss_conf.rss_hf); in main() 384 conf.rx_adv_conf.rss_conf.rss_hf &= dev_info.flow_type_rss_offloads; in main() 385 if (conf.rx_adv_conf.rss_conf.rss_hf != in main() 386 port_conf.rx_adv_conf.rss_conf.rss_hf) { in main() 390 port_conf.rx_adv_conf.rss_conf.rss_hf, in main() [all …]
|
| /dpdk/drivers/net/nfp/ |
| H A D | nfp_common.c | 1133 uint64_t rss_hf; in nfp_net_rss_hash_write() local 1146 rss_hf = rss_conf->rss_hf; in nfp_net_rss_hash_write() 1148 if (rss_hf & RTE_ETH_RSS_IPV4) in nfp_net_rss_hash_write() 1157 if (rss_hf & RTE_ETH_RSS_IPV6) in nfp_net_rss_hash_write() 1183 uint64_t rss_hf; in nfp_net_rss_hash_update() local 1188 rss_hf = rss_conf->rss_hf; in nfp_net_rss_hash_update() 1192 if (rss_hf != 0) { /* Enable RSS? */ in nfp_net_rss_hash_update() 1218 uint64_t rss_hf; in nfp_net_rss_hash_conf_get() local 1229 rss_hf = rss_conf->rss_hf; in nfp_net_rss_hash_conf_get() 1236 rss_hf |= RTE_ETH_RSS_NONFRAG_IPV4_TCP; in nfp_net_rss_hash_conf_get() [all …]
|
| /dpdk/examples/l2fwd-event/ |
| H A D | l2fwd_common.c | 27 port_conf.rx_adv_conf.rss_conf.rss_hf = RTE_ETH_RSS_IP; in l2fwd_event_init_ports() 52 local_port_conf.rx_adv_conf.rss_conf.rss_hf &= in l2fwd_event_init_ports() 54 if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != in l2fwd_event_init_ports() 55 port_conf.rx_adv_conf.rss_conf.rss_hf) { in l2fwd_event_init_ports() 59 port_conf.rx_adv_conf.rss_conf.rss_hf, in l2fwd_event_init_ports() 60 local_port_conf.rx_adv_conf.rss_conf.rss_hf); in l2fwd_event_init_ports()
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_rss.c | 40 if (rss_conf->rss_hf & MLX5_RSS_HF_MASK) { in mlx5_rss_hash_update() 65 priv->rss_conf.rss_hf = rss_conf->rss_hf; in mlx5_rss_hash_update() 72 rxq->ctrl->rxq.rss_hash = !!rss_conf->rss_hf && in mlx5_rss_hash_update() 106 rss_conf->rss_hf = priv->rss_conf.rss_hf; in mlx5_rss_hash_conf_get()
|
| /dpdk/drivers/net/hns3/ |
| H A D | hns3_rss.c | 326 if ((rss_hf & hns3_set_tuple_table[i].rss_types) == in hns3_set_rss_tuple_by_rss_hf() 345 if ((rss_hf & hns3_set_rss_types[i].rss_types) == in hns3_set_rss_tuple_by_rss_hf() 359 hw->rss_info.conf.types = rss_hf; in hns3_set_rss_tuple_by_rss_hf() 380 uint64_t rss_hf = rss_conf->rss_hf; in hns3_dev_rss_hash_update() local 391 ret = hns3_set_rss_tuple_by_rss_hf(hw, rss_hf); in hns3_dev_rss_hash_update() 429 rss_conf->rss_hf = rss_cfg->conf.types; in hns3_dev_rss_hash_conf_get() 656 uint64_t rss_hf; in hns3_config_rss() local 691 rss_hf = hw->rss_info.conf.types; in hns3_config_rss() 693 !(rss_hf & HNS3_ETH_RSS_SUPPORT)) in hns3_config_rss() 694 rss_hf = 0; in hns3_config_rss() [all …]
|
| /dpdk/app/test/ |
| H A D | test_link_bonding_rssconf.c | 103 .rss_hf = RTE_ETH_RSS_IPV6, 332 uint64_t rss_hf = 0; in test_propagate() local 347 rss_hf = test_params.bond_dev_info.flow_type_rss_offloads & (1<<i); in test_propagate() 348 if (rss_hf) { in test_propagate() 350 bond_rss_conf.rss_hf = rss_hf; in test_propagate() 364 TEST_ASSERT(port->rss_conf.rss_hf == rss_hf, in test_propagate() 369 default_rss_hf = rss_hf; in test_propagate() 389 bond_rss_conf.rss_hf = default_rss_hf, in test_propagate()
|
| /dpdk/drivers/net/ionic/ |
| H A D | ionic_ethdev.c | 605 uint64_t rss_hf = 0; in ionic_dev_rss_hash_conf_get() local 621 rss_hf |= RTE_ETH_RSS_IPV4; in ionic_dev_rss_hash_conf_get() 623 rss_hf |= RTE_ETH_RSS_NONFRAG_IPV4_TCP; in ionic_dev_rss_hash_conf_get() 625 rss_hf |= RTE_ETH_RSS_NONFRAG_IPV4_UDP; in ionic_dev_rss_hash_conf_get() 627 rss_hf |= RTE_ETH_RSS_IPV6; in ionic_dev_rss_hash_conf_get() 629 rss_hf |= RTE_ETH_RSS_NONFRAG_IPV6_TCP; in ionic_dev_rss_hash_conf_get() 631 rss_hf |= RTE_ETH_RSS_NONFRAG_IPV6_UDP; in ionic_dev_rss_hash_conf_get() 633 rss_conf->rss_hf = rss_hf; in ionic_dev_rss_hash_conf_get() 663 if (rss_conf->rss_hf & RTE_ETH_RSS_IPV4) in ionic_dev_rss_hash_update() 665 if (rss_conf->rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_TCP) in ionic_dev_rss_hash_update() [all …]
|
| /dpdk/drivers/net/e1000/ |
| H A D | igb_rxtx.c | 1934 uint64_t rss_hf; in igb_hw_rss_hash_set() local 1950 rss_hf = rss_conf->rss_hf; in igb_hw_rss_hash_set() 1979 uint64_t rss_hf; in eth_igb_rss_hash_update() local 1989 rss_hf = rss_conf->rss_hf & IGB_RSS_OFFLOAD_ALL; in eth_igb_rss_hash_update() 2010 uint64_t rss_hf; in eth_igb_rss_hash_conf_get() local 2029 rss_conf->rss_hf = 0; in eth_igb_rss_hash_conf_get() 2032 rss_hf = 0; in eth_igb_rss_hash_conf_get() 2034 rss_hf |= RTE_ETH_RSS_IPV4; in eth_igb_rss_hash_conf_get() 2038 rss_hf |= RTE_ETH_RSS_IPV6; in eth_igb_rss_hash_conf_get() 2051 rss_conf->rss_hf = rss_hf; in eth_igb_rss_hash_conf_get() [all …]
|
| /dpdk/examples/l3fwd/ |
| H A D | l3fwd_event.c | 80 local_port_conf.rx_adv_conf.rss_conf.rss_hf &= in l3fwd_eth_dev_port_setup() 82 if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != in l3fwd_eth_dev_port_setup() 83 port_conf->rx_adv_conf.rss_conf.rss_hf) { in l3fwd_eth_dev_port_setup() 88 port_conf->rx_adv_conf.rss_conf.rss_hf, in l3fwd_eth_dev_port_setup() 89 local_port_conf.rx_adv_conf.rss_conf.rss_hf); in l3fwd_eth_dev_port_setup()
|
| /dpdk/drivers/net/netvsc/ |
| H A D | hn_ethdev.c | 365 if (rss_conf->rss_hf & RTE_ETH_RSS_IPV4) in hn_rss_hash_init() 369 if (rss_conf->rss_hf & RTE_ETH_RSS_IPV6) in hn_rss_hash_init() 371 if (rss_conf->rss_hf & RTE_ETH_RSS_IPV6_EX) in hn_rss_hash_init() 375 if (rss_conf->rss_hf & RTE_ETH_RSS_IPV6_TCP_EX) in hn_rss_hash_init() 399 if (rss_conf->rss_hf != 0) { in hn_rss_hash_update() 428 rss_conf->rss_hf = 0; in hn_rss_hash_conf_get() 430 rss_conf->rss_hf |= RTE_ETH_RSS_IPV4; in hn_rss_hash_conf_get() 436 rss_conf->rss_hf |= RTE_ETH_RSS_IPV6; in hn_rss_hash_conf_get() 439 rss_conf->rss_hf |= RTE_ETH_RSS_IPV6_EX; in hn_rss_hash_conf_get() 445 rss_conf->rss_hf |= RTE_ETH_RSS_IPV6_TCP_EX; in hn_rss_hash_conf_get() [all …]
|
| /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 & (RTE_ETH_RSS_IPV4 | RTE_ETH_RSS_FRAG_IPV4)) ? 1 : 0; in hinic_fill_rss_type() 508 rss_type->tcp_ipv4 = (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_TCP) ? 1 : 0; in hinic_fill_rss_type() 510 rss_type->ipv6_ext = (rss_hf & RTE_ETH_RSS_IPV6_EX) ? 1 : 0; in hinic_fill_rss_type() 511 rss_type->tcp_ipv6 = (rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_TCP) ? 1 : 0; in hinic_fill_rss_type() 512 rss_type->tcp_ipv6_ext = (rss_hf & RTE_ETH_RSS_IPV6_TCP_EX) ? 1 : 0; in hinic_fill_rss_type() 513 rss_type->udp_ipv4 = (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_UDP) ? 1 : 0; in hinic_fill_rss_type() 514 rss_type->udp_ipv6 = (rss_hf & RTE_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 …]
|
| /dpdk/drivers/net/vmxnet3/ |
| H A D | vmxnet3_rxtx.c | 1313 uint64_t rss_hf; in vmxnet3_v4_rss_configure() local 1328 rss_hf = port_rss_conf->rss_hf & in vmxnet3_v4_rss_configure() 1331 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_TCP) in vmxnet3_v4_rss_configure() 1333 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_TCP) in vmxnet3_v4_rss_configure() 1335 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_UDP) in vmxnet3_v4_rss_configure() 1337 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_UDP) in vmxnet3_v4_rss_configure() 1360 uint64_t rss_hf; in vmxnet3_rss_configure() local 1393 rss_hf = port_rss_conf->rss_hf & VMXNET3_RSS_OFFLOAD_ALL; in vmxnet3_rss_configure() 1394 if (rss_hf & RTE_ETH_RSS_IPV4) in vmxnet3_rss_configure() 1396 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_TCP) in vmxnet3_rss_configure() [all …]
|
| /dpdk/examples/multi_process/symmetric_mp/ |
| H A D | main.c | 185 .rss_hf = RTE_ETH_RSS_IP, in smp_port_init() 224 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in smp_port_init() 225 port_conf.rx_adv_conf.rss_conf.rss_hf &= info.flow_type_rss_offloads; in smp_port_init() 226 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in smp_port_init() 231 port_conf.rx_adv_conf.rss_conf.rss_hf); in smp_port_init()
|
| /dpdk/drivers/net/liquidio/ |
| H A D | lio_ethdev.c | 584 uint64_t rss_hf = 0; in lio_dev_rss_hash_conf_get() local 588 rss_conf->rss_hf = 0; in lio_dev_rss_hash_conf_get() 598 rss_hf |= RTE_ETH_RSS_IPV4; in lio_dev_rss_hash_conf_get() 600 rss_hf |= RTE_ETH_RSS_NONFRAG_IPV4_TCP; in lio_dev_rss_hash_conf_get() 602 rss_hf |= RTE_ETH_RSS_IPV6; in lio_dev_rss_hash_conf_get() 604 rss_hf |= RTE_ETH_RSS_NONFRAG_IPV6_TCP; in lio_dev_rss_hash_conf_get() 606 rss_hf |= RTE_ETH_RSS_IPV6_EX; in lio_dev_rss_hash_conf_get() 608 rss_hf |= RTE_ETH_RSS_IPV6_TCP_EX; in lio_dev_rss_hash_conf_get() 610 rss_conf->rss_hf = rss_hf; in lio_dev_rss_hash_conf_get() 676 if (rss_conf->rss_hf & RTE_ETH_RSS_IPV4) { in lio_dev_rss_hash_update() [all …]
|
| /dpdk/drivers/net/txgbe/ |
| H A D | txgbe_rxtx.c | 2877 uint64_t rss_hf; in txgbe_dev_rss_hash_update() local 2899 rss_hf = rss_conf->rss_hf & TXGBE_RSS_OFFLOAD_ALL; in txgbe_dev_rss_hash_update() 2919 if (rss_hf) in txgbe_dev_rss_hash_update() 2949 if (rss_hf) in txgbe_dev_rss_hash_update() 2968 uint64_t rss_hf; in txgbe_dev_rss_hash_conf_get() local 2983 rss_hf = 0; in txgbe_dev_rss_hash_conf_get() 2987 rss_hf |= RTE_ETH_RSS_IPV4; in txgbe_dev_rss_hash_conf_get() 3002 rss_hf = 0; in txgbe_dev_rss_hash_conf_get() 3021 rss_hf = 0; in txgbe_dev_rss_hash_conf_get() 3026 rss_conf->rss_hf = rss_hf; in txgbe_dev_rss_hash_conf_get() [all …]
|
| /dpdk/drivers/net/iavf/ |
| H A D | iavf_hash.c | 689 iavf_rss_hash_set(struct iavf_adapter *ad, uint64_t rss_hf, bool add) in iavf_rss_hash_set() argument 705 if (rss_hf & RTE_ETH_RSS_IPV4) { in iavf_rss_hash_set() 710 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_UDP) { in iavf_rss_hash_set() 715 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_TCP) { in iavf_rss_hash_set() 720 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_SCTP) { in iavf_rss_hash_set() 725 if (rss_hf & RTE_ETH_RSS_IPV6) { in iavf_rss_hash_set() 730 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_UDP) { in iavf_rss_hash_set() 735 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_TCP) { in iavf_rss_hash_set() 740 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_SCTP) { in iavf_rss_hash_set() 745 vf->rss_hf = rss_hf & IAVF_RSS_HF_ALL; in iavf_rss_hash_set() [all …]
|
| H A D | iavf_ethdev.c | 450 if (rss_hf & RTE_ETH_RSS_IPV4) in iavf_config_rss_hf() 451 rss_hf |= ipv4_rss; in iavf_config_rss_hf() 453 if (rss_hf & RTE_ETH_RSS_IPV6) in iavf_config_rss_hf() 454 rss_hf |= ipv6_rss; in iavf_config_rss_hf() 479 valid_rss_hf |= rss_hf & RTE_ETH_RSS_IPV4; in iavf_config_rss_hf() 484 if (rss_hf & ~valid_rss_hf) in iavf_config_rss_hf() 486 rss_hf & ~valid_rss_hf); in iavf_config_rss_hf() 488 vf->rss_hf = valid_rss_hf; in iavf_config_rss_hf() 1544 if (rss_conf->rss_hf == 0) { in iavf_dev_rss_hash_update() 1545 vf->rss_hf = 0; in iavf_dev_rss_hash_update() [all …]
|
| /dpdk/examples/eventdev_pipeline/ |
| H A D | pipeline_worker_generic.c | 294 .rss_hf = RTE_ETH_RSS_IP | in port_init() 328 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init() 330 if (port_conf.rx_adv_conf.rss_conf.rss_hf != in port_init() 331 port_conf_default.rx_adv_conf.rss_conf.rss_hf) { in port_init() 335 port_conf_default.rx_adv_conf.rss_conf.rss_hf, in port_init() 336 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
|
| /dpdk/drivers/net/enic/ |
| H A D | enic_main.c | 1359 if (rss_conf->rss_hf != 0 && in enic_rss_conf_valid() 1360 (rss_conf->rss_hf & enic->flow_type_rss_offloads) == 0) { in enic_rss_conf_valid() 1372 uint64_t rss_hf; in enic_set_rss_conf() local 1386 rss_hf = rss_conf->rss_hf & enic->flow_type_rss_offloads; in enic_set_rss_conf() 1389 rss_hf != 0) { in enic_set_rss_conf() 1391 if (rss_hf & (RTE_ETH_RSS_IPV4 | RTE_ETH_RSS_FRAG_IPV4 | in enic_set_rss_conf() 1394 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_TCP) in enic_set_rss_conf() 1396 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_UDP) { in enic_set_rss_conf() 1407 if (rss_hf & (RTE_ETH_RSS_IPV6 | RTE_ETH_RSS_IPV6_EX | in enic_set_rss_conf() 1419 rss_hf = 0; in enic_set_rss_conf() [all …]
|
| /dpdk/examples/vmdq/ |
| H A D | main.c | 160 eth_conf->rx_adv_conf.rss_conf.rss_hf = RTE_ETH_RSS_IP | in get_eth_conf() 232 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in port_init() 233 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init() 235 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in port_init() 240 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
|
| /dpdk/app/test-eventdev/ |
| H A D | test_pipeline_common.c | 184 .rss_hf = RTE_ETH_RSS_IP, in pipeline_ethdev_setup() 243 local_port_conf.rx_adv_conf.rss_conf.rss_hf &= in pipeline_ethdev_setup() 245 if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != in pipeline_ethdev_setup() 246 port_conf.rx_adv_conf.rss_conf.rss_hf) { in pipeline_ethdev_setup() 250 port_conf.rx_adv_conf.rss_conf.rss_hf, in pipeline_ethdev_setup() 251 local_port_conf.rx_adv_conf.rss_conf.rss_hf); in pipeline_ethdev_setup()
|
| /dpdk/drivers/net/ngbe/ |
| H A D | ngbe_rxtx.c | 2539 uint64_t rss_hf; in ngbe_dev_rss_hash_update() local 2561 rss_hf = rss_conf->rss_hf & NGBE_RSS_OFFLOAD_ALL; in ngbe_dev_rss_hash_update() 2565 if (rss_hf & RTE_ETH_RSS_IPV4) in ngbe_dev_rss_hash_update() 2581 if (rss_hf) in ngbe_dev_rss_hash_update() 2599 uint64_t rss_hf; in ngbe_dev_rss_hash_conf_get() local 2614 rss_hf = 0; in ngbe_dev_rss_hash_conf_get() 2618 rss_hf |= RTE_ETH_RSS_IPV4; in ngbe_dev_rss_hash_conf_get() 2622 rss_hf |= RTE_ETH_RSS_IPV6 | in ngbe_dev_rss_hash_conf_get() 2633 rss_hf = 0; in ngbe_dev_rss_hash_conf_get() 2635 rss_hf &= NGBE_RSS_OFFLOAD_ALL; in ngbe_dev_rss_hash_conf_get() [all …]
|
| /dpdk/examples/vmdq_dcb/ |
| H A D | main.c | 176 eth_conf->rx_adv_conf.rss_conf.rss_hf = RTE_ETH_RSS_IP | in get_eth_conf() 277 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in port_init() 278 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init() 280 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in port_init() 285 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
|
| /dpdk/drivers/net/igc/ |
| H A D | igc_txrx.c | 838 uint64_t rss_hf; in igc_hw_rss_hash_set() local 849 rss_hf = rss_conf->rss_hf; in igc_hw_rss_hash_set() 851 if (rss_hf & RTE_ETH_RSS_IPV4) in igc_hw_rss_hash_set() 853 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_TCP) in igc_hw_rss_hash_set() 855 if (rss_hf & RTE_ETH_RSS_IPV6) in igc_hw_rss_hash_set() 857 if (rss_hf & RTE_ETH_RSS_IPV6_EX) in igc_hw_rss_hash_set() 859 if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_TCP) in igc_hw_rss_hash_set() 861 if (rss_hf & RTE_ETH_RSS_IPV6_TCP_EX) in igc_hw_rss_hash_set() 867 if (rss_hf & RTE_ETH_RSS_IPV6_UDP_EX) in igc_hw_rss_hash_set() 957 .rss_hf = rss->conf.types, in igc_add_rss_filter() [all …]
|