summaryrefslogtreecommitdiffstats
path: root/share/man/man9/ifnet.9
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-06-07 16:46:28 +0000
committeryar <yar@FreeBSD.org>2004-06-07 16:46:28 +0000
commit193fe3a27ae9c5b4d32508cdfab4fcfcd285e69a (patch)
treeff23a8a5acf1fcb4d7718f69738c987568d02405 /share/man/man9/ifnet.9
parent0d6380d8e72cac4ae44c49d9bd0c64b7b409e896 (diff)
downloadFreeBSD-src-193fe3a27ae9c5b4d32508cdfab4fcfcd285e69a.zip
FreeBSD-src-193fe3a27ae9c5b4d32508cdfab4fcfcd285e69a.tar.gz
1. There are interface capabilities to be used by "lower" kernel
components as well, i.e., polling. 2. Stress that if_capenable should be modified only from within the interface driver because it solely knows about how to control the capabilities.
Diffstat (limited to 'share/man/man9/ifnet.9')
-rw-r--r--share/man/man9/ifnet.920
1 files changed, 18 insertions, 2 deletions
diff --git a/share/man/man9/ifnet.9 b/share/man/man9/ifnet.9
index be2a40b..29cdd52 100644
--- a/share/man/man9/ifnet.9
+++ b/share/man/man9/ifnet.9
@@ -482,14 +482,30 @@ or may not support.
These capabilities are very hardware-specific
and allow, when enabled,
to offload specific network processing to the interface
-or to offer a particular feature for use by upper layers.
+or to offer a particular feature for use by other kernel parts.
.Pp
-It should be noted that a capability can be completely
+It should be stressed that a capability can be completely
uncontrolled (i.e., stay always enabled with no way to disable it)
or allow limited control over itself (e.g., depend on another
capability's state.)
Such peculiarities are determined solely by the hardware and driver
of a particular interface.
+Only the driver possesses
+the knowledge on whether and how the interface capabilities
+can be controlled.
+Consequently, capabilities flags in
+.Va if_capenable
+should never be modified directly by kernel code other than
+the interface driver.
+The command
+.Dv SIOCSIFCAP
+to
+.Fn ifioctl
+is the dedicated means to attempt altering
+.Va if_capenable
+on an interface.
+Userland code shall use
+.Xr ioctl 2 .
.Pp
The following capabilities are currently supported by the system:
.Bl -tag -width ".Dv IFCAP_VLAN_HWTAGGING" -offset indent
OpenPOWER on IntegriCloud