Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1104 #3

Merged
merged 48 commits into from
Nov 5, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
ca0a106
netfilter: ebt_ulog: fix info leaks
minipli Sep 30, 2013
278f2b3
netfilter: ipt_ULOG: fix info leaks
minipli Sep 30, 2013
b07c265
openvswitch: fix vport-netdev unregister
Oct 15, 2013
12e3594
xfrm: prevent ipcomp scratch buffer race condition
mkubecek Oct 17, 2013
b416c14
netfilter: x_tables: fix ordering of jumpstack allocation and table u…
wildea01 Oct 21, 2013
afb14c7
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
davem330 Oct 23, 2013
fecda03
net: sctp: fix ASCONF to allow non SCTP_ADDR_SRC addresses in ipv6
borkmann Oct 22, 2013
0e67d99
net: wan: sbni: remove assembly crc32 code
sebastianas Oct 22, 2013
45e526e
netconsole: fix NULL pointer dereference
Oct 23, 2013
c7c6eff
netconsole: fix multiple race conditions
Oct 24, 2013
8fb479a
netpoll: fix rx_hook() interface by passing the skb
ordex Oct 23, 2013
01ba16d
ipv6: reset dst.expires value when clearing expire flag
strssndktn Oct 24, 2013
e3bc10b
ipv6: ip6_dst_check needs to check for expired dst_entries
strssndktn Oct 24, 2013
4c8e84b
ax88179_178a: Remove AX_MEDIUM_ALWAYS_ONE bit in AX_MEDIUM_STATUS_MOD…
FreddyXin Oct 24, 2013
598c45b
qlcnic: Do not force adapter to perform LRO without destination IP check
Oct 25, 2013
d6994ca
qlcnic: Do not read QLCNIC_FW_CAPABILITY_MORE_CAPS bit for 83xx adapter
Oct 25, 2013
d49c83d
Merge branch 'qlcnic'
davem330 Oct 26, 2013
e9e2a90
be2net: Warn users of possible broken functionality on BE2 cards with…
Oct 24, 2013
bc15afa
tcp: fix SYNACK RTT estimation in Fast Open
yuchungcheng Oct 24, 2013
2909d87
tcp: only take RTT from timestamps if new data is acked
yuchungcheng Oct 24, 2013
2f715c1
tcp: do not rearm RTO when future data are sacked
yuchungcheng Oct 24, 2013
ad86de8
Documentation/networking: netdev-FAQ typo corrections
rddunlap Oct 25, 2013
fc59d5b
pkt_sched: fq: clear time_next_packet for reused flows
Oct 27, 2013
eeb1b73
xfrm: Increase the garbage collector threshold
klassert Oct 25, 2013
0d08c42
tcp: gso: fix truesize tracking
Oct 26, 2013
e3ed4ea
bnx2x: prevent FW assert on low mem during unload
Oct 27, 2013
826cb7b
bnx2x: Disable VF access on PF removal
Oct 27, 2013
262e827
cxgb3: Fix length calculation in write_ofld_wr() on 32-bit architectures
bwhacks Oct 27, 2013
059dfa6
xen-netback: use jiffies_64 value to calculate credit timeout
Oct 28, 2013
d954777
netfilter: xt_NFQUEUE: fix --queue-bypass regression
vaesoo Oct 28, 2013
68783ec
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
davem330 Oct 29, 2013
706e282
net: x25: Fix dead URLs in Kconfig
darkstar Oct 28, 2013
911aeb1
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…
davem330 Oct 29, 2013
0649909
bridge: pass correct vlan id to multicast code
Oct 28, 2013
ec9debb
virtio-net: correctly handle cpu hotplug notifier during resuming
jasowang Oct 29, 2013
b4dfd32
ibm emac: Don't call napi_complete if napi_reschedule failed
apopple Oct 29, 2013
32663b8
ibm emac: Fix locking for enable/disable eob irq
apopple Oct 29, 2013
b757a62
bgmac: don't update slot on skb alloc/dma mapping error
nlhintz Oct 30, 2013
c17cb8b
doc:net: Fix typo in Documentation/networking
standby24x7 Oct 30, 2013
5d0f801
can: c_can: Fix RX message handling, handle lost message before EOB
Oct 28, 2013
896e23b
can: kvaser_usb: fix usb endpoints detection
oso Oct 27, 2013
84502b5
xfrm: Fix null pointer dereference when decoding sessions
klassert Oct 30, 2013
2e19ef0
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
davem330 Nov 2, 2013
6f09234
net: flow_dissector: fail on evil iph->ihl
jasowang Nov 1, 2013
7926c1d
net: sctp: do not trigger BUG_ON in sctp_cmd_delete_tcb
borkmann Oct 31, 2013
e9b51a1
Merge branch 'fixes-for-3.12' of git://gitorious.org/linux-can/linux-can
davem330 Nov 4, 2013
c32b7df
net/mlx4_core: Fix call to __mlx4_unregister_mac
Nov 3, 2013
be408cd
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
torvalds Nov 4, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Documentation/networking/dccp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Introduction
Datagram Congestion Control Protocol (DCCP) is an unreliable, connection
oriented protocol designed to solve issues present in UDP and TCP, particularly
for real-time and multimedia (streaming) traffic.
It divides into a base protocol (RFC 4340) and plugable congestion control
modules called CCIDs. Like plugable TCP congestion control, at least one CCID
It divides into a base protocol (RFC 4340) and pluggable congestion control
modules called CCIDs. Like pluggable TCP congestion control, at least one CCID
needs to be enabled in order for the protocol to function properly. In the Linux
implementation, this is the TCP-like CCID2 (RFC 4341). Additional CCIDs, such as
the TCP-friendly CCID3 (RFC 4342), are optional.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/networking/e100.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Additional Configurations
PRO/100 Family of Adapters is e100.

