FreeBSD Bugzilla – Attachment 227603 Details for
Bug 257965
[fib_algo][dxr] inbound dropp on interfaces
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Yield CPU during long DXR updates, add more diagnostic counters
dxr_trie_fix.fidd (text/plain), 563 bytes, created by
Marko Zec
on 2021-09-02 08:26:39 UTC
(
hide
)
Description:
Yield CPU during long DXR updates, add more diagnostic counters
Filename:
MIME Type:
Creator:
Marko Zec
Created:
2021-09-02 08:26:39 UTC
Size:
563 bytes
patch
obsolete
>diff --git a/sys/netinet/in_fib_dxr.c b/sys/netinet/in_fib_dxr.c >index ec32819a5a6d..ff694101a36d 100644 >--- a/sys/netinet/in_fib_dxr.c >+++ b/sys/netinet/in_fib_dxr.c >@@ -915,7 +915,13 @@ dxr_build(struct dxr *dxr) > > for (i = da->updates_low >> dxr_x; i <= da->updates_high >> dxr_x; > i++) { >- trie_unref(da, i); >+ if (!trie_rebuild) { >+ for (int j = 0, m = 0; j < (1 << dxr_x); j += 32) >+ m |= da->updates_mask[((i << dxr_x) + j) >> 5]; >+ if (m == 0) >+ continue; >+ trie_unref(da, i); >+ } > ti = trie_ref(da, i); > if (ti < 0) > return;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257965
:
227381
|
227589
|
227590
|
227603
|
227604
|
227786
|
227830
|
227882