Skip to content

Commit 6dbbd92

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: (45 commits) be2net: Add detect UE feature for Lancer be2net: Prevent CQ full condition for Lancer be2net: Fix disabling multicast promiscous mode be2net: Fix endian issue in RX filter command af_packet: de-inline some helper functions MAINTAINERS: Add can-gw include to maintained files net: Add back alignment for size for __alloc_skb net: add missing bh_unlock_sock() calls l2tp: fix race in l2tp_recv_dequeue() ixgbevf: Update release version ixgbe: DCB, return max for IEEE traffic classes ixgbe: fix reading of the buffer returned by the firmware ixgbe: Fix compiler warnings ixgbe: fix smatch splat due to missing NULL check ixgbe: fix disabling of Tx laser at probe ixgbe: Fix link issues caused by a reset while interface is down igb: Fix for I347AT4 PHY cable length unit detection e100: make sure vlan support isn't advertised on old adapters e1000e: demote a debugging WARN to a debug log message net: fix typo in drivers/net/ethernet/xilinx/ll_temac_main.c ...
2 parents d674806 + e1cfb67 commit 6dbbd92

77 files changed

Lines changed: 505 additions & 421 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/networking/ipvs-sysctl.txt‎

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ amemthresh - INTEGER
1515
enabled and the variable is automatically set to 2, otherwise
1616
the strategy is disabled and the variable is set to 1.
1717

18+
conntrack - BOOLEAN
19+
0 - disabled (default)
20+
not 0 - enabled
21+
22+
If set, maintain connection tracking entries for
23+
connections handled by IPVS.
24+
25+
This should be enabled if connections handled by IPVS are to be
26+
also handled by stateful firewall rules. That is, iptables rules
27+
that make use of connection tracking. It is a performance
28+
optimisation to disable this setting otherwise.
29+
30+
Connections handled by the IPVS FTP application module
31+
will have connection tracking entries regardless of this setting.
32+
33+
Only available when IPVS is compiled with CONFIG_IP_VS_NFCT enabled.
34+
1835
cache_bypass - BOOLEAN
1936
0 - disabled (default)
2037
not 0 - enabled
@@ -39,7 +56,7 @@ debug_level - INTEGER
3956
11 - IPVS packet handling (ip_vs_in/ip_vs_out)
4057
12 or more - packet traversal
4158

42-
Only available when IPVS is compiled with the CONFIG_IPVS_DEBUG
59+
Only available when IPVS is compiled with CONFIG_IP_VS_DEBUG enabled.
4360

4461
Higher debugging levels include the messages for lower debugging
4562
levels, so setting debug level 2, includes level 0, 1 and 2
@@ -123,13 +140,11 @@ nat_icmp_send - BOOLEAN
123140
secure_tcp - INTEGER
124141
0 - disabled (default)
125142

126-
The secure_tcp defense is to use a more complicated state
127-
transition table and some possible short timeouts of each
128-
state. In the VS/NAT, it delays the entering the ESTABLISHED
129-
until the real server starts to send data and ACK packet
130-
(after 3-way handshake).
143+
The secure_tcp defense is to use a more complicated TCP state
144+
transition table. For VS/NAT, it also delays entering the
145+
TCP ESTABLISHED state until the three way handshake is completed.
131146

132-
The value definition is the same as that of drop_entry or
147+
The value definition is the same as that of drop_entry and
133148
drop_packet.
134149

135150
sync_threshold - INTEGER
@@ -141,3 +156,36 @@ sync_threshold - INTEGER
141156
synchronized, every time the number of its incoming packets
142157
modulus 50 equals the threshold. The range of the threshold is
143158
from 0 to 49.
159+
160+
snat_reroute - BOOLEAN
161+
0 - disabled
162+
not 0 - enabled (default)
163+
164+
If enabled, recalculate the route of SNATed packets from
165+
realservers so that they are routed as if they originate from the
166+
director. Otherwise they are routed as if they are forwarded by the
167+
director.
168+
169+
If policy routing is in effect then it is possible that the route
170+
of a packet originating from a director is routed differently to a
171+
packet being forwarded by the director.
172+
173+
If policy routing is not in effect then the recalculated route will
174+
always be the same as the original route so it is an optimisation
175+
to disable snat_reroute and avoid the recalculation.
176+
177+
sync_version - INTEGER
178+
default 1
179+
180+
The version of the synchronisation protocol used when sending
181+
synchronisation messages.
182+
183+
0 selects the original synchronisation protocol (version 0). This
184+
should be used when sending synchronisation messages to a legacy
185+
system that only understands the original synchronisation protocol.
186+
187+
1 selects the current synchronisation protocol (version 1). This
188+
should be used where possible.
189+
190+
Kernels with this sync_version entry are able to receive messages
191+
of both version 1 and version 2 of the synchronisation protocol.

‎MAINTAINERS‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,7 @@ F: include/linux/can.h
17161716
F: include/linux/can/core.h
17171717
F: include/linux/can/bcm.h
17181718
F: include/linux/can/raw.h
1719+
F: include/linux/can/gw.h
17191720