As an example, if you install the e100 driver for two PRO/100 adapters
(eth0 and eth1), add the following to a configuraton file in /etc/modprobe.d/
(eth0 and eth1), add the following to a configuration file in /etc/modprobe.d/

alias eth0 e100
alias eth1 e100
Expand Down
4 changes: 2 additions & 2 deletions Documentation/networking/ieee802154.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Introduction
============
The IEEE 802.15.4 working group focuses on standartization of bottom
The IEEE 802.15.4 working group focuses on standardization of bottom
two layers: Medium Access Control (MAC) and Physical (PHY). And there
are mainly two options available for upper layers:
- ZigBee - proprietary protocol from ZigBee Alliance
Expand Down Expand Up @@ -66,7 +66,7 @@ net_device, with .type = ARPHRD_IEEE802154. Data is exchanged with socket family
code via plain sk_buffs. On skb reception skb->cb must contain additional
info as described in the struct ieee802154_mac_cb. During packet transmission
the skb->cb is used to provide additional data to device's header_ops->create
function. Be aware, that this data can be overriden later (when socket code
function. Be aware that this data can be overridden later (when socket code
submits skb to qdisc), so if you need something from that cb later, you should
store info in the skb->data on your own.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/networking/l2tp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ state information because the file format is subject to change. It is
implemented to provide extra debug information to help diagnose
problems.) Users should use the netlink API.

/proc/net/pppol2tp is also provided for backwards compaibility with
/proc/net/pppol2tp is also provided for backwards compatibility with
the original pppol2tp driver. It lists information about L2TPv2
tunnels and sessions only. Its use is discouraged.

Expand Down
24 changes: 12 additions & 12 deletions Documentation/networking/netdev-FAQ.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ Information you need to know about netdev

Q: What is netdev?

A: It is a mailing list for all network related linux stuff. This includes
A: It is a mailing list for all network-related Linux stuff. This includes
anything found under net/ (i.e. core code like IPv6) and drivers/net
(i.e. hardware specific drivers) in the linux source tree.
(i.e. hardware specific drivers) in the Linux source tree.

Note that some subsystems (e.g. wireless drivers) which have a high volume
of traffic have their own specific mailing lists.

The netdev list is managed (like many other linux mailing lists) through
The netdev list is managed (like many other Linux mailing lists) through
VGER ( http://vger.kernel.org/ ) and archives can be found below:

http://marc.info/?l=linux-netdev
http://www.spinics.net/lists/netdev/

Aside from subsystems like that mentioned above, all network related linux
development (i.e. RFC, review, comments, etc) takes place on netdev.
Aside from subsystems like that mentioned above, all network-related Linux
development (i.e. RFC, review, comments, etc.) takes place on netdev.

Q: How do the changes posted to netdev make their way into linux?
Q: How do the changes posted to netdev make their way into Linux?

A: There are always two trees (git repositories) in play. Both are driven
by David Miller, the main network maintainer. There is the "net" tree,
Expand All @@ -35,7 +35,7 @@ A: There are always two trees (git repositories) in play. Both are driven
Q: How often do changes from these trees make it to the mainline Linus tree?

A: To understand this, you need to know a bit of background information
on the cadence of linux development. Each new release starts off with
on the cadence of Linux development. Each new release starts off with
a two week "merge window" where the main maintainers feed their new
stuff to Linus for merging into the mainline tree. After the two weeks,
the merge window is closed, and it is called/tagged "-rc1". No new
Expand All @@ -46,7 +46,7 @@ A: To understand this, you need to know a bit of background information
things are in a state of churn), and a week after the last vX.Y-rcN
was done, the official "vX.Y" is released.

