Skip to content

set rx rate to unlimited for knet - #450

Merged
jklare merged 2 commits into
mainfrom
jogo_set_rx_rate
Jul 30, 2025
Merged

set rx rate to unlimited for knet#450
jklare merged 2 commits into
mainfrom
jogo_set_rx_rate

Conversation

@KanjiMonster

Copy link
Copy Markdown
Contributor

Since KNET uses a different channel for packets than OpenFlow and is much more efficient, higher packet rates than 1024 (the default) is easily doable.

So set the rx rate to unlimited by default when using KNET, but leave it at 1024 pps for TAP.

In case this causes issue, add a flag to set a custom limit.

Description

Motivation and Context

How Has This Been Tested?

Update proto to latest HEAD:

d81de3cdc5d0 Merge pull request #12 from bisdn/jogo_set_rx_rate
3e4ce8702553 ofdpa.proto: expose ofdpaRxRateSet()

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
Since KNET uses a different channel for packets than OpenFlow and is
much more efficient, higher packet rates than 1024 (the default) is
easily doable.

So set the rx rate to unlimited by default when using KNET, but leave it
at 1024 pps for TAP.

In case this causes issues, add a flag to set a custom limit.

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
@KanjiMonster
KanjiMonster requested review from jklare and removed request for ideaship July 30, 2025 12:34
@KanjiMonster
KanjiMonster marked this pull request as ready for review July 30, 2025 12:37
Comment on lines +24 to +28
# Set a Packets per Seconds rate limit for traffic to controller.
# -1 = auto (unlimited for KNET, 1024 for TAP)
# 0 = force unlimited
# Default is auto.
# FLAGS_rx_rate_limit=-1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How do I set a limit of 1234 ? FLAGS_rx_rate_limit=1234 ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I mean, by reading the code, I can figure that out, but maybe it would be good to have that as an example here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is an implied example ("1024 for TAP"), and the unit is mentioned in the comment above. Is the sentence really that unclear about what is expected here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes, i did have to read the code to understand it

@jklare
jklare merged commit 6d13c4e into main Jul 30, 2025
4 checks passed
@jklare
jklare deleted the jogo_set_rx_rate branch July 30, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants