Skip to content

Commit 2da2c66

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (29 commits) bridge: fix a possible net_device leak net: Documentation: RFC 2553bis is now RFC 3493 atm: br2684: Fix oops due to skb->dev being NULL ipv6: Fix ipv6_getsockopt for IPV6_2292PKTOPTIONS net: netdev-features.txt update to Documentation/networking/00-INDEX vlan: reset headers on accel emulation path forcedeth: call vlan_mode only if hw supports vlans via-velocity: remove non-tagged packet filtering bonding:reset backup and inactive flag of slave net_sched: fix port mirror/redirect stats reporting sit tunnels: propagate IPv6 transport class to IPv4 Type of Service gianfar: reduce stack usage in gianfar_ethtool.c net: minor update to Documentation/networking/scaling.txt net: add missing entries to Documentation/networking/00-INDEX gianfar: prevent buggy hw rx vlan tagging net: sh_eth: Fix build by forgot including linux/interrupt.h drivers/net/can/sja1000/plx_pci.c: eliminate double free usbnet/cdc_ncm: Don't use stack variables for DMA vmxnet3: Don't enable vlan filters in promiscuous mode. iwlagn: sysfs couldn't find the priv pointer ...
2 parents 14c62e7 + 11f3a6b commit 2da2c66

27 files changed

Lines changed: 433 additions & 110 deletions

File tree