Relating that to netdev: At the beginning of the 2 week merge window,
Relating that to netdev: At the beginning of the 2-week merge window,
the net-next tree will be closed - no new changes/features. The
accumulated new content of the past ~10 weeks will be passed onto
mainline/Linus via a pull request for vX.Y -- at the same time,
Expand All @@ -59,16 +59,16 @@ A: To understand this, you need to know a bit of background information
IMPORTANT: Do not send new net-next content to netdev during the
period during which net-next tree is closed.

Shortly after the two weeks have passed, (and vX.Y-rc1 is released) the
Shortly after the two weeks have passed (and vX.Y-rc1 is released), the
tree for net-next reopens to collect content for the next (vX.Y+1) release.

If you aren't subscribed to netdev and/or are simply unsure if net-next
has re-opened yet, simply check the net-next git repository link above for
any new networking related commits.
any new networking-related commits.

The "net" tree continues to collect fixes for the vX.Y content, and
is fed back to Linus at regular (~weekly) intervals. Meaning that the
focus for "net" is on stablilization and bugfixes.
focus for "net" is on stabilization and bugfixes.

Finally, the vX.Y gets released, and the whole cycle starts over.

Expand Down Expand Up @@ -217,7 +217,7 @@ A: Attention to detail. Re-read your own work as if you were the
to why it happens, and then if necessary, explain why the fix proposed
is the best way to get things done. Don't mangle whitespace, and as
is common, don't mis-indent function arguments that span multiple lines.
If it is your 1st patch, mail it to yourself so you can test apply
If it is your first patch, mail it to yourself so you can test apply
it to an unpatched tree to confirm infrastructure didn't mangle it.

Finally, go back and read Documentation/SubmittingPatches to be
Expand Down
6 changes: 3 additions & 3 deletions Documentation/networking/netlink_mmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ processing.

Conversion of the reception path involves calling poll() on the file
descriptor, once the socket is readable the frames from the ring are
processsed in order until no more messages are available, as indicated by
processed in order until no more messages are available, as indicated by
a status word in the frame header.

On kernel side, in order to make use of memory mapped I/O on receive, the
Expand All @@ -56,7 +56,7 @@ Dumps of kernel databases automatically support memory mapped I/O.

Conversion of the transmit path involves changing message construction to
use memory from the TX ring instead of (usually) a buffer declared on the
stack and setting up the frame header approriately. Optionally poll() can
stack and setting up the frame header appropriately. Optionally poll() can
be used to wait for free frames in the TX ring.

Structured and definitions for using memory mapped I/O are contained in
Expand Down Expand Up @@ -231,7 +231,7 @@ Ring setup:
if (setsockopt(fd, NETLINK_TX_RING, &req, sizeof(req)) < 0)
exit(1)

/* Calculate size of each invididual ring */
/* Calculate size of each individual ring */
ring_size = req.nm_block_nr * req.nm_block_size;

/* Map RX/TX rings. The TX ring is located after the RX ring */
Expand Down
4 changes: 2 additions & 2 deletions Documentation/networking/operstates.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ packets. The name 'carrier' and the inversion are historical, think of
it as lower layer.

Note that for certain kind of soft-devices, which are not managing any
real hardware, there is possible to set this bit from userpsace.
One should use TVL IFLA_CARRIER to do so.
real hardware, it is possible to set this bit from userspace. One
should use TVL IFLA_CARRIER to do so.

netif_carrier_ok() can be used to query that bit.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/networking/rxrpc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ An overview of the RxRPC protocol:
(*) Calls use ACK packets to handle reliability. Data packets are also
explicitly sequenced per call.

