| /f-stack/dpdk/drivers/net/mlx5/ |
| H A D | mlx5_rss.c | 43 if (rss_conf->rss_key && rss_conf->rss_key_len) { in mlx5_rss_hash_update() 52 priv->rss_conf.rss_key = mlx5_realloc(priv->rss_conf.rss_key, in mlx5_rss_hash_update() 60 memcpy(priv->rss_conf.rss_key, rss_conf->rss_key, in mlx5_rss_hash_update() 62 priv->rss_conf.rss_key_len = rss_conf->rss_key_len; in mlx5_rss_hash_update() 64 priv->rss_conf.rss_hf = rss_conf->rss_hf; in mlx5_rss_hash_update() 93 if (!rss_conf) { in mlx5_rss_hash_conf_get() 97 if (rss_conf->rss_key && in mlx5_rss_hash_conf_get() 98 (rss_conf->rss_key_len >= priv->rss_conf.rss_key_len)) { in mlx5_rss_hash_conf_get() 99 memcpy(rss_conf->rss_key, priv->rss_conf.rss_key, in mlx5_rss_hash_conf_get() 102 rss_conf->rss_key_len = priv->rss_conf.rss_key_len; in mlx5_rss_hash_conf_get() [all …]
|
| H A D | mlx5_ethdev.c | 67 !!dev->data->dev_conf.rx_adv_conf.rss_conf.rss_key; in mlx5_dev_configure() 71 (dev->data->dev_conf.rx_adv_conf.rss_conf.rss_key_len != in mlx5_dev_configure() 78 priv->rss_conf.rss_key = in mlx5_dev_configure() 79 mlx5_realloc(priv->rss_conf.rss_key, MLX5_MEM_RTE, in mlx5_dev_configure() 81 if (!priv->rss_conf.rss_key) { in mlx5_dev_configure() 95 memcpy(priv->rss_conf.rss_key, in mlx5_dev_configure() 97 dev->data->dev_conf.rx_adv_conf.rss_conf.rss_key : in mlx5_dev_configure() 100 priv->rss_conf.rss_key_len = MLX5_RSS_HASH_KEY_LEN; in mlx5_dev_configure() 101 priv->rss_conf.rss_hf = dev->data->dev_conf.rx_adv_conf.rss_conf.rss_hf; in mlx5_dev_configure()
|
| /f-stack/dpdk/examples/l2fwd-event/ |
| H A D | l2fwd_common.c | 27 port_conf.rx_adv_conf.rss_conf.rss_key = NULL; in l2fwd_event_init_ports() 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/drivers/net/octeontx2/ |
| H A D | otx2_rss.c | 326 struct rte_eth_rss_conf *rss_conf) in otx2_nix_rss_hash_update() argument 336 if (rss_conf->rss_key && rss_conf->rss_key_len != NIX_HASH_KEY_SIZE) { in otx2_nix_rss_hash_update() 338 rss_conf->rss_key_len, NIX_HASH_KEY_SIZE); in otx2_nix_rss_hash_update() 342 if (rss_conf->rss_key) in otx2_nix_rss_hash_update() 343 otx2_nix_rss_set_key(dev, rss_conf->rss_key, in otx2_nix_rss_hash_update() 344 (uint32_t)rss_conf->rss_key_len); in otx2_nix_rss_hash_update() 368 struct rte_eth_rss_conf *rss_conf) in otx2_nix_rss_hash_conf_get() argument 372 if (rss_conf->rss_key) in otx2_nix_rss_hash_conf_get() 373 rss_get_key(dev, rss_conf->rss_key); in otx2_nix_rss_hash_conf_get() 375 rss_conf->rss_key_len = NIX_HASH_KEY_SIZE; in otx2_nix_rss_hash_conf_get() [all …]
|
| /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() 388 hn_rss_hash_init(hv, rss_conf); in hn_rss_hash_update() 390 if (rss_conf->rss_hf != 0) { in hn_rss_hash_update() 415 if (rss_conf->rss_key) in hn_rss_hash_conf_get() 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() 548 struct rte_eth_rss_conf *rss_conf = &dev_conf->rx_adv_conf.rss_conf; in hn_dev_configure() local 592 hn_rss_hash_init(hv, rss_conf); in hn_dev_configure() [all …]
|
| /f-stack/dpdk/examples/qos_meter/ |
| H A D | main.c | 62 .rss_conf = { 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/app/test/ |
| H A D | test_link_bonding_rssconf.c | 53 struct rte_eth_rss_conf rss_conf; member 103 .rss_conf = { 358 &port->rss_conf); in test_propagate() 362 TEST_ASSERT(port->rss_conf.rss_hf == rss_hf, in test_propagate() 380 memset(port->rss_conf.rss_key, 0, 40); in test_propagate() 382 &port->rss_conf); in test_propagate() 399 &(port->rss_conf)); in test_propagate() 405 retval = memcmp(port->rss_conf.rss_key, bond_rss_key, in test_propagate() 540 port->rss_conf.rss_key = port->rss_key; in test_setup() 541 port->rss_conf.rss_key_len = 40; in test_setup()
|
| /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/null/ |
| H A D | rte_eth_null.c | 421 eth_rss_hash_update(struct rte_eth_dev *dev, struct rte_eth_rss_conf *rss_conf) in eth_rss_hash_update() argument 427 if ((rss_conf->rss_hf & internal->flow_type_rss_offloads) != 0) in eth_rss_hash_update() 428 dev->data->dev_conf.rx_adv_conf.rss_conf.rss_hf = in eth_rss_hash_update() 429 rss_conf->rss_hf & internal->flow_type_rss_offloads; in eth_rss_hash_update() 431 if (rss_conf->rss_key) in eth_rss_hash_update() 432 rte_memcpy(internal->rss_key, rss_conf->rss_key, 40); in eth_rss_hash_update() 441 struct rte_eth_rss_conf *rss_conf) in eth_rss_hash_conf_get() argument 447 rss_conf->rss_hf = dev->data->dev_conf.rx_adv_conf.rss_conf.rss_hf; in eth_rss_hash_conf_get() 448 if (rss_conf->rss_key) in eth_rss_hash_conf_get() 449 rte_memcpy(rss_conf->rss_key, internal->rss_key, 40); in eth_rss_hash_conf_get()
|
| /f-stack/dpdk/drivers/net/ionic/ |
| H A D | ionic_ethdev.c | 43 struct rte_eth_rss_conf *rss_conf); 45 struct rte_eth_rss_conf *rss_conf); 633 struct rte_eth_rss_conf *rss_conf) in ionic_dev_rss_hash_conf_get() argument 646 if (rss_conf->rss_key != NULL && in ionic_dev_rss_hash_conf_get() 648 memcpy(rss_conf->rss_key, lif->rss_hash_key, in ionic_dev_rss_hash_conf_get() 664 rss_conf->rss_hf = rss_hf; in ionic_dev_rss_hash_conf_get() 671 struct rte_eth_rss_conf *rss_conf) in ionic_dev_rss_hash_update() argument 679 if (rss_conf->rss_key) in ionic_dev_rss_hash_update() 680 key = rss_conf->rss_key; in ionic_dev_rss_hash_update() 694 if (rss_conf->rss_hf & ETH_RSS_IPV4) in ionic_dev_rss_hash_update() [all …]
|
| /f-stack/dpdk/drivers/net/hns3/ |
| H A D | hns3_rss.c | 404 struct rte_eth_rss_conf *rss_conf) in hns3_dev_rss_hash_update() argument 410 uint8_t key_len = rss_conf->rss_key_len; in hns3_dev_rss_hash_update() 411 uint64_t rss_hf = rss_conf->rss_hf; in hns3_dev_rss_hash_update() 412 uint8_t *key = rss_conf->rss_key; in hns3_dev_rss_hash_update() 470 struct rte_eth_rss_conf *rss_conf) in hns3_dev_rss_hash_conf_get() argument 477 rss_conf->rss_hf = rss_cfg->conf.types; in hns3_dev_rss_hash_conf_get() 480 if (rss_conf->rss_key && rss_conf->rss_key_len >= HNS3_RSS_KEY_SIZE) { in hns3_dev_rss_hash_conf_get() 481 memcpy(rss_conf->rss_key, rss_cfg->key, HNS3_RSS_KEY_SIZE); in hns3_dev_rss_hash_conf_get() 482 rss_conf->rss_key_len = HNS3_RSS_KEY_SIZE; in hns3_dev_rss_hash_conf_get()
|
| H A D | hns3_rss.h | 96 struct rte_eth_rss_conf *rss_conf); 98 struct rte_eth_rss_conf *rss_conf);
|
| /f-stack/dpdk/drivers/net/liquidio/ |
| H A D | lio_ethdev.c | 600 struct rte_eth_rss_conf *rss_conf) in lio_dev_rss_hash_conf_get() argument 609 rss_conf->rss_hf = 0; in lio_dev_rss_hash_conf_get() 614 hash_key = rss_conf->rss_key; in lio_dev_rss_hash_conf_get() 631 rss_conf->rss_hf = rss_hf; in lio_dev_rss_hash_conf_get() 638 struct rte_eth_rss_conf *rss_conf) in lio_dev_rss_hash_update() argument 671 if (rss_conf->rss_key) { in lio_dev_rss_hash_update() 1086 struct rte_eth_rss_conf rss_conf; in lio_dev_rss_configure() local 1092 rss_conf = eth_dev->data->dev_conf.rx_adv_conf.rss_conf; in lio_dev_rss_configure() 1099 if (rss_conf.rss_key == NULL) in lio_dev_rss_configure() 1124 struct rte_eth_rss_conf rss_conf; in lio_dev_mq_rx_configure() local [all …]
|
| /f-stack/dpdk/drivers/net/hinic/ |
| H A D | hinic_pmd_rx.c | 483 struct rte_eth_rss_conf *rss_conf) in hinic_rss_key_init() argument 494 if (rss_conf->rss_key == NULL) in hinic_rss_key_init() 497 memcpy(hashkey, rss_conf->rss_key, rss_conf->rss_key_len); in hinic_rss_key_init() 503 struct rte_eth_rss_conf *rss_conf) in hinic_fill_rss_type() argument 505 u64 rss_hf = rss_conf->rss_hf; in hinic_fill_rss_type() 536 struct rte_eth_rss_conf *rss_conf) in hinic_rss_init() argument 558 hinic_fill_rss_type(&rss_type, rss_conf); in hinic_rss_init() 657 struct rte_eth_rss_conf rss_conf = in hinic_rx_configure() local 658 dev->data->dev_conf.rx_adv_conf.rss_conf; in hinic_rx_configure() 666 if (rss_conf.rss_hf == 0) { in hinic_rx_configure() [all …]
|
| /f-stack/dpdk/examples/multi_process/symmetric_mp/ |
| H A D | main.c | 184 .rss_conf = { 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 | 177 .rss_conf = { 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/enic/ |
| H A D | enic_main.c | 1271 struct rte_eth_rss_conf rss_conf; in enic_init_rss_nic_cfg() local 1275 rss_conf = enic->rte_dev->data->dev_conf.rx_adv_conf.rss_conf; in enic_init_rss_nic_cfg() 1280 if (rss_conf.rss_key == NULL) { in enic_init_rss_nic_cfg() 1281 rss_conf.rss_key = default_rss_key; in enic_init_rss_nic_cfg() 1284 ret = enic_set_rss_conf(enic, &rss_conf); in enic_init_rss_nic_cfg() 1333 struct rte_eth_rss_conf *rss_conf) in enic_rss_conf_valid() argument 1338 if (rss_conf->rss_key != NULL && in enic_rss_conf_valid() 1344 if (rss_conf->rss_hf != 0 && in enic_rss_conf_valid() 1362 RTE_ASSERT(rss_conf != NULL); in enic_set_rss_conf() 1363 ret = enic_rss_conf_valid(enic, rss_conf); in enic_set_rss_conf() [all …]
|
| H A D | enic_ethdev.c | 836 struct rte_eth_rss_conf *rss_conf) in enicpmd_dev_rss_hash_update() argument 841 return enic_set_rss_conf(enic, rss_conf); in enicpmd_dev_rss_hash_update() 845 struct rte_eth_rss_conf *rss_conf) in enicpmd_dev_rss_hash_conf_get() argument 850 if (rss_conf == NULL) in enicpmd_dev_rss_hash_conf_get() 852 if (rss_conf->rss_key != NULL && in enicpmd_dev_rss_hash_conf_get() 853 rss_conf->rss_key_len < ENIC_RSS_HASH_KEY_SIZE) { in enicpmd_dev_rss_hash_conf_get() 856 rss_conf->rss_key_len, ENIC_RSS_HASH_KEY_SIZE); in enicpmd_dev_rss_hash_conf_get() 859 rss_conf->rss_hf = enic->rss_hf; in enicpmd_dev_rss_hash_conf_get() 860 if (rss_conf->rss_key != NULL) { in enicpmd_dev_rss_hash_conf_get() 863 rss_conf->rss_key[i] = in enicpmd_dev_rss_hash_conf_get() [all …]
|
| /f-stack/dpdk/drivers/net/qede/ |
| H A D | qede_ethdev.c | 1060 rss_conf = eth_dev->data->dev_conf.rx_adv_conf.rss_conf; in qede_config_rss() 1061 if (!rss_conf.rss_key) { in qede_config_rss() 2118 uint64_t hf = rss_conf->rss_hf; in qede_rss_hash_update() 2178 qdev->rss_conf.rss_hf = hf; in qede_rss_hash_update() 2193 if (qdev->rss_conf.rss_key) { in qede_rss_hash_update() 2194 free(qdev->rss_conf.rss_key); in qede_rss_hash_update() 2208 rss_conf->rss_hf = qdev->rss_conf.rss_hf; in qede_rss_hash_conf_get() 2209 rss_conf->rss_key_len = qdev->rss_conf.rss_key_len; in qede_rss_hash_conf_get() 2211 if (rss_conf->rss_key && qdev->rss_conf.rss_key) in qede_rss_hash_conf_get() 2212 memcpy(rss_conf->rss_key, qdev->rss_conf.rss_key, in qede_rss_hash_conf_get() [all …]
|
| /f-stack/dpdk/drivers/net/e1000/ |
| H A D | igb_flow.c | 1314 struct igb_rte_flow_rss_conf *rss_conf, in igb_parse_rss_filter() argument 1329 memset(rss_conf, 0, sizeof(struct igb_rte_flow_rss_conf)); in igb_parse_rss_filter() 1364 if (rss->key_len && rss->key_len != RTE_DIM(rss_conf->key)) in igb_parse_rss_filter() 1375 if (igb_rss_conf_init(dev, rss_conf, rss)) in igb_parse_rss_filter() 1384 memset(rss_conf, 0, sizeof(struct igb_rte_flow_rss_conf)); in igb_parse_rss_filter() 1448 struct igb_rte_flow_rss_conf rss_conf; in igb_flow_create() local 1578 actions, &rss_conf, error); in igb_flow_create() 1580 ret = igb_config_rss_filter(dev, &rss_conf, TRUE); in igb_flow_create() 1589 &rss_conf.conf); in igb_flow_create() 1625 struct igb_rte_flow_rss_conf rss_conf; in igb_flow_validate() local [all …]
|
| H A D | igb_rxtx.c | 1951 hash_key = rss_conf->rss_key; in igb_hw_rss_hash_set() 1964 rss_hf = rss_conf->rss_hf; in igb_hw_rss_hash_set() 2013 igb_hw_rss_hash_set(hw, rss_conf); in eth_igb_rss_hash_update() 2028 hash_key = rss_conf->rss_key; in eth_igb_rss_hash_conf_get() 2043 rss_conf->rss_hf = 0; in eth_igb_rss_hash_conf_get() 2065 rss_conf->rss_hf = rss_hf; in eth_igb_rss_hash_conf_get() 2072 struct rte_eth_rss_conf rss_conf; in igb_rss_configure() local 2099 rss_conf = dev->data->dev_conf.rx_adv_conf.rss_conf; in igb_rss_configure() 2104 if (rss_conf.rss_key == NULL) in igb_rss_configure() 2106 igb_hw_rss_hash_set(hw, &rss_conf); in igb_rss_configure() [all …]
|
| /f-stack/dpdk/drivers/net/iavf/ |
| H A D | iavf_ethdev.c | 110 struct rte_eth_rss_conf *rss_conf); 249 struct rte_eth_rss_conf *rss_conf; in iavf_init_rss() local 253 rss_conf = &adapter->eth_dev->data->dev_conf.rx_adv_conf.rss_conf; in iavf_init_rss() 275 if (!rss_conf->rss_key) { in iavf_init_rss() 281 RTE_MIN(rss_conf->rss_key_len, in iavf_init_rss() 1106 struct rte_eth_rss_conf *rss_conf) in iavf_dev_rss_hash_update() argument 1116 if (!rss_conf->rss_key || rss_conf->rss_key_len == 0) { in iavf_dev_rss_hash_update() 1127 rte_memcpy(vf->rss_key, rss_conf->rss_key, rss_conf->rss_key_len); in iavf_dev_rss_hash_update() 1134 struct rte_eth_rss_conf *rss_conf) in iavf_dev_rss_hash_conf_get() argument 1146 if (!rss_conf->rss_key) in iavf_dev_rss_hash_conf_get() [all …]
|
| /f-stack/dpdk/examples/eventdev_pipeline/ |
| H A D | pipeline_worker_generic.c | 290 .rss_conf = { 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/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/axgbe/ |
| H A D | axgbe_dev.c | 619 struct rte_eth_rss_conf *rss_conf; in axgbe_write_rss_hash_key() local 624 rss_conf = &pdata->eth_dev->data->dev_conf.rx_adv_conf.rss_conf; in axgbe_write_rss_hash_key() 626 if (!rss_conf->rss_key) in axgbe_write_rss_hash_key() 629 key = (unsigned int *)&rss_conf->rss_key; in axgbe_write_rss_hash_key() 682 struct rte_eth_rss_conf *rss_conf; in axgbe_rss_options() local 685 rss_conf = &pdata->eth_dev->data->dev_conf.rx_adv_conf.rss_conf; in axgbe_rss_options() 686 pdata->rss_hf = rss_conf->rss_hf; in axgbe_rss_options() 687 rss_hf = rss_conf->rss_hf; in axgbe_rss_options()
|