Skip to content

Commit c31eeac

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking changes from David Miller: 1) Multiply in netfilter IPVS can overflow when calculating destination weight. From Simon Kirby. 2) Use after free fixes in IPVS from Julian Anastasov. 3) SFC driver bug fixes from Daniel Pieczko. 4) Memory leak in pcan_usb_core failure paths, from Alexey Khoroshilov. 5) Locking and encapsulation fixes to serial line CAN driver, from Andrew Naujoks. 6) Duplex and VF handling fixes to bnx2x driver from Yaniv Rosner, Eilon Greenstein, and Ariel Elior. 7) In lapb, if no other packets are outstanding, T1 timeouts actually stall things and no packet gets sent. Fix from Josselin Costanzi. 8) ICMP redirects should not make it to the socket error queues, from Duan Jiong. 9) Fix bugs in skge DMA mapping error handling, from Nikulas Patocka. 10) Fix setting of VLAN priority field on via-rhine driver, from Roget Luethi. 11) Fix TX stalls and VLAN promisc programming in be2net driver from Ajit Khaparde. 12) Packet padding doesn't get handled correctly in new usbnet SG support code, from Ming Lei. 13) Fix races in netdevice teardown wrt. network namespace closing. From Eric W. Biederman. 14) Fix potential missed initialization of net_secret if not TCP connections are openned. From Eric Dumazet. 15) Cinterion PLXX product ID in qmi_wwan driver is wrong, from Aleksander Morgado. 16) skb_cow_head() can change skb->data and thus packet header pointers, don't use stale ip_hdr reference in ip_tunnel code. 17) Backend state transition handling fixes in xen-netback, from Paul Durrant. 18) Packet offset for AH protocol is handled wrong in flow dissector, from Eric Dumazet. 19) Taking down an fq packet scheduler instance can leave stale packets in the queues, fix from Eric Dumazet. 20) Fix performance regressions introduced by TCP Small Queues. From Eric Dumazet. 21) IPV6 GRE tunneling code calculates max_headroom incorrectly, from Hannes Frederic Sowa. 22) Multicast timer handlers in ipv4 and ipv6 can be the last and final reference to the ipv4/ipv6 specific network device state, so use the reference put that will check and release the object if the reference hits zero. From Salam Noureddine. 23) Fix memory corruption in ip_tunnel driver, and use skb_push() instead of __skb_push() so that similar bugs are less hard to find. From Steffen Klassert. 24) Add forgotten hookup of rtnl_ops in SIT and ip6tnl drivers, from Nicolas Dichtel. 25) fq scheduler doesn't accurately rate limit in certain circumstances, from Eric Dumazet. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (103 commits) pkt_sched: fq: rate limiting improvements ip6tnl: allow to use rtnl ops on fb tunnel sit: allow to use rtnl ops on fb tunnel ip_tunnel: Remove double unregister of the fallback device ip_tunnel_core: Change __skb_push back to skb_push ip_tunnel: Add fallback tunnels to the hash lists ip_tunnel: Fix a memory corruption in ip_tunnel_xmit qlcnic: Fix SR-IOV configuration ll_temac: Reset dma descriptors indexes on ndo_open skbuff: size of hole is wrong in a comment ipv6 mcast: use in6_dev_put in timer handlers instead of __in6_dev_put ipv4 igmp: use in_dev_put in timer handlers instead of __in_dev_put ethernet: moxa: fix incorrect placement of __initdata tag ipv6: gre: correct calculation of max_headroom powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file Revert "powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file" bonding: Fix broken promiscuity reference counting issue tcp: TSQ can use a dynamic limit dm9601: fix IFF_ALLMULTI handling pkt_sched: fq: qdisc dismantle fixes ...
2 parents 0b93684 + 0eab5eb commit c31eeac

107 files changed

Lines changed: 1301 additions & 845 deletions

File tree

Some content is hidden

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

‎Documentation/devicetree/bindings/net/fsl-tsec-phy.txt‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ General Properties:
8686

8787
Clock Properties:
8888

89+
- fsl,cksel Timer reference clock source.
8990
- fsl,tclk-period Timer reference clock period in nanoseconds.
9091
- fsl,tmr-prsc Prescaler, divides the output clock.
9192
- fsl,tmr-add Frequency compensation value.
@@ -97,7 +98,7 @@ Clock Properties:
9798
clock. You must choose these carefully for the clock to work right.
9899
Here is how to figure good values:
99100

100-
TimerOsc = system clock MHz
101+
TimerOsc = selected reference clock MHz
101102
tclk_period = desired clock period nanoseconds
102103
NominalFreq = 1000 / tclk_period MHz
103104
FreqDivRatio = TimerOsc / NominalFreq (must be greater that 1.0)
@@ -114,13 +115,28 @@ Clock Properties:
114115
Pulse Per Second (PPS) signal, since this will be offered to the PPS
115116
subsystem to synchronize the Linux clock.
116117