(*) There are two types of positive acknowledgement: hard-ACKs and soft-ACKs.
(*) There are two types of positive acknowledgment: hard-ACKs and soft-ACKs.
A hard-ACK indicates to the far side that all the data received to a point
has been received and processed; a soft-ACK indicates that the data has
been received but may yet be discarded and re-requested. The sender may
Expand Down
8 changes: 4 additions & 4 deletions Documentation/networking/stmmac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Where:
o pmt: core has the embedded power module (optional).
o force_sf_dma_mode: force DMA to use the Store and Forward mode
instead of the Threshold.
o force_thresh_dma_mode: force DMA to use the Shreshold mode other than
o force_thresh_dma_mode: force DMA to use the Threshold mode other than
the Store and Forward mode.
o riwt_off: force to disable the RX watchdog feature and switch to NAPI mode.
o fix_mac_speed: this callback is used for modifying some syscfg registers
Expand All @@ -175,7 +175,7 @@ Where:
registers.
o custom_cfg/custom_data: this is a custom configuration that can be passed
while initializing the resources.
o bsp_priv: another private poiter.
o bsp_priv: another private pointer.

For MDIO bus The we have:

Expand Down Expand Up @@ -271,7 +271,7 @@ reset procedure etc).
o dwmac1000_dma.c: dma functions for the GMAC chip;
o dwmac1000.h: specific header file for the GMAC;
o dwmac100_core: MAC 100 core and dma code;
o dwmac100_dma.c: dma funtions for the MAC chip;
o dwmac100_dma.c: dma functions for the MAC chip;
o dwmac1000.h: specific header file for the MAC;
o dwmac_lib.c: generic DMA functions shared among chips;
o enh_desc.c: functions for handling enhanced descriptors;
Expand Down Expand Up @@ -364,4 +364,4 @@ Auto-negotiated Link Parter Ability.
10) TODO:
o XGMAC is not supported.
o Complete the TBI & RTBI support.
o extened VLAN support for 3.70a SYNP GMAC.
o extend VLAN support for 3.70a SYNP GMAC.
4 changes: 2 additions & 2 deletions Documentation/networking/vortex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Module parameters

There are several parameters which may be provided to the driver when
its module is loaded. These are usually placed in /etc/modprobe.d/*.conf
configuretion files. Example:
configuration files. Example:

options 3c59x debug=3 rx_copybreak=300

Expand Down Expand Up @@ -178,7 +178,7 @@ max_interrupt_work=N

The driver's interrupt service routine can handle many receive and
transmit packets in a single invocation. It does this in a loop.
The value of max_interrupt_work governs how mnay times the interrupt
The value of max_interrupt_work governs how many times the interrupt
service routine will loop. The default value is 32 loops. If this
is exceeded the interrupt service routine gives up and generates a
warning message "eth0: Too much work in interrupt".
Expand Down
2 changes: 1 addition & 1 deletion Documentation/networking/x25-iface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ reduced by the following measures or a combination thereof:
later.
The lapb module interface was modified to support this. Its
data_indication() method should now transparently pass the
netif_rx() return value to the (lapb mopdule) caller.
netif_rx() return value to the (lapb module) caller.
(2) Drivers for kernel versions 2.2.x should always check the global
variable netdev_dropping when a new frame is received. The driver
should only call netif_rx() if netdev_dropping is zero. Otherwise
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/can/c_can/c_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,16 +814,16 @@ static int c_can_do_rx_poll(struct net_device *dev, int quota)
msg_ctrl_save = priv->read_reg(priv,
C_CAN_IFACE(MSGCTRL_REG, 0));

if (msg_ctrl_save & IF_MCONT_EOB)
return num_rx_pkts;

if (msg_ctrl_save & IF_MCONT_MSGLST) {
c_can_handle_lost_msg_obj(dev, 0, msg_obj);
num_rx_pkts++;
quota--;
continue;
}

if (msg_ctrl_save & IF_MCONT_EOB)
return num_rx_pkts;

if (!(msg_ctrl_save & IF_MCONT_NEWDAT))
continue;

Expand Down
20 changes: 13 additions & 7 deletions drivers/net/can/usb/kvaser_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1544,9 +1544,9 @@ static int kvaser_usb_init_one(struct usb_interface *intf,
return 0;
}

static void kvaser_usb_get_endpoints(const struct usb_interface *intf,
struct usb_endpoint_descriptor **in,
struct usb_endpoint_descriptor **out)
static int kvaser_usb_get_endpoints(const struct usb_interface *intf,
struct usb_endpoint_descriptor **in,
struct usb_endpoint_descriptor **out)
{
const struct usb_host_interface *iface_desc;
struct usb_endpoint_descriptor *endpoint;
Expand All @@ -1557,12 +1557,18 @@ static void kvaser_usb_get_endpoints(const struct usb_interface *intf,
for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) {
endpoint = &iface_desc->endpoint[i].desc;

if (usb_endpoint_is_bulk_in(endpoint))
if (!*in && usb_endpoint_is_bulk_in(endpoint))
*in = endpoint;

if (usb_endpoint_is_bulk_out(endpoint))
if (!*out && usb_endpoint_is_bulk_out(endpoint))
*out = endpoint;

/* use first bulk endpoint for in and out */
if (*in && *out)
return 0;
}

