Skip to content

Commit 3733bbc

Browse files
committed
Fix issue with setting rate limits with xdpfw-add and update README.
1 parent 51b9c2b commit 3733bbc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,10 @@ The following CLI arguments are supported.
313313
| --min-len | `--min-len 42` | The packet's mimimum length to match with the dynamic filter. |
314314
| --max-len | `--max-len 96` | The packet's maximum length to match with the dynamic filter. |
315315
| --tos | `--tos 1` | The IP's Type of Service to match with the dynamic filter. |
316-
| --pps | `--pps 10000` | The minimum PPS rate to match with the dynamic filter. |
317-
| --bps | `--bps 126000` | The minimum BPS rate to match with the dynamic filter. |
316+
| --ip-pps | `--ip-pps 10000` | The minimum PPS rate of a source IP to match with the dynamic filter. |
317+
| --ip-bps | `--ip-bps 126000` | The minimum BPS rate of a source IP to match with the dynamic filter. |
318+
| --flow-pps | `--flow-pps 3000` | The minimum PPS rate of a source flow to match with the dynamic filter. |
319+
| --flow-bps | `--flow-bps 26000` | The minimum BPS rate of a source flow to match with the dynamic filter. |
318320
| --tcp | `--tcp 1` | Enables or disables TCP matching with the dynamic filter. |
319321
| --tsport | `--tsport 22` | The TCP source port to match with the dynamic filter. |
320322
| --tdport | `--tdport 443` | The TCP destination port to match with the dynamic filter. |

src/rule_add/utils/cli.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const struct option opts[] =
3333
{ "ip-pps", required_argument, NULL, 9 },
3434
{ "ip-bps", required_argument, NULL, 10 },
3535

36-
{ "ip-pps", required_argument, NULL, 32 },
37-
{ "ip-bps", required_argument, NULL, 33 },
36+
{ "flow-pps", required_argument, NULL, 32 },
37+
{ "flow-bps", required_argument, NULL, 33 },
3838

3939
{ "tcp", required_argument, NULL, 11 },
4040
{ "tsport", required_argument, NULL, 12 },

0 commit comments

Comments
 (0)