118+
Reference clock source is determined by the value, which is holded
119+
in CKSEL bits in TMR_CTRL register. "fsl,cksel" property keeps the
120+
value, which will be directly written in those bits, that is why,
121+
according to reference manual, the next clock sources can be used:
122+
123+
<0> - external high precision timer reference clock (TSEC_TMR_CLK
124+
input is used for this purpose);
125+
<1> - eTSEC system clock;
126+
<2> - eTSEC1 transmit clock;
127+
<3> - RTC clock input.
128+
129+
When this attribute is not used, eTSEC system clock will serve as
130+
IEEE 1588 timer reference clock.
131+
117132
Example:
118133

119134
ptp_clock@24E00 {
120135
compatible = "fsl,etsec-ptp";
121136
reg = <0x24E00 0xB0>;
122137
interrupts = <12 0x8 13 0x8>;
123138
interrupt-parent = < &ipic >;
139+
fsl,cksel = <1>;
124140
fsl,tclk-period = <10>;
125141
fsl,tmr-prsc = <100>;
126142
fsl,tmr-add = <0x999999A4>;

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9378,6 +9378,7 @@ F: arch/arm64/include/asm/xen/
93789378

93799379
XEN NETWORK BACKEND DRIVER
93809380
M: Ian Campbell <ian.campbell@citrix.com>
9381+
M: Wei Liu <wei.liu2@citrix.com>
93819382
L: xen-devel@lists.xenproject.org (moderated for non-subscribers)
93829383
L: netdev@vger.kernel.org
93839384
S: Supported

‎drivers/bcma/driver_pci.c‎

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -210,25 +210,6 @@ static void bcma_core_pci_config_fixup(struct bcma_drv_pci *pc)
210210
}
211211
}
212212

213-
static void bcma_core_pci_power_save(struct bcma_drv_pci *pc, bool up)
214-
{
215-
u16 data;
216-
217-
if (pc->core->id.rev >= 15 && pc->core->id.rev <= 20) {
218-
data = up ? 0x74 : 0x7C;
219-
bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1,
220-
BCMA_CORE_PCI_MDIO_BLK1_MGMT1, 0x7F64);
221-
bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1,
222-
BCMA_CORE_PCI_MDIO_BLK1_MGMT3, data);
223-
} else if (pc->core->id.rev >= 21 && pc->core->id.rev <= 22) {
224-
data = up ? 0x75 : 0x7D;
225-
bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1,
226-
BCMA_CORE_PCI_MDIO_BLK1_MGMT1, 0x7E65);
227-
bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1,
228-
BCMA_CORE_PCI_MDIO_BLK1_MGMT3, data);
229-
}
230-
}
231-
232213
/**************************************************
233214
* Init.
234215
**************************************************/
@@ -255,6 +236,32 @@ void bcma_core_pci_init(struct bcma_drv_pci *pc)
255236
bcma_core_pci_clientmode_init(pc);
256237
}
257238

239+
void bcma_core_pci_power_save(struct bcma_bus *bus, bool up)
240+
{
241+
struct bcma_drv_pci *pc;
242+
u16 data;
243+
244+
if (bus->hosttype != BCMA_HOSTTYPE_PCI)
245+
return;
246+
247+
pc = &bus->drv_pci[0];
248+
249+
if (pc->core->id.rev >= 15 && pc->core->id.rev <= 20) {
250+
data = up ? 0x74 : 0x7C;
251+
bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1,
252+
BCMA_CORE_PCI_MDIO_BLK1_MGMT1, 0x7F64);
253+
bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1,
254+
BCMA_CORE_PCI_MDIO_BLK1_MGMT3, data);
255+
} else if (pc->core->id.rev >= 21 && pc->core->id.rev <= 22) {
256+
data = up ? 0x75 : 0x7D;
257+
bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1,
258+
BCMA_CORE_PCI_MDIO_BLK1_MGMT1, 0x7E65);
259+
bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1,
260+
BCMA_CORE_PCI_MDIO_BLK1_MGMT3, data);
261+
}
262+
}
263+
EXPORT_SYMBOL_GPL(bcma_core_pci_power_save);
264+
258265
int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core,
259266
bool enable)
260267
{
@@ -310,8 +317,6 @@ void bcma_core_pci_up(struct bcma_bus *bus)
310317

311318
pc = &bus->drv_pci[0];
312319

313-
bcma_core_pci_power_save(pc, true);
314-
315320
bcma_core_pci_extend_L1timer(pc, true);
316321
}
317322
EXPORT_SYMBOL_GPL(bcma_core_pci_up);
@@ -326,7 +331,5 @@ void bcma_core_pci_down(struct bcma_bus *bus)
326331
pc = &bus->drv_pci[0];
327332

328333
bcma_core_pci_extend_L1timer(pc, false);
329-
330-
bcma_core_pci_power_save(pc, false);
331334
}
332335
EXPORT_SYMBOL_GPL(bcma_core_pci_down);