‎Documentation/networking/00-INDEX‎

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
00-INDEX
22
- this file
3+
3c359.txt
4+
- information on the 3Com TokenLink Velocity XL (3c5359) driver.
35
3c505.txt
46
- information on the 3Com EtherLink Plus (3c505) driver.
7+
3c509.txt
8+
- information on the 3Com Etherlink III Series Ethernet cards.
59
6pack.txt
610
- info on the 6pack protocol, an alternative to KISS for AX.25
711
DLINK.txt
812
- info on the D-Link DE-600/DE-620 parallel port pocket adapters
913
PLIP.txt
1014
- PLIP: The Parallel Line Internet Protocol device driver
15+
README.ipw2100
16+
- README for the Intel PRO/Wireless 2100 driver.
17+
README.ipw2200
18+
- README for the Intel PRO/Wireless 2915ABG and 2200BG driver.
1119
README.sb1000
1220
- info on General Instrument/NextLevel SURFboard1000 cable modem.
1321
alias.txt
@@ -20,8 +28,12 @@ atm.txt
2028
- info on where to get ATM programs and support for Linux.
2129
ax25.txt
2230
- info on using AX.25 and NET/ROM code for Linux
31+
batman-adv.txt
32+
- B.A.T.M.A.N routing protocol on top of layer 2 Ethernet Frames.
2333
baycom.txt
2434
- info on the driver for Baycom style amateur radio modems
35+
bonding.txt
36+
- Linux Ethernet Bonding Driver HOWTO: link aggregation in Linux.
2537
bridge.txt
2638
- where to get user space programs for ethernet bridging with Linux.
2739
can.txt
@@ -34,32 +46,60 @@ cxacru.txt
3446
- Conexant AccessRunner USB ADSL Modem
3547
cxacru-cf.py
3648
- Conexant AccessRunner USB ADSL Modem configuration file parser
49+
cxgb.txt
50+
- Release Notes for the Chelsio N210 Linux device driver.
51+
dccp.txt
52+
- the Datagram Congestion Control Protocol (DCCP) (RFC 4340..42).
3753
de4x5.txt
3854
- the Digital EtherWORKS DE4?? and DE5?? PCI Ethernet driver
3955
decnet.txt
4056
- info on using the DECnet networking layer in Linux.
4157
depca.txt
4258
- the Digital DEPCA/EtherWORKS DE1?? and DE2?? LANCE Ethernet driver
59+
dl2k.txt
60+
- README for D-Link DL2000-based Gigabit Ethernet Adapters (dl2k.ko).
61+
dm9000.txt
62+
- README for the Simtec DM9000 Network driver.
4363
dmfe.txt
4464
- info on the Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver.
65+
dns_resolver.txt
66+
- The DNS resolver module allows kernel servies to make DNS queries.
67+
driver.txt
68+
- Softnet driver issues.
4569
e100.txt
4670
- info on Intel's EtherExpress PRO/100 line of 10/100 boards
4771
e1000.txt
4872
- info on Intel's E1000 line of gigabit ethernet boards
73+
e1000e.txt
74+
- README for the Intel Gigabit Ethernet Driver (e1000e).
4975
eql.txt
5076
- serial IP load balancing
5177
ewrk3.txt
5278
- the Digital EtherWORKS 3 DE203/4/5 Ethernet driver
79+
fib_trie.txt
80+
- Level Compressed Trie (LC-trie) notes: a structure for routing.
5381
filter.txt
5482
- Linux Socket Filtering
5583
fore200e.txt
5684
- FORE Systems PCA-200E/SBA-200E ATM NIC driver info.
5785
framerelay.txt
5886
- info on using Frame Relay/Data Link Connection Identifier (DLCI).
87+
gen_stats.txt
88+
- Generic networking statistics for netlink users.
89+
generic_hdlc.txt
90+
- The generic High Level Data Link Control (HDLC) layer.
5991
generic_netlink.txt
6092
- info on Generic Netlink
93+
gianfar.txt
94+
- Gianfar Ethernet Driver.
6195
ieee802154.txt
6296
- Linux IEEE 802.15.4 implementation, API and drivers
97+
ifenslave.c
98+
- Configure network interfaces for parallel routing (bonding).
99+
igb.txt
100+
- README for the Intel Gigabit Ethernet Driver (igb).
101+
igbvf.txt
102+
- README for the Intel Gigabit Ethernet Driver (igbvf).
63103
ip-sysctl.txt
64104
- /proc/sys/net/ipv4/* variables
65105
ip_dynaddr.txt
@@ -68,41 +108,117 @@ ipddp.txt
68108
- AppleTalk-IP Decapsulation and AppleTalk-IP Encapsulation
69109
iphase.txt
70110
- Interphase PCI ATM (i)Chip IA Linux driver info.
111+
ipv6.txt
112+
- Options to the ipv6 kernel module.
113+
ipvs-sysctl.txt
114+
- Per-inode explanation of the /proc/sys/net/ipv4/vs interface.
71115
irda.txt
72116
- where to get IrDA (infrared) utilities and info for Linux.
117+
ixgb.txt
118+
- README for the Intel 10 Gigabit Ethernet Driver (ixgb).
119+
ixgbe.txt
120+
- README for the Intel 10 Gigabit Ethernet Driver (ixgbe).
121+
ixgbevf.txt
122+
- README for the Intel Virtual Function (VF) Driver (ixgbevf).
123+
l2tp.txt
124+
- User guide to the L2TP tunnel protocol.
73125
lapb-module.txt
74126
- programming information of the LAPB module.
75127
ltpc.txt
76128
- the Apple or Farallon LocalTalk PC card driver
129+
mac80211-injection.txt
130+
- HOWTO use packet injection with mac80211
77131
multicast.txt
78132
- Behaviour of cards under Multicast
133+
multiqueue.txt
134+
- HOWTO for multiqueue network device support.
135+
netconsole.txt
136+
- The network console module netconsole.ko: configuration and notes.
137+
netdev-features.txt
138+
- Network interface features API description.
79139
netdevices.txt
80140
- info on network device driver functions exported to the kernel.
141+
netif-msg.txt
142+
- Design of the network interface message level setting (NETIF_MSG_*).
143+
nfc.txt
144+
- The Linux Near Field Communication (NFS) subsystem.
81145
olympic.txt
82146
- IBM PCI Pit/Pit-Phy/Olympic Token Ring driver info.
147+
operstates.txt
148+
- Overview of network interface operational states.
149+
packet_mmap.txt
150+
- User guide to memory mapped packet socket rings (PACKET_[RT]X_RING).
151+
phonet.txt
152+
- The Phonet packet protocol used in Nokia cellular modems.
153+
phy.txt
154+
- The PHY abstraction layer.
155+
pktgen.txt
156+
- User guide to the kernel packet generator (pktgen.ko).
83157
policy-routing.txt
84158
- IP policy-based routing
159+
ppp_generic.txt
160+
- Information about the generic PPP driver.
161+
proc_net_tcp.txt
162+
- Per inode overview of the /proc/net/tcp and /proc/net/tcp6 interfaces.
163+
radiotap-headers.txt
164+
- Background on radiotap headers.
85165
ray_cs.txt
86166
- Raylink Wireless LAN card driver info.
167+
rds.txt
168+
- Background on the reliable, ordered datagram delivery method RDS.
169+
regulatory.txt
170+
- Overview of the Linux wireless regulatory infrastructure.
171+
rxrpc.txt
172+
- Guide to the RxRPC protocol.
173+
s2io.txt
174+
- Release notes for Neterion Xframe I/II 10GbE driver.
175+
scaling.txt
176+
- Explanation of network scaling techniques: RSS, RPS, RFS, aRFS, XPS.
177+
sctp.txt
178+
- Notes on the Linux kernel implementation of the SCTP protocol.
179+
secid.txt
180+
- Explanation of the secid member in flow structures.
87181
skfp.txt
88182
- SysKonnect FDDI (SK-5xxx, Compaq Netelligent) driver info.
89183
smc9.txt
90184
- the driver for SMC's 9000 series of Ethernet cards
91185
smctr.txt
92186
- SMC TokenCard TokenRing Linux driver info.
187+
spider-net.txt
188+
- README for the Spidernet Driver (as found in PS3 / Cell BE).
189+
stmmac.txt
190+
- README for the STMicro Synopsys Ethernet driver.
191+
tc-actions-env-rules.txt
192+
- rules for traffic control (tc) actions.
193+
timestamping.txt
194+
- overview of network packet timestamping variants.
93195
tcp.txt
94196
- short blurb on how TCP output takes place.
197+
tcp-thin.txt
198+
- kernel tuning options for low rate 'thin' TCP streams.
95199
tlan.txt
96200
- ThunderLAN (Compaq Netelligent 10/100, Olicom OC-2xxx) driver info.
97201
tms380tr.txt
98202
- SysKonnect Token Ring ISA/PCI adapter driver info.
203+
tproxy.txt
204+
- Transparent proxy support user guide.
99205
tuntap.txt
100206
- TUN/TAP device driver, allowing user space Rx/Tx of packets.
207+
udplite.txt
208+
- UDP-Lite protocol (RFC 3828) introduction.
101209
vortex.txt
102210
- info on using 3Com Vortex (3c590, 3c592, 3c595, 3c597) Ethernet cards.
211+
vxge.txt
212+
- README for the Neterion X3100 PCIe Server Adapter.
103213
x25.txt
104214
- general info on X.25 development.
105215
x25-iface.txt
106216
- description of the X.25 Packet Layer to LAPB device interface.
217+
xfrm_proc.txt
218+
- description of the statistics package for XFRM.
219+
xfrm_sync.txt
220+
- sync patches for XFRM enable migration of an SA between hosts.
221+
xfrm_sysctl.txt
222+
- description of the XFRM configuration options.
107223
z8530drv.txt
108224
- info about Linux driver for Z8530 based HDLC cards for AX.25

‎Documentation/networking/ip-sysctl.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ bindv6only - BOOLEAN
992992
TRUE: disable IPv4-mapped address feature
993993
FALSE: enable IPv4-mapped address feature
994994

995-
Default: FALSE (as specified in RFC2553bis)
995+
Default: FALSE (as specified in RFC3493)
996996

997997
IPv6 Fragmentation:
998998

‎Documentation/networking/scaling.txt‎

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ module parameter for specifying the number of hardware queues to
5252
configure. In the bnx2x driver, for instance, this parameter is called
5353
num_queues. A typical RSS configuration would be to have one receive queue
5454
for each CPU if the device supports enough queues, or otherwise at least
55-
one for each cache domain at a particular cache level (L1, L2, etc.).
55+
one for each memory domain, where a memory domain is a set of CPUs that
56+
share a particular memory level (L1, L2, NUMA node, etc.).
5657

5758
The indirection table of an RSS device, which resolves a queue by masked
5859
hash, is usually programmed by the driver at initialization. The
@@ -82,11 +83,17 @@ RSS should be enabled when latency is a concern or whenever receive
8283
interrupt processing forms a bottleneck. Spreading load between CPUs
8384
decreases queue length. For low latency networking, the optimal setting
8485
is to allocate as many queues as there are CPUs in the system (or the
85-
NIC maximum, if lower). Because the aggregate number of interrupts grows
86-
with each additional queue, the most efficient high-rate configuration
86+
NIC maximum, if lower). The most efficient high-rate configuration
8787
is likely the one with the smallest number of receive queues where no
88-
CPU that processes receive interrupts reaches 100% utilization. Per-cpu
89-
load can be observed using the mpstat utility.
88+
receive queue overflows due to a saturated CPU, because in default
89+
mode with interrupt coalescing enabled, the aggregate number of
90+
interrupts (and thus work) grows with each additional queue.
91+
92+
Per-cpu load can be observed using the mpstat utility, but note that on
93+
processors with hyperthreading (HT), each hyperthread is represented as
94+
a separate CPU. For interrupt handling, HT has shown no benefit in
95+
initial tests, so limit the number of queues to the number of CPU cores
96+
in the system.
9097

9198

9299
RPS: Receive Packet Steering
@@ -145,7 +152,7 @@ the bitmap.
145152
== Suggested Configuration
146153

147154
For a single queue device, a typical RPS configuration would be to set
148-
the rps_cpus to the CPUs in the same cache domain of the interrupting
155+
the rps_cpus to the CPUs in the same memory domain of the interrupting
149156
CPU. If NUMA locality is not an issue, this could also be all CPUs in
150157
the system. At high interrupt rate, it might be wise to exclude the
151158
interrupting CPU from the map since that already performs much work.
@@ -154,7 +161,7 @@ For a multi-queue system, if RSS is configured so that a hardware
154161
receive queue is mapped to each CPU, then RPS is probably redundant
155162
and unnecessary. If there are fewer hardware queues than CPUs, then
156163
RPS might be beneficial if the rps_cpus for each queue are the ones that
157-
share the same cache domain as the interrupting CPU for that queue.
164+
share the same memory domain as the interrupting CPU for that queue.
158165

159166

160167
RFS: Receive Flow Steering
@@ -326,7 +333,7 @@ The queue chosen for transmitting a particular flow is saved in the
326333
corresponding socket structure for the flow (e.g. a TCP connection).
327334
This transmit queue is used for subsequent packets sent on the flow to
328335
prevent out of order (ooo) packets. The choice also amortizes the cost
329-
of calling get_xps_queues() over all packets in the connection. To avoid
336+
of calling get_xps_queues() over all packets in the flow. To avoid
330337
ooo packets, the queue for a flow can subsequently only be changed if
331338
skb->ooo_okay is set for a packet in the flow. This flag indicates that
332339
there are no outstanding packets in the flow, so the transmit queue can

‎drivers/net/bonding/bond_main.c‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3419,9 +3419,27 @@ static int bond_xmit_hash_policy_l2(struct sk_buff *skb, int count)
34193419
static int bond_open(struct net_device *bond_dev)
34203420
{
34213421
struct bonding *bond = netdev_priv(bond_dev);
3422+
struct slave *slave;
3423+
int i;
34223424

34233425
bond->kill_timers = 0;
34243426

3427+
/* reset slave->backup and slave->inactive */
3428+
read_lock(&bond->lock);
3429+
if (bond->slave_cnt > 0) {
3430+
read_lock(&bond->curr_slave_lock);
3431+
bond_for_each_slave(bond, slave, i) {
3432+
if ((bond->params.mode == BOND_MODE_ACTIVEBACKUP)
3433+
&& (slave != bond->curr_active_slave)) {
3434+
bond_set_slave_inactive_flags(slave);
3435+
} else {
3436+
bond_set_slave_active_flags(slave);
3437+
}
3438+
}
3439+
read_unlock(&bond->curr_slave_lock);
3440+
}
3441+
read_unlock(&bond->lock);
3442+
34253443
INIT_DELAYED_WORK(&bond->mcast_work, bond_resend_igmp_join_requests_delayed);
34263444