17201721
CAN NETWORK DRIVERS
17211722
M: Wolfgang Grandegger <wg@grandegger.com>
@@ -4476,11 +4477,9 @@ F: Documentation/networking/vxge.txt
44764477
F: drivers/net/ethernet/neterion/
44774478

44784479
NETFILTER/IPTABLES/IPCHAINS
4479-
P: Rusty Russell
4480-
P: Marc Boucher
4481-
P: James Morris
44824480
P: Harald Welte
44834481
P: Jozsef Kadlecsik
4482+
M: Pablo Neira Ayuso <pablo@netfilter.org>
44844483
M: Patrick McHardy <kaber@trash.net>
44854484
L: netfilter-devel@vger.kernel.org
44864485
L: netfilter@vger.kernel.org

‎drivers/isdn/hisax/l3dss1.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ l3dss1_parse_facility(struct PStack *st, struct l3_process *pc,
353353
{ l3dss1_dummy_invoke(st, cr, id, ident, p, nlen);
354354
return;
355355
}
356-
#ifdef HISAX_DE_AOC
356+
#ifdef CONFIG_DE_AOC
357357
{
358358

359359
#define FOO1(s,a,b) \
@@ -422,9 +422,9 @@ l3dss1_parse_facility(struct PStack *st, struct l3_process *pc,
422422
#undef FOO1
423423

424424
}
425-
#else /* not HISAX_DE_AOC */
425+
#else /* not CONFIG_DE_AOC */
426426
l3_debug(st, "invoke break");
427-
#endif /* not HISAX_DE_AOC */
427+
#endif /* not CONFIG_DE_AOC */
428428
break;
429429
case 2: /* return result */
430430
/* if no process available handle separately */

‎drivers/net/bonding/bond_main.c‎

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ static int bond_set_carrier(struct bonding *bond)
550550
/*
551551
* Get link speed and duplex from the slave's base driver
552552
* using ethtool. If for some reason the call fails or the
553-
* values are invalid, fake speed and duplex to 100/Full
553+
* values are invalid, set speed and duplex to -1,
554554
* and return error.
555555
*/
556556
static int bond_update_speed_duplex(struct slave *slave)
@@ -560,9 +560,8 @@ static int bond_update_speed_duplex(struct slave *slave)
560560
u32 slave_speed;
561561
int res;
562562

563-
/* Fake speed and duplex */
564-
slave->speed = SPEED_100;
565-
slave->duplex = DUPLEX_FULL;
563+
slave->speed = -1;
564+
slave->duplex = -1;
566565

567566
res = __ethtool_get_settings(slave_dev, &ecmd);
568567
if (res < 0)
@@ -1751,16 +1750,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
17511750
new_slave->link = BOND_LINK_DOWN;
17521751
}
17531752

1754-
if (bond_update_speed_duplex(new_slave) &&
1755-
(new_slave->link != BOND_LINK_DOWN)) {
1756-
pr_warning("%s: Warning: failed to get speed and duplex from %s, assumed to be 100Mb/sec and Full.\n",
1757-
bond_dev->name, new_slave->dev->name);
1758-
1759-
if (bond->params.mode == BOND_MODE_8023AD) {
1760-
pr_warning("%s: Warning: Operation of 802.3ad mode requires ETHTOOL support in base driver for proper aggregator selection.\n",
1761-
bond_dev->name);
1762-
}
1763-
}
1753+
bond_update_speed_duplex(new_slave);
17641754

17651755
if (USES_PRIMARY(bond->params.mode) && bond->params.primary[0]) {
17661756
/* if there is a primary slave, remember it */
@@ -3220,6 +3210,7 @@ static int bond_slave_netdev_event(unsigned long event,
32203210
{
32213211
struct net_device *bond_dev = slave_dev->master;
32223212
struct bonding *bond = netdev_priv(bond_dev);
3213+
struct slave *slave = NULL;
32233214

32243215
switch (event) {
32253216
case NETDEV_UNREGISTER:
@@ -3230,20 +3221,16 @@ static int bond_slave_netdev_event(unsigned long event,
32303221
bond_release(bond_dev, slave_dev);
32313222
}
32323223
break;
3224+
case NETDEV_UP:
32333225
case NETDEV_CHANGE:
3234-
if (bond->params.mode == BOND_MODE_8023AD || bond_is_lb(bond)) {
3235-
struct slave *slave;
3226+
slave = bond_get_slave_by_dev(bond, slave_dev);
3227+
if (slave) {
3228+
u32 old_speed = slave->speed;
3229+
u8 old_duplex = slave->duplex;
32363230

3237-
slave = bond_get_slave_by_dev(bond, slave_dev);
3238-
if (slave) {
3239-
u32 old_speed = slave->speed;
3240-
u8 old_duplex = slave->duplex;
3241-
3242-
bond_update_speed_duplex(slave);
3243-
3244-
if (bond_is_lb(bond))
3245-
break;
3231+
bond_update_speed_duplex(slave);
32463232

3233+
if (bond->params.mode == BOND_MODE_8023AD) {
32473234
if (old_speed != slave->speed)
32483235
bond_3ad_adapter_speed_changed(slave);
32493236
if (old_duplex != slave->duplex)

‎drivers/net/bonding/bond_procfs.c‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,16 @@ static void bond_info_show_slave(struct seq_file *seq,
157157
seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name);
158158
seq_printf(seq, "MII Status: %s\n",
159159
(slave->link == BOND_LINK_UP) ? "up" : "down");
160-
seq_printf(seq, "Speed: %d Mbps\n", slave->speed);
161-
seq_printf(seq, "Duplex: %s\n", slave->duplex ? "full" : "half");
160+
if (slave->speed == -1)
161+
seq_printf(seq, "Speed: %s\n", "Unknown");
162+
else
163+
seq_printf(seq, "Speed: %d Mbps\n", slave->speed);
164+
165+
if (slave->duplex == -1)
166+
seq_printf(seq, "Duplex: %s\n", "Unknown");
167+
else
168+
seq_printf(seq, "Duplex: %s\n", slave->duplex ? "full" : "half");
169+
162170
seq_printf(seq, "Link Failure Count: %u\n",
163171
slave->link_failure_count);
164172

‎drivers/net/ethernet/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ config S6GMAC
159159
will be called s6gmac.
160160

161161
source "drivers/net/ethernet/seeq/Kconfig"
162+
source "drivers/net/ethernet/silan/Kconfig"
162163
source "drivers/net/ethernet/sis/Kconfig"
163164
source "drivers/net/ethernet/sfc/Kconfig"
164165
source "drivers/net/ethernet/sgi/Kconfig"

‎drivers/net/ethernet/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ obj-$(CONFIG_SH_ETH) += renesas/
5858
obj-$(CONFIG_NET_VENDOR_RDC) += rdc/
5959
obj-$(CONFIG_S6GMAC) += s6gmac.o
6060
obj-$(CONFIG_NET_VENDOR_SEEQ) += seeq/
61+
obj-$(CONFIG_NET_VENDOR_SILAN) += silan/
6162
obj-$(CONFIG_NET_VENDOR_SIS) += sis/
6263
obj-$(CONFIG_SFC) += sfc/
6364
obj-$(CONFIG_NET_VENDOR_SGI) += sgi/

‎drivers/net/ethernet/apple/Kconfig‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,6 @@ config BMAC
5252
To compile this driver as a module, choose M here: the module
5353
will be called bmac.
5454

55-
config MAC89x0
56-
tristate "Macintosh CS89x0 based ethernet cards"
57-
depends on MAC
58-
---help---
59-
Support for CS89x0 chipset based Ethernet cards. If you have a
60-
Nubus or LC-PDS network (Ethernet) card of this type, say Y and
61-
read the Ethernet-HOWTO, available from
62-
<http://www.tldp.org/docs.html#howto>.
63-
64-
To compile this driver as a module, choose M here. This module will
65-
be called mac89x0.
66-
6755
config MACMACE
6856
bool "Macintosh (AV) onboard MACE ethernet"
6957
depends on MAC

‎drivers/net/ethernet/apple/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
obj-$(CONFIG_MACE) += mace.o
66
obj-$(CONFIG_BMAC) += bmac.o
7-
obj-$(CONFIG_MAC89x0) += mac89x0.o
87
obj-$(CONFIG_MACMACE) += macmace.o

‎drivers/net/ethernet/cirrus/Kconfig‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ config NET_VENDOR_CIRRUS
66
bool "Cirrus devices"
77
default y
88
depends on ISA || EISA || MACH_IXDP2351 || ARCH_IXDP2X01 \
9-
|| MACH_MX31ADS || MACH_QQ2440 || (ARM && ARCH_EP93XX)
9+
|| MACH_MX31ADS || MACH_QQ2440 || (ARM && ARCH_EP93XX) || MAC
1010
---help---
1111
If you have a network (Ethernet) card belonging to this class, say Y
1212
and read the Ethernet-HOWTO, available from
@@ -47,4 +47,16 @@ config EP93XX_ETH
4747
This is a driver for the ethernet hardware included in EP93xx CPUs.
4848
Say Y if you are building a kernel for EP93xx based devices.
4949

50+
config MAC89x0
51+
tristate "Macintosh CS89x0 based ethernet cards"
52+
depends on MAC
53+
---help---
54+
Support for CS89x0 chipset based Ethernet cards. If you have a
55+
Nubus or LC-PDS network (Ethernet) card of this type, say Y and
56+
read the Ethernet-HOWTO, available from
57+
<http://www.tldp.org/docs.html#howto>.
58+
59+
To compile this driver as a module, choose M here. This module will
60+
be called mac89x0.
61+
5062
endif # NET_VENDOR_CIRRUS

0 commit comments

Comments
 (0)