-
Notifications
You must be signed in to change notification settings - Fork 6
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
I210 implementation + Taprio software support + mapping customization (rebase) #20
base: master
Are you sure you want to change the base?
Conversation
To be fully tested later
If no flag entered it should behave like in the past, this file should probably be edited more but need to be able to run the software to figure out a bit more.
renamed the test dealing with the tc command for setting taprio with offload to the appropriate name. it was before called test_iplinksetvlan. I also added a test for tc command dealing taprio software mode(flag)
Just a test thing, will see what I end up using in the end
+ Editing tests to encompass new variables being returned + testing the values of it hardware latency for i225 and rename for i210 small fix
This reverts commit fbe47a5.
This reverts commit 481a795.
This reverts commit 351783f.
This reverts commit 97346a7.
This reverts commit 1d28fd8.
…210 Support + mapping customization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let us discuss in more detail how to specify the backend selection, and then we can move forward.
02d4da4
to
c2798d6
Compare
0718f62
to
8b9c57c
Compare
4a52ecc
to
963197a
Compare
963197a
to
fd646d5
Compare
fbe3161
to
52d9511
Compare
detd/devices/device.py
Outdated
@@ -22,12 +22,11 @@ | |||
|
|||
from ..logger import get_logger | |||
|
|||
from ..scheduler import TxCapability |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be better to leave the "Capability" name. It is true that Qbv and LTC are Tx related, but Qbu (and actually the underlying 802.3br) have also an Rx component.
detd/manager.py
Outdated
|
||
if self.hints.tx_selection == TxCapability.Qbv: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the TxSelection description in the ticket.
de9544b
to
9445d35
Compare
detd/manager.py
Outdated
|
||
if self.interface.device.check_hints(config): | ||
# Check if the device supports the requested features | ||
if DataPath(config.hints.data_path) != hints.data_path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hints have to be checked against the hardware features.
The default hints are a conservative version based on the hardware capabilities. Something may not be set in the default hints that is supported on hardware and hence can be used in some custom hints.
3f40eaa
to
c114c72
Compare
detd/devices/device.py
Outdated
raise ValueError(f"Device does not support the requested Tx selection feature." | ||
f"Requested Tx_selection: {tx_selection}, Requested tx_selection_offload: {tx_selection_offload}") | ||
|
||
if tx_selection == TxSelection.STRICT_PRIO and preemption == True: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do not actually need the STRICT_PRIO part. Preemption can be used in combination with SP but also EST. So perhaps the simplest thing is to check if preemption is requested, and check against the Qbu capability.
detd/devices/intel_i210.py
Outdated
datapath = DataPath.AF_PACKET | ||
tx_selection = TxSelection.EST | ||
|
||
if Capability.Qbv in self.capabilities: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can simply set the tx_offload, as within the device plugin you already know what should be offered as the default hints.
detd/devices/intel_i225.py
Outdated
datapath = DataPath.AF_PACKET | ||
tx_selection = TxSelection.EST | ||
|
||
if Capability.Qbv in self.capabilities: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as with i210, you can fix it directly instead of checking against the caps.
detd/devices/intel_mgbeehl.py
Outdated
datapath = DataPath.AF_PACKET | ||
tx_selection = TxSelection.EST | ||
|
||
if Capability.Qbv in self.capabilities: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As with i210 and i225/6.
ec41cda
to
385a7a4
Compare
Signed-off-by: Amber <kumar.amber@intel.com>
385a7a4
to
8b368a1
Compare
No description provided.