netlink: move NETLINK define to opt_global.hMove the NETLINK define into opt_global.h so we can rely on it beingset correctly, without having to remember to include opt_netlink.h.This ensures tha
netlink: move NETLINK define to opt_global.hMove the NETLINK define into opt_global.h so we can rely on it beingset correctly, without having to remember to include opt_netlink.h.This ensures that the NETLINK define is correctly set. If not wemay end up with unloadable modules, due to missing symbols (such asnlmsg_get_group_writer).PR: 274306Reviewed by: imp, markjMFC after: 3 daysDifferential Revision: https://reviews.freebsd.org/D42179(cherry picked from commit ab393e9548f8cc0ee28499c411963b798ebb38a5)
show more ...
sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
netlink: add netlink KPI to the kernel by defaultThis change does the following:Base Netlink KPIs (ability to register the family, parse and/or write a Netlink message) are always present in the
netlink: add netlink KPI to the kernel by defaultThis change does the following:Base Netlink KPIs (ability to register the family, parse and/or write a Netlink message) are always present in the kernel. Specifically,* Implementation of genetlink family/group registration/removal, some base accessors (netlink_generic_kpi.c, 260 LoC) are compiled in unconditionally.* Basic TLV parser functions (netlink_message_parser.c, 507 LoC) are compiled in unconditionally.* Glue functions (netlink<>rtsock), malloc/core sysctl definitions (netlink_glue.c, 259 LoC) are compiled in unconditionally.* The rest of the KPI _functions_ are defined in the netlink_glue.c, but their implementation calls a pointer to either the stub function or the actual function, depending on whether the module is loaded or not.This approach allows to have only 1k LoC out of ~3.7k LoC (current sys/netlink implementation) in the kernel, which will not grow further.It also allows for the generic netlink kernel customers to load successfully without requiring Netlink module and operate correctly once Netlink module is loaded.Reviewed by: impMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D39269
sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
Move most of the 15 variations on generating opt_inet.h andopt_inet6.h into kmod.mk by forcing almost everybody to eat the samedogfood. While at it, consolidate the opt_bpf.h and opt_mroute.htarge
Move most of the 15 variations on generating opt_inet.h andopt_inet6.h into kmod.mk by forcing almost everybody to eat the samedogfood. While at it, consolidate the opt_bpf.h and opt_mroute.htargets here too.
Use src.opts.mk in preference to bsd.own.mk except where we need stufffrom the latter.
- Rename if_carp.ko to carp.ko.- carp.ko depends on sha1.c