‎drivers/bluetooth/ath3k.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ static struct usb_device_id ath3k_table[] = {
8585
{ USB_DEVICE(0x04CA, 0x3008) },
8686
{ USB_DEVICE(0x13d3, 0x3362) },
8787
{ USB_DEVICE(0x0CF3, 0xE004) },
88+
{ USB_DEVICE(0x0CF3, 0xE005) },
8889
{ USB_DEVICE(0x0930, 0x0219) },
8990
{ USB_DEVICE(0x0489, 0xe057) },
9091
{ USB_DEVICE(0x13d3, 0x3393) },
@@ -126,6 +127,7 @@ static struct usb_device_id ath3k_blist_tbl[] = {
126127
{ USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 },
127128
{ USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 },
128129
{ USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 },
130+
{ USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 },
129131
{ USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 },
130132
{ USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 },
131133
{ USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 },

‎drivers/bluetooth/btusb.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static struct usb_device_id btusb_table[] = {
102102

103103
/* Broadcom BCM20702A0 */
104104
{ USB_DEVICE(0x0b05, 0x17b5) },
105+
{ USB_DEVICE(0x0b05, 0x17cb) },
105106
{ USB_DEVICE(0x04ca, 0x2003) },
106107
{ USB_DEVICE(0x0489, 0xe042) },
107108
{ USB_DEVICE(0x413c, 0x8197) },
@@ -112,6 +113,9 @@ static struct usb_device_id btusb_table[] = {
112113
/*Broadcom devices with vendor specific id */
113114
{ USB_VENDOR_AND_INTERFACE_INFO(0x0a5c, 0xff, 0x01, 0x01) },
114115

116+
/* Belkin F8065bf - Broadcom based */
117+
{ USB_VENDOR_AND_INTERFACE_INFO(0x050d, 0xff, 0x01, 0x01) },
118+
115119
{ } /* Terminating entry */
116120
};
117121

@@ -148,6 +152,7 @@ static struct usb_device_id blacklist_table[] = {
148152
{ USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 },
149153
{ USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 },
150154
{ USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 },
155+
{ USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 },
151156
{ USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 },
152157
{ USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 },
153158
{ USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 },

‎drivers/net/bonding/bond_main.c‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,7 @@ static int __bond_release_one(struct net_device *bond_dev,
17241724
struct bonding *bond = netdev_priv(bond_dev);
17251725
struct slave *slave, *oldcurrent;
17261726
struct sockaddr addr;
1727+
int old_flags = bond_dev->flags;
17271728
netdev_features_t old_features = bond_dev->features;
17281729

17291730
/* slave is not a slave or master is not master of this slave */
@@ -1855,12 +1856,18 @@ static int __bond_release_one(struct net_device *bond_dev,
18551856
* bond_change_active_slave(..., NULL)
18561857
*/
18571858
if (!USES_PRIMARY(bond->params.mode)) {
1858-
/* unset promiscuity level from slave */
1859-
if (bond_dev->flags & IFF_PROMISC)
1859+
/* unset promiscuity level from slave
1860+
* NOTE: The NETDEV_CHANGEADDR call above may change the value
1861+
* of the IFF_PROMISC flag in the bond_dev, but we need the
1862+
* value of that flag before that change, as that was the value
1863+
* when this slave was attached, so we cache at the start of the
1864+
* function and use it here. Same goes for ALLMULTI below
1865+
*/
1866+
if (old_flags & IFF_PROMISC)
18601867
dev_set_promiscuity(slave_dev, -1);
18611868

18621869
/* unset allmulti level from slave */
1863-
if (bond_dev->flags & IFF_ALLMULTI)
1870+
if (old_flags & IFF_ALLMULTI)
18641871
dev_set_allmulti(slave_dev, -1);
18651872

18661873
bond_hw_addr_flush(bond_dev, slave_dev);

‎drivers/net/can/flexcan.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,6 @@ static int flexcan_chip_start(struct net_device *dev)
702702
{
703703
struct flexcan_priv *priv = netdev_priv(dev);
704704
struct flexcan_regs __iomem *regs = priv->base;
705-
unsigned int i;
706705
int err;
707706
u32 reg_mcr, reg_ctrl;
708707

@@ -772,17 +771,6 @@ static int flexcan_chip_start(struct net_device *dev)
772771
netdev_dbg(dev, "%s: writing ctrl=0x%08x", __func__, reg_ctrl);
773772
flexcan_write(reg_ctrl, &regs->ctrl);
774773

775-
for (i = 0; i < ARRAY_SIZE(regs->cantxfg); i++) {
776-
flexcan_write(0, &regs->cantxfg[i].can_ctrl);
777-
flexcan_write(0, &regs->cantxfg[i].can_id);
778-
flexcan_write(0, &regs->cantxfg[i].data[0]);
779-
flexcan_write(0, &regs->cantxfg[i].data[1]);
780-
781-
/* put MB into rx queue */
782-
flexcan_write(FLEXCAN_MB_CNT_CODE(0x4),
783-
&regs->cantxfg[i].can_ctrl);
784-
}
785-
786774
/* acceptance mask/acceptance code (accept everything) */
787775
flexcan_write(0x0, &regs->rxgmask);
788776
flexcan_write(0x0, &regs->rx14mask);

0 commit comments

Comments
 (0)