NetBSD/sys/netcan
ozaki-r ab3cd725ea Unify IFEF_*_MPSAFE into IFEF_MPSAFE
There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.

Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).

Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.

Proposed on tech-kern@ and tech-net@
2017-11-16 03:07:17 +00:00
..
Makefile
can.c
can.h
can_link.h
can_pcb.c Refuse to bind to a non-CAN interface. 2017-06-09 08:21:41 +00:00
can_pcb.h
can_proto.c merge the bouyer-socketcan branch to HEAD. 2017-05-27 21:02:54 +00:00
can_var.h
files.netcan
if_canloop.c Unify IFEF_*_MPSAFE into IFEF_MPSAFE 2017-11-16 03:07:17 +00:00