aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/batman-adv.txt8
-rw-r--r--Documentation/networking/ip-sysctl.txt17
-rw-r--r--Documentation/networking/netdevices.txt4
-rw-r--r--Documentation/networking/stmmac.txt33
4 files changed, 46 insertions, 16 deletions
diff --git a/Documentation/networking/batman-adv.txt b/Documentation/networking/batman-adv.txt
index 88d4afbdef98..c86d03f18a5b 100644
--- a/Documentation/networking/batman-adv.txt
+++ b/Documentation/networking/batman-adv.txt
@@ -1,4 +1,4 @@
1[state: 17-04-2011] 1[state: 21-08-2011]
2 2
3BATMAN-ADV 3BATMAN-ADV
4---------- 4----------
@@ -68,9 +68,9 @@ All mesh wide settings can be found in batman's own interface
68folder: 68folder:
69 69
70# ls /sys/class/net/bat0/mesh/ 70# ls /sys/class/net/bat0/mesh/
71# aggregated_ogms gw_bandwidth hop_penalty 71# aggregated_ogms fragmentation gw_sel_class vis_mode
72# bonding gw_mode orig_interval 72# ap_isolation gw_bandwidth hop_penalty
73# fragmentation gw_sel_class vis_mode 73# bonding gw_mode orig_interval
74 74
75 75
76There is a special folder for debugging information: 76There is a special folder for debugging information:
diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt
index 81546990f41c..98c8d4229f0a 100644
--- a/Documentation/networking/ip-sysctl.txt
+++ b/Documentation/networking/ip-sysctl.txt
@@ -1045,6 +1045,11 @@ conf/interface/*:
1045accept_ra - BOOLEAN 1045accept_ra - BOOLEAN
1046 Accept Router Advertisements; autoconfigure using them. 1046 Accept Router Advertisements; autoconfigure using them.
1047 1047
1048 It also determines whether or not to transmit Router
1049 Solicitations. If and only if the functional setting is to
1050 accept Router Advertisements, Router Solicitations will be
1051 transmitted.
1052
1048 Possible values are: 1053 Possible values are:
1049 0 Do not accept Router Advertisements. 1054 0 Do not accept Router Advertisements.
1050 1 Accept Router Advertisements if forwarding is disabled. 1055 1 Accept Router Advertisements if forwarding is disabled.
@@ -1115,14 +1120,14 @@ forwarding - BOOLEAN
1115 Possible values are: 1120 Possible values are:
1116 0 Forwarding disabled 1121 0 Forwarding disabled
1117 1 Forwarding enabled 1122 1 Forwarding enabled
1118 2 Forwarding enabled (Hybrid Mode)
1119 1123
1120 FALSE (0): 1124 FALSE (0):
1121 1125
1122 By default, Host behaviour is assumed. This means: 1126 By default, Host behaviour is assumed. This means:
1123 1127
1124 1. IsRouter flag is not set in Neighbour Advertisements. 1128 1. IsRouter flag is not set in Neighbour Advertisements.
1125 2. Router Solicitations are being sent when necessary. 1129 2. If accept_ra is TRUE (default), transmit Router
1130 Solicitations.
1126 3. If accept_ra is TRUE (default), accept Router 1131 3. If accept_ra is TRUE (default), accept Router
1127 Advertisements (and do autoconfiguration). 1132 Advertisements (and do autoconfiguration).
1128 4. If accept_redirects is TRUE (default), accept Redirects. 1133 4. If accept_redirects is TRUE (default), accept Redirects.
@@ -1133,16 +1138,10 @@ forwarding - BOOLEAN
1133 This means exactly the reverse from the above: 1138 This means exactly the reverse from the above:
1134 1139
1135 1. IsRouter flag is set in Neighbour Advertisements. 1140 1. IsRouter flag is set in Neighbour Advertisements.
1136 2. Router Solicitations are not sent. 1141 2. Router Solicitations are not sent unless accept_ra is 2.
1137 3. Router Advertisements are ignored unless accept_ra is 2. 1142 3. Router Advertisements are ignored unless accept_ra is 2.
1138 4. Redirects are ignored. 1143 4. Redirects are ignored.
1139 1144
1140 TRUE (2):
1141
1142 Hybrid mode. Same behaviour as TRUE, except for:
1143
1144 2. Router Solicitations are being sent when necessary.
1145
1146 Default: 0 (disabled) if global forwarding is disabled (default), 1145 Default: 0 (disabled) if global forwarding is disabled (default),
1147 otherwise 1 (enabled). 1146 otherwise 1 (enabled).
1148 1147
diff --git a/Documentation/networking/netdevices.txt b/Documentation/networking/netdevices.txt
index 87b3d15f523a..89358341682a 100644
--- a/Documentation/networking/netdevices.txt
+++ b/Documentation/networking/netdevices.txt
@@ -73,7 +73,7 @@ dev->hard_start_xmit:
73 has to lock by itself when needed. It is recommended to use a try lock 73 has to lock by itself when needed. It is recommended to use a try lock
74 for this and return NETDEV_TX_LOCKED when the spin lock fails. 74 for this and return NETDEV_TX_LOCKED when the spin lock fails.
75 The locking there should also properly protect against 75 The locking there should also properly protect against
76 set_multicast_list. Note that the use of NETIF_F_LLTX is deprecated. 76 set_rx_mode. Note that the use of NETIF_F_LLTX is deprecated.
77 Don't use it for new drivers. 77 Don't use it for new drivers.
78 78
79 Context: Process with BHs disabled or BH (timer), 79 Context: Process with BHs disabled or BH (timer),
@@ -92,7 +92,7 @@ dev->tx_timeout:
92 Context: BHs disabled 92 Context: BHs disabled
93 Notes: netif_queue_stopped() is guaranteed true 93 Notes: netif_queue_stopped() is guaranteed true
94 94
95dev->set_multicast_list: 95dev->set_rx_mode:
96 Synchronization: netif_tx_lock spinlock. 96 Synchronization: netif_tx_lock spinlock.
97 Context: BHs disabled 97 Context: BHs disabled
98 98
diff --git a/Documentation/networking/stmmac.txt b/Documentation/networking/stmmac.txt
index 57a24108b845..40ec92ce4c84 100644
--- a/Documentation/networking/stmmac.txt
+++ b/Documentation/networking/stmmac.txt
@@ -235,7 +235,38 @@ reset procedure etc).
235 o enh_desc.c: functions for handling enhanced descriptors 235 o enh_desc.c: functions for handling enhanced descriptors
236 o norm_desc.c: functions for handling normal descriptors 236 o norm_desc.c: functions for handling normal descriptors
237 237
2385) TODO: 2385) Debug Information
239
240The driver exports many information i.e. internal statistics,
241debug information, MAC and DMA registers etc.
242
243These can be read in several ways depending on the
244type of the information actually needed.
245
246For example a user can be use the ethtool support
247to get statistics: e.g. using: ethtool -S ethX
248(that shows the Management counters (MMC) if supported)
249or sees the MAC/DMA registers: e.g. using: ethtool -d ethX
250
251Compiling the Kernel with CONFIG_DEBUG_FS and enabling the
252STMMAC_DEBUG_FS option the driver will export the following
253debugfs entries:
254
255/sys/kernel/debug/stmmaceth/descriptors_status
256 To show the DMA TX/RX descriptor rings
257
258Developer can also use the "debug" module parameter to get
259further debug information.
260
261In the end, there are other macros (that cannot be enabled
262via menuconfig) to turn-on the RX/TX DMA debugging,
263specific MAC core debug printk etc. Others to enable the
264debug in the TX and RX processes.
265All these are only useful during the developing stage
266and should never enabled inside the code for general usage.
267In fact, these can generate an huge amount of debug messages.
268
2696) TODO:
239 o XGMAC is not supported. 270 o XGMAC is not supported.
240 o Review the timer optimisation code to use an embedded device that will be 271 o Review the timer optimisation code to use an embedded device that will be
241 available in new chip generations. 272 available in new chip generations.