Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardware multicast address bugfix #889

Merged
merged 6 commits into from
May 30, 2023
Merged

Conversation

ywc689
Copy link
Collaborator

@ywc689 ywc689 commented Apr 26, 2023

No description provided.

@ywc689 ywc689 added the pr/to-review-codes review codes line by line and check if problem exists. label Apr 27, 2023
It takes long for some nics to update multicast ether addresses. The per-cpu
process of per-cpu inetaddr causes mc ether address updating from both slave
lcores and master lcore, which is nonsense but a dramatic hurt for performacne.
So just do it once on master lcore.

Signed-off-by: ywc689 <ywc689@163.com>
It has been noted that rte_eth_dev_set_mc_addr_list is of some restrictions:
* The Api may be slow and take hundreds miliseconds.
* Support only a very limited multicast ether address number.

For instance of 25G Meallnox CX5, its PMD driver for rte_eth_dev_set_mc_addr_list
supports only 128 multicast ether addresses for each port, and it takes about 250ms
for rte_eth_dev_set_mc_addr_list to finish its work. Hence we make the following
improvements:

1. Enable allmulitcast when rte_eth_dev_set_mc_addr_list failed,
2. Do not call rte_eth_dev_set_mc_addr_list when allmulitcast enabled.

In next commmit, allmulticast can be configured at start of DPVS, which can solve
the rte_eth_dev_set_mc_addr_list slow problem totally.

Signed-off-by: ywc689 <ywc689@163.com>
…vices

Signed-off-by: ywc689 <ywc689@163.com>
…packets out

Signed-off-by: ywc689 <ywc689@163.com>
Signed-off-by: ywc689 <ywc689@163.com>
@ywc689 ywc689 added pr/to-review-codes review codes line by line and check if problem exists. and removed pr/to-review-codes review codes line by line and check if problem exists. labels May 15, 2023
@ywc689 ywc689 closed this May 22, 2023
@ywc689 ywc689 deleted the hw-mc-address-bugfix branch May 22, 2023 12:24
@ywc689 ywc689 restored the hw-mc-address-bugfix branch May 22, 2023 12:29
@ywc689 ywc689 reopened this May 22, 2023
@ywc689 ywc689 added pr/accepted the pr passed all review stages and await to be merged and removed pr/to-review-codes review codes line by line and check if problem exists. labels May 30, 2023
@ywc689 ywc689 merged commit 1b21236 into iqiyi:devel May 30, 2023
@ywc689 ywc689 deleted the hw-mc-address-bugfix branch August 30, 2023 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/accepted the pr passed all review stages and await to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants