30 Apr, 2013

2 commits


09 Apr, 2013

1 commit

  • Two sections checked whether the current channel != the new channel
    without ever setting the current channel variables.

    1. net/mac802154/tx.c: Prevent set_channel() from getting called every
    time a packet is sent.

    2. net/mac802154/mib.c: Lock (pib_lock) accesses to current_channel and
    current_page and make sure they are updated when the channel has been
    changed.

    Signed-off-by: Alan Ott
    Signed-off-by: David S. Miller

    Alan Ott
     

08 Apr, 2013

3 commits

  • Increase the buffer length from 10 to 300 packets. Consider that traffic on
    mac802154 devices will often be 6LoWPAN, and a full-length (1280 octet)
    IPv6 packet will fragment into 15 6LoWPAN fragments (because the MTU of
    IEEE 802.15.4 is 127). A 300-packet queue is really 20 full-length IPv6
    packets.

    With a queue length of 10, an entire IPv6 packet was unable to get queued
    at one time, causing fragments to be dropped, and making reassembly
    impossible.

    Signed-off-by: Alan Ott
    Signed-off-by: David S. Miller

    Alan Ott
     
  • Use netif_stop_queue() and netif_wake_queue() to control the flow of
    packets to mac802154 devices. Since many IEEE 802.15.4 devices have no
    output buffer, and since the mac802154 xmit() function is designed to
    block, netif_stop_queue() is called after each packet.

    Signed-off-by: Alan Ott
    Signed-off-by: David S. Miller

    Alan Ott
     
  • When ops->xmit() fails, drop the packet. Devices which support hardware
    ack and retry (which include all devices currently supported by mainline),
    will automatically retry sending the packet (in the hardware) up to 3
    times, per the 802.15.4 spec. There is no need, and it is incorrect to
    try to do it in mac802154.

    Signed-off-by: Alan Ott
    Signed-off-by: David S. Miller

    Alan Ott
     

27 Mar, 2013

2 commits


22 Feb, 2013

1 commit

  • Pull driver core patches from Greg Kroah-Hartman:
    "Here is the big driver core merge for 3.9-rc1

    There are two major series here, both of which touch lots of drivers
    all over the kernel, and will cause you some merge conflicts:

    - add a new function called devm_ioremap_resource() to properly be
    able to check return values.

    - remove CONFIG_EXPERIMENTAL

    Other than those patches, there's not much here, some minor fixes and
    updates"

    Fix up trivial conflicts

    * tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (221 commits)
    base: memory: fix soft/hard_offline_page permissions
    drivercore: Fix ordering between deferred_probe and exiting initcalls
    backlight: fix class_find_device() arguments
    TTY: mark tty_get_device call with the proper const values
    driver-core: constify data for class_find_device()
    firmware: Ignore abort check when no user-helper is used
    firmware: Reduce ifdef CONFIG_FW_LOADER_USER_HELPER
    firmware: Make user-mode helper optional
    firmware: Refactoring for splitting user-mode helper code
    Driver core: treat unregistered bus_types as having no devices
    watchdog: Convert to devm_ioremap_resource()
    thermal: Convert to devm_ioremap_resource()
    spi: Convert to devm_ioremap_resource()
    power: Convert to devm_ioremap_resource()
    mtd: Convert to devm_ioremap_resource()
    mmc: Convert to devm_ioremap_resource()
    mfd: Convert to devm_ioremap_resource()
    media: Convert to devm_ioremap_resource()
    iommu: Convert to devm_ioremap_resource()
    drm: Convert to devm_ioremap_resource()
    ...

    Linus Torvalds
     

07 Feb, 2013

2 commits


12 Jan, 2013

1 commit

  • The CONFIG_EXPERIMENTAL config item has not carried much meaning for a
    while now and is almost always enabled by default. As agreed during the
    Linux kernel summit, remove it from any "depends on" lines in Kconfigs.

    CC: Alexander Smirnov
    CC: Dmitry Eremin-Solenikov
    CC: "David S. Miller"
    Signed-off-by: Kees Cook
    Acked-by: David S. Miller

    Kees Cook
     

05 Jan, 2013

1 commit

  • When using nanosleep() in an userspace application we get a
    ratelimit warning

    NOHZ: local_softirq_pending 08

    for 10 times.

    This patch replaces netif_rx() with netif_rx_ni() which has
    to be used from process/softirq context.
    The process/softirq context will be called from fakelb driver.

    See linux-kernel commit 481a819 for similar fix.

    Signed-off-by: Alexander Aring
    Signed-off-by: David S. Miller

    Alexander Aring
     

15 Dec, 2012

1 commit

  • mutex_destroy() must be called before wpan_phy_free(), because it puts the last
    reference and frees memory. Catched as overwritten poison in kmalloc-2048.

    Signed-off-by: Konstantin Khlebnikov
    Cc: Alexander Smirnov
    Cc: Dmitry Eremin-Solenikov
    Cc: David S. Miller
    Cc: linux-zigbee-devel@lists.sourceforge.net
    Cc: netdev@vger.kernel.org
    Signed-off-by: David S. Miller

    Konstantin Khlebnikov
     

01 Dec, 2012

2 commits


12 Jul, 2012

2 commits


29 Jun, 2012

1 commit

  • Conflicts:
    drivers/net/caif/caif_hsi.c
    drivers/net/usb/qmi_wwan.c

    The qmi_wwan merge was trivial.

    The caif_hsi.c, on the other hand, was not. It's a conflict between
    1c385f1fdf6f9c66d982802cd74349c040980b50 ("caif-hsi: Replace platform
    device with ops structure.") in the net-next tree and commit
    39abbaef19cd0a30be93794aa4773c779c3eb1f3 ("caif-hsi: Postpone init of
    HIS until open()") in the net tree.

    I did my best with that one and will ask Sjur to check it out.

    Signed-off-by: David S. Miller

    David S. Miller
     

27 Jun, 2012

6 commits


26 Jun, 2012

1 commit


17 May, 2012

8 commits