1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/sys/netpfil/ipfw
Hans Petter Selasky 3da1cf1e88 Extend the meaning of the CTLFLAG_TUN flag to automatically check if
there is an environment variable which shall initialize the SYSCTL
during early boot. This works for all SYSCTL types both statically and
dynamically created ones, except for the SYSCTL NODE type and SYSCTLs
which belong to VNETs. A new flag, CTLFLAG_NOFETCH, has been added to
be used in the case a tunable sysctl has a custom initialisation
function allowing the sysctl to still be marked as a tunable. The
kernel SYSCTL API is mostly the same, with a few exceptions for some
special operations like iterating childrens of a static/extern SYSCTL
node. This operation should probably be made into a factored out
common macro, hence some device drivers use this. The reason for
changing the SYSCTL API was the need for a SYSCTL parent OID pointer
and not only the SYSCTL parent OID list pointer in order to quickly
generate the sysctl path. The motivation behind this patch is to avoid
parameter loading cludges inside the OFED driver subsystem. Instead of
adding special code to the OFED driver subsystem to post-load tunables
into dynamically created sysctls, we generalize this in the kernel.

Other changes:
- Corrected a possibly incorrect sysctl name from "hw.cbb.intr_mask"
to "hw.pcic.intr_mask".
- Removed redundant TUNABLE statements throughout the kernel.
- Some minor code rewrites in connection to removing not needed
TUNABLE statements.
- Added a missing SYSCTL_DECL().
- Wrapped two very long lines.
- Avoid malloc()/free() inside sysctl string handling, in case it is
called to initialize a sysctl from a tunable, hence malloc()/free() is
not ready when sysctls from the sysctl dataset are registered.
- Bumped FreeBSD version to indicate SYSCTL API change.

MFC after:	2 weeks
Sponsored by:	Mellanox Technologies
2014-06-27 16:33:43 +00:00
..
test
dn_heap.c
dn_heap.h
dn_sched_fifo.c
dn_sched_prio.c
dn_sched_qfq.c
dn_sched_rr.c
dn_sched_wf2q.c
dn_sched.h add a counter on the struct mq (a queue of mbufs), 2013-11-22 05:02:37 +00:00
dummynet.txt Summary: Two quick edits to the implementation notes as they're no 2014-02-15 18:36:31 +00:00
ip_dn_glue.c DNOLD_IS_ECN introduced by r266941 is not required. 2014-06-01 20:19:17 +00:00
ip_dn_io.c ECN marking implenetation for dummynet. 2014-06-01 07:28:24 +00:00
ip_dn_private.h add a counter on the struct mq (a queue of mbufs), 2013-11-22 05:02:37 +00:00
ip_dummynet.c ECN marking implenetation for dummynet. 2014-06-01 07:28:24 +00:00
ip_fw2.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
ip_fw_dynamic.c Under sys/netpfil/ipfw, surround two IPv6-specific static functions with 2014-02-15 12:25:01 +00:00
ip_fw_log.c make this code compile in userspace on OSX 2013-11-22 05:00:18 +00:00
ip_fw_nat.c Since ipfw nat configures all options in one step, we should set all bits 2014-05-18 14:25:19 +00:00
ip_fw_pfil.c Set oif only for outgoing packets. 2014-04-16 14:37:11 +00:00
ip_fw_private.h Reorder struct ip_fw_chain: 2014-01-24 09:13:30 +00:00
ip_fw_sockopt.c Free resources and error cases; re-indent a curly brace while here. 2014-04-13 21:13:33 +00:00
ip_fw_table.c Fix wrong formatting of 0.0.0.0/X table records in ipfw(8). 2014-05-17 13:45:03 +00:00