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

add packet queues to BwDevice #12

Merged
merged 2 commits into from
Mar 6, 2024
Merged

add packet queues to BwDevice #12

merged 2 commits into from
Mar 6, 2024

Conversation

Centaurus99
Copy link
Member

Implemented queues:

  • InfiniteQueue
  • DropTailQueue (FIFO)
  • DropHeadQueue
  • CODELQueue

Closes #6

@Centaurus99 Centaurus99 requested a review from BobAnkh March 4, 2024 12:28
Copy link
Member

@BobAnkh BobAnkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config should be individual for each queue types

rattan/src/devices/delay.rs Outdated Show resolved Hide resolved
rattan/src/devices/delay.rs Outdated Show resolved Hide resolved
rattan/src/devices/bandwidth/queue.rs Outdated Show resolved Hide resolved
rattan/src/devices/bandwidth/mod.rs Outdated Show resolved Hide resolved
Centaurus99 added a commit that referenced this pull request Mar 6, 2024
# This is the 1st commit message:
feat(device): add packet queue to bandwidth device

Refs: #6

# This is the commit message #2:

fix(device): the correctness of packet enqueue in the queue

Refs: #6

# This is the commit message #3:

test(bandwidth): add test for DropTailQueue

Refs: #6

# This is the commit message #4:

feat(device): add control interface to packet queue

Refs: #6

# This is the commit message #5:

fix(device): return an error when setting an empty config to BwDevice

Refs: #6

# This is the commit message #6:

test(bandwidth): add test for DropHeadQueue

Refs: #6

# This is the commit message #7:

feat(device): remove peek function in PacketQueue

Ref: #6

# This is the commit message #8:

feat(device): add CoDel queue and its test

Refs: #6

# This is the commit message #9:

fix: fix clippy warnings

# This is the commit message #10:

ci: add a mantic/6.6 VM (#8)

# This is the commit message #11:

chore: ignore .vscode

# This is the commit message #12:

ci: add cargo audit
@Centaurus99 Centaurus99 force-pushed the issue-6 branch 2 times, most recently from db51cd0 to afb3b00 Compare March 6, 2024 08:56
@Centaurus99 Centaurus99 merged commit 7df9cf5 into main Mar 6, 2024
7 checks passed
@Centaurus99 Centaurus99 deleted the issue-6 branch March 6, 2024 12:15
@Centaurus99
Copy link
Member Author

Close: #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Queue trait to BwDevice
2 participants