Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174973418
D34922.id105020.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D34922.id105020.diff
View Options
Index: usr.sbin/cxgbetool/cxgbetool.8
===================================================================
--- usr.sbin/cxgbetool/cxgbetool.8
+++ usr.sbin/cxgbetool/cxgbetool.8
@@ -31,7 +31,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 23, 2021
+.Dd XXX
.Dt CXGBETOOL 8
.Os
.Sh NAME
@@ -649,18 +649,22 @@
.It Cm class Ar sc
Bind the connection to the specified tx scheduling class.
Valid range is 0 to 14 (for T4) and 0 to 15 (T5 onwards).
-.It Cm rxq Ar qid
+.It Cm rxq Ar qnum
Use the specified offload rx queue.
-.Ar qid
-should be between 0 and nofldrxq for the ifnet.
+.Ar qnum
+should be
+.Cm random Ns , Cm roundrobin Ns ,
+or a number between 0 and nofldrxq for the ifnet.
.It Cm txq Ar qnum
Use the specified offload tx queue.
-.Ar qid
-should be between 0 and nofldtxq for the ifnet.
+.Ar qnum
+should be
+.Cm random Ns , Cm roundrobin Ns ,
+or a number between 0 and nofldtxq for the ifnet.
.It Cm bind Ar qnum
Shorthand for
.Cm rxq Ar qnum Cm txq Ar qnum Ns .
-Use only when nofldrxq is the same as nofldtxq.
+Use when nofldrxq is the same as nofldtxq.
.It Cm mss Ar val
Set the advertised TCP MSS in the SYN for this connection to
.Ar val
Index: usr.sbin/cxgbetool/cxgbetool.c
===================================================================
--- usr.sbin/cxgbetool/cxgbetool.c
+++ usr.sbin/cxgbetool/cxgbetool.c
@@ -3150,14 +3150,17 @@
os->sched_class = val;
} else if (!strcmp(s, "bind") || !strcmp(s, "txq") ||
!strcmp(s, "rxq")) {
- val = -1;
- if (strcmp(param, "random")) {
+ if (!strcmp(param, "random")) {
+ val = QUEUE_RANDOM;
+ } else if (!strcmp(param, "roundrobin")) {
+ val = QUEUE_ROUNDROBIN;
+ } else {
p = str_to_number(param, &val, NULL);
if (*p || val < 0 || val > 0xffff) {
warnx("invalid queue specification "
"\"%s\". \"%s\" needs an integer"
- " value, or \"random\".",
- param, s);
+ " value, \"random\", or "
+ "\"roundrobin\".", param, s);
return (EINVAL);
}
}
@@ -3207,8 +3210,8 @@
.ecn = -1,
.ddp = -1,
.tls = -1,
- .txq = -1,
- .rxq = -1,
+ .txq = QUEUE_RANDOM,
+ .rxq = QUEUE_RANDOM,
.mss = -1,
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 8, 7:29 AM (2 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40411797
Default Alt Text
D34922.id105020.diff (2 KB)
Attached To
Mode
D34922: cxgbetool(8): User interface to round-robin queue selection via COP.
Attached
Detach File
Event Timeline
Log In to Comment