i40e and RSS woes
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know that? And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
--
Gleb.
CCing i40e driver author in a hope to get an answer.
Quoted 17 lines · Gleb Natapov
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know that? And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
Quoted 6 lines
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
--
Gleb.
--
Gleb.
Ping.
Quoted 24 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 21 lines · Gleb Natapov
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know that? And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
Quoted 5 lines
Quoted 2 lines
--
Gleb.--
Gleb.
--
Gleb.
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release these days.
Quoted 7 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woes
Quoted 11 lines
Ping.
Quoted 8 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 5 lines · Gleb Natapov
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
that?
Actually a rss_key_len was introduced in struct rte_eth_rss_conf recently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework it with clear descriptions.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be used. So there is no issue as you said. But we need to add more clear description for the structure of rte_eth_rss_conf.
Thank you very much for the good comments!
Regards,
Helin
Quoted 13 lines
Quoted 10 lines
Quoted 7 lines
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
--
Gleb.--
Gleb.--
Gleb.
Quoted 16 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release these days.
Quoted 12 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesPing.
Quoted 2 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines · Gleb Natapov
Quoted 5 lines
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Thanks, as I said below when I configure reta by myself everything work as expected - traffic is received on all queues, so I am curious if in some scenarios my code can break.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
Quoted 9 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework it with clear descriptions.
I saw rss_key_len of course, my question is how my code suppose to know what value to set it to? Why required key length is not part of a device capability query (or is it and I missed it)? The only way I found to get key length is to quire device for a key, and check rss_key_len. If it is zero then key is 40 bytes, otherwise whatever rss_key_len says. This method is more of a hack then proper way to do it.
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be used. So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.
What you've said above is exactly the issue! My code does not work if a key used by HW is not the same as was set by application, but since I get no error when my setting is ignored the is not way for me to know that my application will not work (short of querying key back and comparing which is again a hack). Device configuration should fail if it cannot apply my settings.
--
Gleb.
Quoted 55 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Thursday, March 5, 2015 2:39 PM
To: Zhang, Helin
Cc: [email protected]
Subject: Re: i40e and RSS woesQuoted 3 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release
these days.
Quoted 8 lines
Quoted 8 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesQuoted 8 lines
Quoted 8 lines
Ping.
Quoted 5 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 2 lines · Gleb Natapov
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related
issues.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Thanks, as I said below when I configure reta by myself everything work as expected - traffic is received on all queues, so I am curious if in some scenarios my code can break.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
Quoted 4 lines
Quoted 1 line
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework
Quoted 8 lines
it with clear descriptions.
Quoted 1 line
I saw
rss_key_lenof course, my question is how my code suppose to know what value to set it to? Why required key length is not part of a device capability query (or is it and I missed it)? The only way I found to get key length is to quire device for a key, and checkrss_key_len. If it is zero then key is 40 bytes, otherwise whateverrss_key_lensays. This method is more of a hack then proper way to do it.
I think it was missed. I will add it soon later.
Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be
used.
Quoted 8 lines
Quoted 3 lines
So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.What you've said above is exactly the issue! My code does not work if a key used by HW is not the same as was set by application, but since I get no error when my setting is ignored the is not way for me to know that my application will not work (short of querying key back and comparing which is again a hack). Device configuration should fail if it cannot apply my settings.
After I checked the code, different PMD may have different implementation. Returning with an error might be the best way for all PMDs. I will unify it later.
Really good findings and suggestions from you! Thank you very much!
Regards,
Helin
Quoted 3 lines
--
Gleb.
Hi,
I didn't follow DPDK development to close lately. Was those problem fixed already?
Quoted 79 lines · Helin
Quoted 55 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Thursday, March 5, 2015 2:39 PM
To: Zhang, Helin
Cc: [email protected]
Subject: Re: i40e and RSS woesQuoted 3 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release
these days.
Quoted 8 lines
Quoted 8 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesQuoted 8 lines
Quoted 8 lines
Ping.
Quoted 5 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 2 lines · Gleb Natapov
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related
issues.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Thanks, as I said below when I configure reta by myself everything work as expected - traffic is received on all queues, so I am curious if in some scenarios my code can break.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
Quoted 4 lines
Quoted 1 line
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to reworkQuoted 8 lines
it with clear descriptions.
Quoted 1 line
I saw
rss_key_lenof course, my question is how my code suppose to know what value to set it to? Why required key length is not part of a device capability query (or is it and I missed it)? The only way I found to get key length is to quire device for a key, and checkrss_key_len. If it is zero then key is 40 bytes, otherwise whateverrss_key_lensays. This method is more of a hack then proper way to do it.I think it was missed. I will add it soon later.
Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be
used.
Quoted 8 lines
Quoted 3 lines
So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.What you've said above is exactly the issue! My code does not work if a key used by HW is not the same as was set by application, but since I get no error when my setting is ignored the is not way for me to know that my application will not work (short of querying key back and comparing which is again a hack). Device configuration should fail if it cannot apply my settings.
Quoted 5 lines
After I checked the code, different PMD may have different implementation. Returning with an error might be the best way for all PMDs. I will unify it later.
Really good findings and suggestions from you! Thank you very much!
--
Gleb.
Hi Gleb
I don't think the fix is in the master branch. I will double check it and get back to you later. Thank you very much for the reminder!
Regards,
Helin
Quoted 107 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Tuesday, April 28, 2015 5:21 PM
To: Zhang, Helin
Cc: [email protected]
Subject: Re: i40e and RSS woesHi,
I didn't follow DPDK development to close lately. Was those problem fixed already?
Quoted 40 lines · Helin
Quoted 40 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Thursday, March 5, 2015 2:39 PM
To: Zhang, Helin
Cc: [email protected]
Subject: Re: i40e and RSS woesQuoted 4 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release
these days.
Quoted 10 lines
Quoted 10 lines
-----Original Message-----
From: Gleb Natapov [mailto:gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesPing.
Quoted 7 lines
Quoted 7 lines · Gleb Natapov
Quoted 6 lines
CCing i40e driver author in a hope to get an answer.
Quoted 3 lines · Gleb Natapov
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related
issues.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Quoted 7 lines
Quoted 7 lines
Thanks, as I said below when I configure reta by myself everything work as expected - traffic is received on all queues, so I am curious if in some scenarios my code can break.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not
receive any traffic.
Quoted 13 lines
Quoted 13 lines
Quoted 11 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to reworkit with clear descriptions.
Quoted 1 line
Quoted 22 lines
Quoted 6 lines
I saw
rss_key_lenof course, my question is how my code suppose to know what value to set it to? Why required key length is not part of a device capability query (or is it and I missed it)? The only way I found to get key length is to quire device for a key, and checkrss_key_len. If it is zero then key is 40 bytes, otherwise whateverrss_key_lensays. This method is more of a hack then proper way to do it.I think it was missed. I will add it soon later.
Quoted 14 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be
used.
Quoted 3 lines
So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.What you've said above is exactly the issue! My code does not work if a key used by HW is not the same as was set by application, but since I get no error when my setting is ignored the is not way for me to know that my application will not work (short of querying key back
and comparing which is again a hack).
Quoted 3 lines
Quoted 1 line
Device configuration should fail if it cannot apply my settings.
After I checked the code, different PMD may have different implementation. Returning with an error might be the best way for all PMDs. I will unify it
later.
Quoted 3 lines
Really good findings and suggestions from you! Thank you very much!
--
Gleb.
Quoted 16 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release these days.
Quoted 12 lines
-----Original Message-----
From: Gleb Natapov [mailto:[email protected]]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesPing.
Quoted 2 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines · Gleb Natapov
Quoted 5 lines
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Helin, hi!
Sorry for bringing it back but it seems that the RSS queues number issue (rounding it down to the nearest power of 2) still hasn't been addressed in the master branch.
Could u, pls., clarify what is that "i40e queue configuration" that requires this alignment u are referring above?
From what i could see "num" parameter is not propagated outside the i40e_pf_config_rss() in any form except for RSS table contents. This means that any code that would need to know the number of Rx queues would use the dev_data->nb_rx_queues (e.g. i40e_dev_rx_init()) and wouldn't be able to know that i40e_pf_config_rss() something different except for scanning the RSS table in HW which is of course not an option.
Therefore, from the first look it seems that this rounding may be safely removed unless I've missed something.
Pls., comment.
thanks,
vlad
Quoted 36 lines
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework it with clear descriptions.Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be used. So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.Thank you very much for the good comments!
Regards,
HelinQuoted 10 lines
Quoted 8 lines
Quoted 6 lines
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
--
Gleb.--
Gleb.--
Gleb.
Quoted 34 lines · Vlad Zolotarov
Quoted 16 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release these days.
Quoted 12 lines
-----Original Message-----
From: Gleb Natapov [mailto:[email protected]]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesPing.
Quoted 2 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines · Gleb Natapov
Quoted 5 lines
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Helin, hi!
Sorry for bringing it back but it seems that the RSS queues number issue (rounding it down to the nearest power of 2) still hasn't been addressed in the master branch.Could u, pls., clarify what is that "i40e queue configuration" that requires this alignment u are referring above?
Quoted 7 lines
From what i could see "num" parameter is not propagated outside the
i40e_pf_config_rss()in any form except for RSS table contents. This means that any code that would need to know the number of Rx queues would use thedev_data->nb_rx_queues(e.g.i40e_dev_rx_init()) and wouldn't be able to know thati40e_pf_config_rss()something different except for scanning the RSS table in HW which is of course not an option.Therefore, from the first look it seems that this rounding may be safely removed unless I've missed something.
Pls., comment.
Have just noticed this:
/* Each of below queue pairs should be power of 2 since it's the
precondition after TC configuration applied */
uint16_t lan_nb_qps; /* The number of queue pairs of LAN */
I still couldn't find any justification for either requiring the above or requiring any correlation between the number of Tx queues (whatever it is) and the number of Rx queues in the HW spec. It seems that spec implies that Rx and Tx configuration is completely orthogonal (as it should be).
Could u, pls., clarify how TC configuration imposes a requirement on a number of Rx queues to be a power of 2?
thanks in advance,
vlad
Quoted 41 lines
thanks,
vladQuoted 36 lines
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework it with clear descriptions.Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be used. So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.Thank you very much for the good comments!
Regards,
HelinQuoted 10 lines
Quoted 8 lines
Quoted 6 lines
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
Signature · 1 line
Gleb.Signature · 1 line
Gleb.Signature · 1 line
Gleb.
Quoted 52 lines
-----Original Message-----
From: Vlad Zolotarov [mailto:[email protected]]
Sent: Monday, August 24, 2015 4:14 AM
To: Zhang, Helin; Gleb Natapov; [email protected]
Subject: Re: [dpdk-dev] i40e and RSS woesQuoted 3 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release these
days.
Quoted 13 lines
Quoted 13 lines
-----Original Message-----
From: Gleb Natapov [mailto:[email protected]]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesPing.
Quoted 2 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines · Gleb Natapov
Quoted 5 lines
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Helin, hi!
Sorry for bringing it back but it seems that the RSS queues number issue (rounding it down to the nearest power of 2) still hasn't been addressed in the master branch.Could u, pls., clarify what is that "i40e queue configuration" that requires this alignment u are referring above?
From what i could see "num" parameter is not propagated outside the
i40e_pf_config_rss()in any form except for RSS table contents. This means that any code that would need to know the number of Rx queues would use thedev_data->nb_rx_queues(e.g.i40e_dev_rx_init()) and wouldn't be able to know thati40e_pf_config_rss()something different except for scanning the RSS table in HW which is of course not an option.
Quoted 2 lines
Therefore, from the first look it seems that this rounding may be safely removed unless I've missed something.
Could you help to refer to the data sheet of 'Hash Filter', 'Receive Queue Regions', it is said that '1, 2, 4, 8, 16, 32, 64' are the supported queue regions. Yes, we should support more than 64 queues per port, but for rss, it should be one of '1, 2, 4, 8, 16, 32, 64'.
Thanks,
Helin
Quoted 45 lines
Pls., comment.
thanks,
vladQuoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
Quoted 4 lines
Quoted 1 line
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework itwith clear descriptions.
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be
used.
Quoted 18 lines
So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.Thank you very much for the good comments!
Regards,
HelinQuoted 10 lines
Quoted 8 lines
Quoted 6 lines
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
--
Gleb.--
Gleb.--
Gleb.
Quoted 49 lines · Helin
Quoted 49 lines
-----Original Message-----
From: Vlad Zolotarov [mailto:[email protected]]
Sent: Monday, August 24, 2015 4:14 AM
To: Zhang, Helin; Gleb Natapov; [email protected]
Subject: Re: [dpdk-dev] i40e and RSS woesQuoted 3 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release these
days.
Quoted 12 lines
Quoted 12 lines
-----Original Message-----
From: Gleb Natapov [mailto:[email protected]]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesPing.
Quoted 2 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines · Gleb Natapov
Quoted 5 lines
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related issues.
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Helin, hi!
Sorry for bringing it back but it seems that the RSS queues number issue (rounding it down to the nearest power of 2) still hasn't been addressed in the master branch.Could u, pls., clarify what is that "i40e queue configuration" that requires this alignment u are referring above?
From what i could see "num" parameter is not propagated outside the
i40e_pf_config_rss()in any form except for RSS table contents. This means that any code that would need to know the number of Rx queues would use thedev_data->nb_rx_queues(e.g.i40e_dev_rx_init()) and wouldn't be able to know thati40e_pf_config_rss()something different except for scanning the RSS table in HW which is of course not an option.
Quoted 6 lines
Quoted 2 lines
Therefore, from the first look it seems that this rounding may be safely removed unless I've missed something.
Could you help to refer to the data sheet of 'Hash Filter', 'Receive Queue Regions', it is said that '1, 2, 4, 8, 16, 32, 64' are the supported queue regions. Yes, we should support more than 64 queues per port, but for rss, it should be one of '1, 2, 4, 8, 16, 32, 64'.
"The VSIs support 8 regions of receive queues that are aimed mainly for the TCs. The TC regions are defined per VSI by the VSIQF_TCREGION register. The region sizes (defined by the TC_SIZE fields) can be any of the following value: 1, 2, 4, 8, 16, 32, 64 as long as the total number of queues do not exceed the VSI allocation. These regions starts at the offset defined by the TC_OFFSET parameter. According to the region size, the ‘n’ LS bits of the Queue Index from the LUT are enabled."
I think the above says that the region sizes may only be one of the mentioned values.
AFAIU this doesn't mean that the number or RSS queues has to be the same - it may not exceed it.
Just like it's stated in the "Outcome Queue Index" definition the final mapping to the PF index space is done using the VSILAN_QTABLE or VSILAN_QBASE registers (a.k.a. RSS indirection table).
For instance if u have a region of size 8 u may configure 3 RSS queues by setting the following RSS table:
0,1,2,0,1,2,0,1
Quoted 46 lines
Thanks,
HelinQuoted 42 lines
Pls., comment.
thanks,
vladQuoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
Quoted 4 lines
Quoted 1 line
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework itwith clear descriptions.
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be
used.
Quoted 18 lines
So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.Thank you very much for the good comments!
Regards,
HelinQuoted 10 lines
Quoted 8 lines
Quoted 6 lines
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
--
Gleb.--
Gleb.--
Gleb.
Quoted 87 lines
-----Original Message-----
From: Vlad Zolotarov [mailto:[email protected]]
Sent: Monday, August 24, 2015 11:26 AM
To: Zhang, Helin; Gleb Natapov
Cc: [email protected]
Subject: Re: [dpdk-dev] i40e and RSS woesQuoted 22 lines · Helin
Quoted 22 lines
-----Original Message-----
From: Vlad Zolotarov [mailto:[email protected]]
Sent: Monday, August 24, 2015 4:14 AM
To: Zhang, Helin; Gleb Natapov; [email protected]
Subject: Re: [dpdk-dev] i40e and RSS woesQuoted 4 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release these
days.
Quoted 7 lines
Quoted 7 lines
-----Original Message-----
From: Gleb Natapov [mailto:[email protected]]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woesQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Ping.
Quoted 5 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 2 lines · Gleb Natapov
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various RSS related
issues.
Quoted 14 lines
Quoted 14 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Helin, hi!
Sorry for bringing it back but it seems that the RSS queues number issue (rounding it down to the nearest power of 2) still hasn't been addressed in the master branch.Could u, pls., clarify what is that "i40e queue configuration" that requires this alignment u are referring above?
Quoted 6 lines
Quoted 6 lines
From what i could see "num" parameter is not propagated outside the
i40e_pf_config_rss()in any form except for RSS table contents. This means that any code that would need to know the number of Rx queues would use thedev_data->nb_rx_queues(e.g.i40e_dev_rx_init()) and wouldn't be able to know thati40e_pf_config_rss()something different except for scanning the RSS table in HW which is of course not anoption.
Quoted 5 lines
Quoted 3 lines
Therefore, from the first look it seems that this rounding may be safely removed unless I've missed something.
Could you help to refer to the data sheet of 'Hash Filter', 'Receive Queue Regions', it is said that '1, 2, 4, 8, 16, 32, 64' are the supported queue
regions.
Quoted 2 lines
Yes, we should support more than 64 queues per port, but for rss, it should be one of '1, 2, 4, 8, 16, 32, 64'.
"The VSIs support 8 regions of receive queues that are aimed mainly for the TCs. The TC regions are defined per VSI by the
VSIQF_TCREGIONregister. The region sizes (defined by theTC_SIZEfields) can be any of the following value: 1, 2, 4, 8, 16, 32, 64 as long as the total number of queues do not exceed the VSI allocation. These regions starts at the offset defined by theTC_OFFSETparameter. According to the region size, the 'n' LS bits of the Queue Index from the LUT are enabled."I think the above says that the region sizes may only be one of the mentioned values.
AFAIU this doesn't mean that the number or RSS queues has to be the same
- it may not exceed it.
Quoted 7 lines
Just like it's stated in the "Outcome Queue Index" definition the final mapping to the PF index space is done using the
VSILAN_QTABLEorVSILAN_QBASEregisters (a.k.a. RSS indirection table).For instance if u have a region of size 8 u may configure 3 RSS queues by setting the following RSS table:
0,1,2,0,1,2,0,1
I tend to agree with you. Anyway, I am working on supporting more queues per port than 64, and I will take this into account. If not other strong reasons, I will change it. Thank you very much!
Regards,
Helin
Quoted 49 lines
Quoted 49 lines
Thanks,
HelinQuoted 44 lines
Pls., comment.
thanks,
vladQuoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any traffic.
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
Quoted 5 lines
Quoted 1 line
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework itwith clear descriptions.
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be
used.
Quoted 18 lines
So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.Thank you very much for the good comments!
Regards,
HelinQuoted 10 lines
Quoted 8 lines
Quoted 6 lines
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
--
Gleb.--
Gleb.--
Gleb.
Quoted 35 lines · Helin
Quoted 35 lines
-----Original Message-----
From: Vlad Zolotarov [mailto:[email protected]]
Sent: Monday, August 24, 2015 11:26 AM
To: Zhang, Helin; Gleb Natapov
Cc: [email protected]
Subject: Re: [dpdk-dev] i40e and RSS woesQuoted 22 lines · Helin
Quoted 22 lines
-----Original Message-----
From: Vlad Zolotarov [mailto:[email protected]]
Sent: Monday, August 24, 2015 4:14 AM
To: Zhang, Helin; Gleb Natapov; [email protected]
Subject: Re: [dpdk-dev] i40e and RSS woesQuoted 4 lines · Helin
Hi Gleb
Sorry for late! I am struggling on my tasks for the following DPDK release these
days.
Quoted 7 lines
Quoted 7 lines
-----Original Message-----
From: Gleb Natapov [mailto:[email protected]]
Sent: Monday, March 2, 2015 8:56 PM
To: [email protected]
Cc: Zhang, Helin
Subject: Re: i40e and RSS woes
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Ping.
Quoted 5 lines · Gleb Natapov
CCing i40e driver author in a hope to get an answer.
Quoted 2 lines · Gleb Natapov
I have an application that works reasonably well with ixgbe driver, but when I try to use it with i40e I encounter various
RSS related
Quoted 15 lines
Quoted 15 lines
issues.
Quoted 14 lines
Quoted 14 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
First one is that for some reason i40e, when it builds default reta table, round down number of queues to power of two. Why is this? If
It seems because of i40e queue configuration. We will check it more and see if it can be changed or improved later.
Helin, hi!
Sorry for bringing it back but it seems that the RSS queues number issue (rounding it down to the nearest power of 2) still hasn't been addressed in the master branch.Could u, pls., clarify what is that "i40e queue configuration" that requires this alignment u are referring above?
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
From what i could see "num" parameter is not propagated outside the
i40e_pf_config_rss()in any form except for RSS table contents. This means that any code that would need to know the number of Rx queues would use thedev_data->nb_rx_queues(e.g.i40e_dev_rx_init()) and wouldn't be able to know thati40e_pf_config_rss()something different except for scanning the RSS table in HW which is of course
not an
Quoted 6 lines
Quoted 6 lines
option.
Quoted 5 lines
Quoted 3 lines
Therefore, from the first look it seems that this rounding may be safely removed unless I've missed something.
Could you help to refer to the data sheet of 'Hash Filter', 'Receive Queue Regions', it is said that '1, 2, 4, 8, 16, 32, 64' are the
supported queue
Quoted 5 lines
Quoted 5 lines
regions.
Quoted 2 lines
Yes, we should support more than 64 queues per port, but for rss, it should be one of '1, 2, 4, 8, 16, 32, 64'.
"The VSIs support 8 regions of receive queues that are aimed mainly for
the TCs.
Quoted 1 line
Quoted 1 line
The TC regions are defined per VSI by the
VSIQF_TCREGIONregister. The
region
Quoted 1 line
Quoted 1 line
sizes (defined by the
TC_SIZEfields) can be any of the following
value: 1, 2, 4, 8,
Quoted 1 line
Quoted 1 line
16, 32, 64 as long as the total number of queues do not exceed the VSI
allocation.
Quoted 2 lines
Quoted 2 lines
These regions starts at the offset defined by the
TC_OFFSETparameter. According to the region size, the 'n' LS bits of the Queue Index from
the LUT are
Quoted 3 lines
Quoted 3 lines
enabled."
I think the above says that the region sizes may only be one of the
mentioned
Quoted 6 lines
Quoted 6 lines
values.
AFAIU this doesn't mean that the number or RSS queues has to be the same
- it may not exceed it.Just like it's stated in the "Outcome Queue Index" definition the final
mapping to
Quoted 1 line
Quoted 1 line
the PF index space is done using the
VSILAN_QTABLEorVSILAN_QBASE
registers
Quoted 3 lines
Quoted 3 lines
(a.k.a. RSS indirection table).
For instance if u have a region of size 8 u may configure 3 RSS queues
by setting
Quoted 3 lines
Quoted 2 lines
the following RSS table:
0,1,2,0,1,2,0,1I tend to agree with you. Anyway, I am working on supporting more queues
per port than 64,
Quoted 1 line
and I will take this into account. If not other strong reasons, I will
change it. Thank you very much!
Great! Thanks a lot, Helin.
Quoted 17 lines
Regards,
HelinQuoted 13 lines
Quoted 13 lines
Thanks,
HelinQuoted 8 lines
Pls., comment.
thanks,
vladQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
I configure reta by my own using all of the queues everything seams to be working. To add insult to injury I do not get any errors during configuration some queues just do not receive any
traffic.
Quoted 37 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 11 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
The second problem is that for some reason i40e does not use 40 byte toeplitz hash key like any other driver, but it expects the key to be 52 bytes. And it would have being fine (if we ignore the fact that it contradicts MS spec), but how my high level code suppose to know
that?
Actually a
rss_key_lenwas introduced in structrte_eth_rss_confrecently. So the length should be indicated clearly. But I found the annotations of that structure should have been reworked. I will try to rework itwith clear descriptions.
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
And again, device configuration does not fail when wrong key length is provided, it just uses some other key. Guys this kind of error handling is completely unacceptable.
If less length of key is provided, it will not be used at all, the default key will be
used.
Quoted 18 lines
So there is no issue as you said. But we need to add more clear description for the structure of
rte_eth_rss_conf.Thank you very much for the good comments!
Regards,
HelinQuoted 10 lines
Quoted 8 lines
Quoted 6 lines
The last one is more of a question. Why interface to change RSS hash function (XOR or toeplitz) is part of a filter configuration and not rss config?
--
Gleb.--
Gleb.--
Gleb.