34273445
if (bond_is_lb(bond)) {

‎drivers/net/can/sja1000/plx_pci.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static void plx_pci_del_card(struct pci_dev *pdev)
408408
struct sja1000_priv *priv;
409409
int i = 0;
410410

411-
for (i = 0; i < card->channels; i++) {
411+
for (i = 0; i < PLX_PCI_MAX_CHAN; i++) {
412412
dev = card->net_dev[i];
413413
if (!dev)
414414
continue;
@@ -536,7 +536,6 @@ static int __devinit plx_pci_add_card(struct pci_dev *pdev,
536536
if (err) {
537537
dev_err(&pdev->dev, "Registering device failed "
538538
"(err=%d)\n", err);
539-
free_sja1000dev(dev);
540539
goto failure_cleanup;
541540
}
542541

@@ -549,6 +548,7 @@ static int __devinit plx_pci_add_card(struct pci_dev *pdev,
549548
dev_err(&pdev->dev, "Channel #%d not detected\n",
550549
i + 1);
551550
free_sja1000dev(dev);
551+
card->net_dev[i] = NULL;
552552
}
553553
}
554554

‎drivers/net/e1000e/e1000.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ struct e1000_info;
155155
#define HV_M_STATUS_SPEED_1000 0x0200
156156
#define HV_M_STATUS_LINK_UP 0x0040
157157

158+
#define E1000_ICH_FWSM_PCIM2PCI 0x01000000 /* ME PCIm-to-PCI active */
159+
#define E1000_ICH_FWSM_PCIM2PCI_COUNT 2000
160+
158161
/* Time to wait before putting the device into D3 if there's no link (in ms). */
159162
#define LINK_TIMEOUT 100
160163

@@ -454,6 +457,7 @@ struct e1000_info {
454457
#define FLAG2_DISABLE_AIM (1 << 8)
455458
#define FLAG2_CHECK_PHY_HANG (1 << 9)
456459
#define FLAG2_NO_DISABLE_RX (1 << 10)
460+
#define FLAG2_PCIM2PCI_ARBITER_WA (1 << 11)
457461

458462
#define E1000_RX_DESC_PS(R, i) \
459463
(&(((union e1000_rx_desc_packet_split *)((R).desc))[i]))

0 commit comments

Comments
 (0)