Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169919035
D48589.id149703.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
795 B
Referenced Files
None
Subscribers
None
D48589.id149703.diff
View Options
diff --git a/sys/dev/bnxt/bnxt_en/bnxt_dcb.c b/sys/dev/bnxt/bnxt_en/bnxt_dcb.c
--- a/sys/dev/bnxt/bnxt_en/bnxt_dcb.c
+++ b/sys/dev/bnxt/bnxt_en/bnxt_dcb.c
@@ -350,7 +350,7 @@
}
n = data->count;
- for (i = 0; i < n; i++, fw_app++) {
+ for (i = 0; i < n && *num_inputs < 128; i++, fw_app++) {
app[*num_inputs].priority = fw_app->priority;
app[*num_inputs].protocol = htobe16(fw_app->protocol_id);
app[*num_inputs].selector = fw_app->protocol_selector;
@@ -503,7 +503,7 @@
goto end;
entry_cnt = le16toh(resp->entry_cnt);
- for (i = 0; i < entry_cnt; i++) {
+ for (i = 0; i < entry_cnt && *num_inputs < 128; i++) {
app[*num_inputs].priority = dscp2pri[i].pri;
app[*num_inputs].protocol = dscp2pri[i].dscp;
app[*num_inputs].selector = BNXT_IEEE_8021QAZ_APP_SEL_DSCP;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 3, 11:29 PM (18 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38171437
Default Alt Text
D48589.id149703.diff (795 B)
Attached To
Mode
D48589: bnxt_en: Retrieve maximum of 128 APP TLVs
Attached
Detach File
Event Timeline
Log In to Comment