return -ENODEV;
}

static int kvaser_usb_probe(struct usb_interface *intf,
Expand All @@ -1576,8 +1582,8 @@ static int kvaser_usb_probe(struct usb_interface *intf,
if (!dev)
return -ENOMEM;

kvaser_usb_get_endpoints(intf, &dev->bulk_in, &dev->bulk_out);
if (!dev->bulk_in || !dev->bulk_out) {
err = kvaser_usb_get_endpoints(intf, &dev->bulk_in, &dev->bulk_out);
if (err) {
dev_err(&intf->dev, "Cannot get usb endpoint(s)");
return err;
}
Expand Down
20 changes: 14 additions & 6 deletions drivers/net/ethernet/broadcom/bgmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,25 +244,33 @@ static int bgmac_dma_rx_skb_for_slot(struct bgmac *bgmac,
struct bgmac_slot_info *slot)
{
struct device *dma_dev = bgmac->core->dma_dev;
struct sk_buff *skb;
dma_addr_t dma_addr;
struct bgmac_rx_header *rx;

/* Alloc skb */
slot->skb = netdev_alloc_skb(bgmac->net_dev, BGMAC_RX_BUF_SIZE);
if (!slot->skb)
skb = netdev_alloc_skb(bgmac->net_dev, BGMAC_RX_BUF_SIZE);
if (!skb)
return -ENOMEM;

/* Poison - if everything goes fine, hardware will overwrite it */
rx = (struct bgmac_rx_header *)slot->skb->data;
rx = (struct bgmac_rx_header *)skb->data;
rx->len = cpu_to_le16(0xdead);
rx->flags = cpu_to_le16(0xbeef);

/* Map skb for the DMA */
slot->dma_addr = dma_map_single(dma_dev, slot->skb->data,
BGMAC_RX_BUF_SIZE, DMA_FROM_DEVICE);
if (dma_mapping_error(dma_dev, slot->dma_addr)) {
dma_addr = dma_map_single(dma_dev, skb->data,
BGMAC_RX_BUF_SIZE, DMA_FROM_DEVICE);
if (dma_mapping_error(dma_dev, dma_addr)) {
bgmac_err(bgmac, "DMA mapping error\n");
dev_kfree_skb(skb);
return -ENOMEM;
}

/* Update the slot */
slot->skb = skb;
slot->dma_addr = dma_addr;

if (slot->dma_addr & 0xC0000000)
bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");

Expand Down
10 changes: 5 additions & 5 deletions drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -2545,10 +2545,6 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
}
}

/* Allocated memory for FW statistics */
if (bnx2x_alloc_fw_stats_mem(bp))
LOAD_ERROR_EXIT(bp, load_error0);

/* need to be done after alloc mem, since it's self adjusting to amount
* of memory available for RSS queues
*/
Expand All @@ -2558,6 +2554,10 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
LOAD_ERROR_EXIT(bp, load_error0);
}

/* Allocated memory for FW statistics */
if (bnx2x_alloc_fw_stats_mem(bp))
LOAD_ERROR_EXIT(bp, load_error0);

/* request pf to initialize status blocks */
if (IS_VF(bp)) {
rc = bnx2x_vfpf_init(bp);
Expand Down Expand Up @@ -2812,8 +2812,8 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
if (IS_PF(bp))
bnx2x_clear_pf_load(bp);
load_error0:
bnx2x_free_fp_mem(bp);
bnx2x_free_fw_stats_mem(bp);
bnx2x_free_fp_mem(bp);
bnx2x_free_mem(bp);

return rc;
Expand Down
Loading