Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src/sys/net



Module Name:    src
Committed By:   martin
Date:           Mon Jul 14 18:31:55 UTC 2025

Modified Files:
        src/sys/net [netbsd-10]: if.c route.c

Log Message:
Pull up following revision(s) (requested by ozaki-r in ticket #1136):

        sys/net/route.c: revision 1.238
        sys/net/route.c: revision 1.239
        sys/net/if.c: revision 1.535

route: do ifa_rtrequest() before rt_addaddr()

ifa_rtrequest() could change a given rtentry in the routing table.

route: lower the priority of the workqueues

PRI_SOFTNET makes the kthread of a workqueue SCHED_RR which can monopolize
a CPU if there are many rtentries to free in rt_free_work.  So lower the
prirority of the workqueues to PRI_USER which is the scheduling class for
time-sharing.

Also change rt_timer_wq as well just in case.

if: protect if_link_state_change_process with IFNET_LOCK

This change avoids race conditions between if_link_state_change handlers
and other operations on a target interface such as if_ioctl.


To generate a diff of this commit:
cvs rdiff -u -r1.528 -r1.528.2.1 src/sys/net/if.c
cvs rdiff -u -r1.235.2.2 -r1.235.2.3 src/sys/net/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index