16 Feb, 2012

7 commits


15 Feb, 2012

5 commits

  • Jean Delvare reported bonding on top of 3c59x adapters was not detecting
    network cable removal fast enough.

    3c59x indeed uses a 60 seconds timer to check link status if carrier is
    on, and 5 seconds if carrier is off.

    This patch reduces timer period to 5 seconds if device is a bonding
    slave.

    Reported-by: Jean Delvare
    Acked-by: Jean Delvare
    Acked-by: Steffen Klassert
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • commit 5a698af53f (bond: service netpoll arp queue on master device)
    tested IFF_SLAVE flag against dev->priv_flags instead of dev->flags

    Signed-off-by: Eric Dumazet
    Cc: WANG Cong
    Acked-by: Neil Horman
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • The first parameter should be "number of elements" and the second parameter
    should be "element size".

    Signed-off-by: Axel Lin
    Acked-by: David Howells
    Signed-off-by: David S. Miller

    Axel Lin
     
  • 'poll' was a debugging option, but turning it on these days leads to
    kernel panic. Remove it.

    Signed-off-by: Michal Schmidt
    Signed-off-by: David S. Miller

    Michal Schmidt
     
  • This commit ensures that lost_cnt_hint is correctly updated in
    tcp_shifted_skb() for FACK TCP senders. The lost_cnt_hint adjustment
    in tcp_sacktag_one() only applies to non-FACK senders, so FACK senders
    need their own adjustment.

    This applies the spirit of 1e5289e121372a3494402b1b131b41bfe1cf9b7f -
    except now that the sequence range passed into tcp_sacktag_one() is
    correct we need only have a special case adjustment for FACK.

    Signed-off-by: Neal Cardwell
    Signed-off-by: David S. Miller

    Neal Cardwell
     

14 Feb, 2012

8 commits

  • This fix a similar problem as in 72092cc45378176ba700034c91b7af2db524df26
    and 481a8199142c050b72bff8a1956a49fd0a75bbe0 ("can:
    fix NOHZ local_softirq_pending 08 warning"). This fix replaces netif_rx()
    with netif_rx_ni() which has to be used from process/softirq context.

    Signed-off-by: Benoit Cousson
    Cc: David S. Miller
    Signed-off-by: David S. Miller

    Cousson, Benoit
     
  • commit 619c5cb6885 (New 7.0 FW: bnx2x, cnic, bnx2i, bnx2fc) added new
    sparse warnings.

    Signed-off-by: Eric Dumazet
    Cc: Eilon Greenstein
    Cc: Vladislav Zolotarov
    Cc: Michael Chan
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • Commit 0869b3a4: ixp4xx-eth: use an unique MDIO bus name changed
    the MDIO bus name from "0" to "ixp4xx-eth-0", as a result the PHY
    name is not longer appropriate and will not match the MDIO bus name
    so PHY connection will not succeed, fix that.

    Signed-off-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Florian Fainelli
     
  • Commit "d6c25be: mdio-octeon: use an unique MDIO bus name" changed the
    octeon MDIO bus name from "0" to "mdio-octeon-0", change the PHY
    formatting logic to account for that name change, so that PHY connection
    on this bus succeeds.

    Signed-off-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Florian Fainelli
     
  • Commit "391420f7: fec: use an unique MDIO bus name" first modified
    the MDIO bus name to include the platform name, then in commit
    "a7ed07d5: net: fec: correct phy_name buffer length when init phy_name"
    the PHY name formatting was fixed in the case the PHY matches a PHY
    driver.

    The FEC driver however, also handles the case where we want to attach
    to the fixed MDIO bus name, which was previously named "0", and now
    "fixed-0". Change the PHY formatting logic to account for that.

    Signed-off-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Florian Fainelli
     
  • Commit 3e617506: bcm63xx_enet: use an unique MDIO bus name introduced
    a regression in the PHY connection logic, since the PHY name was formatted
    to expect the bus name to be "0" or "1", whereas it is now "bcm63xx-enet-0"
    or "bcm63xx-enet-1".

    Reported-by: Joel EJC
    Signed-off-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Florian Fainelli
     
  • Commit d1733f07: cpmac: use an unique MDIO bus name changed the MDIO bus
    name from "1" to "cpmac-1", this breaks the PHY connection logic because
    the PHY name still uses the old bus names "0" and "1", fix that to
    always use the mdio bus id instead.

    Signed-off-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Florian Fainelli
     
  • The first parameter should be "number of elements" and the second parameter
    should be "element size".

    Signed-off-by: Axel Lin
    Signed-off-by: David S. Miller

    Axel Lin
     

13 Feb, 2012

2 commits

  • Fix the newly-SACKed range to be the range of newly-shifted bytes.

    Previously - since 832d11c5cd076abc0aa1eaf7be96c81d1a59ce41 -
    tcp_shifted_skb() incorrectly called tcp_sacktag_one() with the start
    and end sequence numbers of the skb it passes in set to the range just
    beyond the range that is newly-SACKed.

    This commit also removes a special-case adjustment to lost_cnt_hint in
    tcp_shifted_skb() since the pre-existing adjustment of lost_cnt_hint
    in tcp_sacktag_one() now properly handles this things now that the
    correct start sequence number is passed in.

    Signed-off-by: Neal Cardwell
    Signed-off-by: David S. Miller

    Neal Cardwell
     
  • This commit allows callers of tcp_sacktag_one() to pass in sequence
    ranges that do not align with skb boundaries, as tcp_shifted_skb()
    needs to do in an upcoming fix in this patch series.

    In fact, now tcp_sacktag_one() does not need to depend on an input skb
    at all, which makes its semantics and dependencies more clear.

    Signed-off-by: Neal Cardwell
    Signed-off-by: David S. Miller

    Neal Cardwell
     

11 Feb, 2012

10 commits

  • Quoth David:

    1) GRO MAC header comparisons were ethernet specific, breaking other
    link types. This required a multi-faceted fix to cure the originally
    noted case (Infiniband), because IPoIB was lying about it's actual
    hard header length. Thanks to Eric Dumazet, Roland Dreier, and
    others.

    2) Fix build failure when INET_UDP_DIAG is built in and ipv6 is modular.
    From Anisse Astier.

    3) Off by ones and other bug fixes in netprio_cgroup from Neil Horman.

    4) ipv4 TCP reset generation needs to respect any network interface
    binding from the socket, otherwise route lookups might give a
    different result than all the other segments received. From Shawn
    Lu.

    5) Fix unintended regression in ipv4 proxy ARP responses, from Thomas
    Graf.

    6) Fix SKB under-allocation bug in sh_eth, from Yoshihiro Shimoda.

    7) Revert skge PCI mapping changes that are causing crashes for some
    folks, from Stephen Hemminger.

    8) IPV4 route lookups fill in the wildcarded fields of the given flow
    lookup key passed in, which is fine most of the time as this is
    exactly what the caller's want. However there are a few cases that
    want to retain the original flow key values afterwards, so handle
    those cases properly. Fix from Julian Anastasov.

    9) IGB/IXGBE VF lookup bug fixes from Greg Rose.

    10) Properly null terminate filename passed to ethtool flash device
    method, from Ben Hutchings.

    11) S3 resume fix in via-velocity from David Lv.

    12) Fix double SKB free during xmit failure in CAIF, from Dmitry
    Tarnyagin.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (72 commits)
    net: Don't proxy arp respond if iif == rt->dst.dev if private VLAN is disabled
    ipv4: Fix wrong order of ip_rt_get_source() and update iph->daddr.
    netprio_cgroup: fix wrong memory access when NETPRIO_CGROUP=m
    netprio_cgroup: don't allocate prio table when a device is registered
    netprio_cgroup: fix an off-by-one bug
    bna: fix error handling of bnad_get_flash_partition_by_offset()
    isdn: type bug in isdn_net_header()
    net: Make qdisc_skb_cb upper size bound explicit.
    ixgbe: ethtool: stats user buffer overrun
    ixgbe: dcb: up2tc mapping lost on disable/enable CEE DCB state
    ixgbe: do not update real num queues when netdev is going away
    ixgbe: Fix broken dependency on MAX_SKB_FRAGS being related to page size
    ixgbe: Fix case of Tx Hang in PF with 32 VFs
    ixgbe: fix vf lookup
    igb: fix vf lookup
    e1000: add dropped DMA receive enable back in for WoL
    gro: more generic L2 header check
    IPoIB: Stop lying about hard_header_len and use skb->cb to stash LL addresses
    zd1211rw: firmware needs duration_id set to zero for non-pspoll frames
    net: enable TC35815 for MIPS again
    ...

    Linus Torvalds
     
  • Commit 653241 (net: RFC3069, private VLAN proxy arp support) changed
    the behavior of arp proxy to send arp replies back out on the interface
    the request came in even if the private VLAN feature is disabled.

    Previously we checked rt->dst.dev != skb->dev for in scenarios, when
    proxy arp is enabled on for the netdevice and also when individual proxy
    neighbour entries have been added.

    This patch adds the check back for the pneigh_lookup() scenario.

    Signed-off-by: Thomas Graf
    Acked-by: Jesper Dangaard Brouer
    Signed-off-by: David S. Miller

    Thomas Graf
     
  • This patch fix a bug which introduced by commit ac8a4810 (ipv4: Save
    nexthop address of LSRR/SSRR option to IPCB.).In that patch, we saved
    the nexthop of SRR in ip_option->nexthop and update iph->daddr until
    we get to ip_forward_options(), but we need to update it before
    ip_rt_get_source(), otherwise we may get a wrong src.

    Signed-off-by: Li Wei
    Signed-off-by: David S. Miller

    Li Wei
     
  • When the netprio_cgroup module is not loaded, net_prio_subsys_id
    is -1, and so sock_update_prioidx() accesses cgroup_subsys array
    with negative index subsys[-1].

    Make the code resembles cls_cgroup code, which is bug free.

    Origionally-authored-by: Li Zefan
    Signed-off-by: Li Zefan
    Signed-off-by: Neil Horman
    CC: "David S. Miller"
    Signed-off-by: David S. Miller

    Neil Horman
     
  • So we delay the allocation till the priority is set through cgroup,
    and this makes skb_update_priority() faster when it's not set.

    This also eliminates an off-by-one bug similar with the one fixed
    in the previous patch.

    Origionally-authored-by: Li Zefan
    Signed-off-by: Li Zefan
    Signed-off-by: Neil Horman
    CC: "David S. Miller"
    Signed-off-by: David S. Miller

    Neil Horman
     
  • # mount -t cgroup xxx /mnt
    # mkdir /mnt/tmp
    # cat /mnt/tmp/net_prio.ifpriomap
    lo 0
    eth0 0
    virbr0 0
    # echo 'lo 999' > /mnt/tmp/net_prio.ifpriomap
    # cat /mnt/tmp/net_prio.ifpriomap
    lo 999
    eth0 0
    virbr0 4101267344

    We got weired output, because we exceeded the boundary of the array.
    We may even crash the kernel..

    Origionally-authored-by: Li Zefan
    Signed-off-by: Li Zefan
    Signed-off-by: Neil Horman
    CC: "David S. Miller"
    Signed-off-by: David S. Miller

    Neil Horman
     
  • * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/i915: fixup interlaced bits clearing in PIPECONF on PCH_SPLIT (v2)
    drm/i915: no lvds quirk for AOpen MP45
    drm/i915: Force explicit bpp selection for intel_dp_link_required
    drm/radeon: do not continue after error from r600_ib_test
    drivers/gpu/drm/drm_ioc32.c: initialize all fields
    drm/i915: fixup interlaced bits clearing in PIPECONF on PCH_SPLIT
    drm/i915:: Disable FBC on SandyBridge

    Linus Torvalds
     
  • fix 1 mysterious divide error
    fix 3 NULL dereference bugs in writeback tracing, on SD card removal w/o umount

    * tag 'writeback-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux:
    writeback: fix dereferencing NULL bdi->dev on trace_writeback_queue
    lib: proportion: lower PROP_MAX_SHIFT to 32 on 64-bit kernel
    writeback: fix NULL bdi->dev in trace writeback_single_inode
    backing-dev: fix wakeup timer races with bdi_unregister()

    Linus Torvalds
     
  • * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    perf: Fix double start/stop in x86_pmu_start()
    perf evsel: Fix an issue where perf report fails to show the proper percentage
    perf tools: Fix prefix matching for kernel maps
    perf tools: Fix perf stack to non executable on x86_64
    perf: Remove deprecated WARN_ON_ONCE()

    Linus Torvalds
     
  • Couple of regressions, couple of zero-day bugs, a minor enhancement.
    Nothing really major.

    * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
    hwmon: (f75375s) Let f75375_update_device treat pwmX as a measured value
    hwmon: (f75375s) Fix bit shifting in f75375_write16
    hwmon: (f75375s) Fix reading of wrong register when initializing the F75387
    hwmon: (f75375s) Fix automatic pwm mode setting for F75373 & F75375
    hwmon: (w83627ehf) Remove duplicate code

    Linus Torvalds
     

10 Feb, 2012

8 commits

  • …keithp/linux into drm-fixes

    * 'drm-intel-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/keithp/linux:
    drm/i915: fixup interlaced bits clearing in PIPECONF on PCH_SPLIT (v2)
    drm/i915: no lvds quirk for AOpen MP45
    drm/i915: Force explicit bpp selection for intel_dp_link_required
    drm/i915: fixup interlaced bits clearing in PIPECONF on PCH_SPLIT
    drm/i915:: Disable FBC on SandyBridge

    Dave Airlie
     
  • Serial/TTY fixes for the 3.3-rc3 tree

    Just a few new device ids, omap serial driver regression fixes, and a
    build fix for the 8250 driver movement.

    Signed-off-by: Greg Kroah-Hartman

    * tag 'tty-3.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    tty: serial: omap-serial: wakeup latency constraint is in microseconds, not milliseconds
    tty: serial: OMAP: block idle while the UART is transferring data in PIO mode
    tty: serial: OMAP: use a 1-byte RX FIFO threshold in PIO mode
    m32r: relocate drivers back out of 8250 dir
    tty: fix a build failure on sparc
    serial: samsung: Add support for EXYNOS5250
    serial: samsung: Add support for EXYNOS4212 and EXYNOS4412
    drivers/tty/vt/vt_ioctl.c: fix KDFONTOP 32bit compatibility layer

    Linus Torvalds
     
  • Staging tree patches for 3.3-rc3

    Big things here is the deletion of the Android pmem driver, as it's
    obsolete and no one uses it, the gma500 driver as it's already in the
    drm portion of the kernel tree, and the pohmelfs filesystem as it's
    obsolete and a rewritten version is being proposed for the fs/ section
    of the kernel.

    Other than that, a smattering of different bugfixes and regressions, and
    some omap drm api merge fixups that were needed due to api changes in
    the main portion of the drm tree, allowing this code to build properly
    again.

    Signed-off-by: Greg Kroah-Hartman

    * tag 'staging-3.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (28 commits)
    staging: pohmelfs: remove drivers/staging/pohmelfs
    staging: android/ram_console: Don't build on arches w/o ioremap
    staging: r8712u: Use asynchronous firmware loading
    staging: usbip: fix to prevent potentially using uninitialized spinlock
    staging: r8712u: Fix problem when CONFIG_R8712_AP is set
    staging: tidspbridge: fix incorrect free to drv_datap
    staging: tidspbridge: fix bridge_open memory leaks
    staging: android: lowmemorykiller: Don't wait more than one second for a process to die
    MAINTAINERS: staging: iio: add iio information
    staging: zcache: fix serialization bug in zv stats
    staging: fix go7007-usb license
    Staging: android: binder: Fix crashes when sharing a binder file between processes
    Staging: android: Remove pmem driver
    Staging: asus_oled: fix NULL-ptr crash on unloading
    Staging: asus_oled: fix image processing
    Staging: android: binder: Don't call dump_stack in binder_vma_open
    staging: r8712u: Add new Sitecom UsB ID
    zcache: Set SWIZ_BITS to 8 to reduce tmem bucket lock contention.
    zcache: fix deadlock condition
    staging: drm/omap: fix locking issue
    ...

    Linus Torvalds
     
  • Driver core fixes for the 3.3-rc3 tree.

    A few fixes for kobject warnings that have popped up in the cpu hotplug path,
    and a regression fix for the speed of the hotplug memory code.

    Signed-off-by: Greg Kroah-Hartman

    * tag 'driver-core-3.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    driver-core: cpu: fix kobject warning when hotplugging a cpu
    ACPI: remove duplicated lines of merging problems with acpi_processor_add
    docbook: fix fatal errors in device-drivers docbook and add DMA Management section
    drivers/base/memory.c: fix memory_dev_init() long delay
    driver core: cpu: remove kernel warning when removing a cpu

    Linus Torvalds
     
  • Minor char-misc fixes for 3.3-rc3

    Nothing big here, some Kconfig fixes for the MISC_DEVICES config option
    that was being used incorrectly, and some other minor bug fixes.

    Signed-off-by: Greg Kroah-Hartman

    * tag 'char-misc-3.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    mmc: cb710 core: Add missing spin_lock_init for irq_lock of struct cb710_chip
    cs5535-mfgpt: don't call __init function from __devinit
    vmw_balloon: fix for a -Wuninitialized warning
    drivers: misc: Remove MISC_DEVICES config option
    c2port: fix build error for duramar2150 due to missing header.

    Linus Torvalds
     
  • USB fixes for 3.3-rc3

    Here are a few minor USB fixes and a bunch of device id updates for the
    USB drivers.

    Signed-off-by: Greg Kroah-Hartman

    * tag 'usb-3.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
    USB: usbserial: add new PID number (0xa951) to the ftdi driver
    usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu()
    usb: musb: fix a build error on mips
    uwb & wusb & usb wireless controllers: fix kconfig error & build errors
    usb: Skip PCI USB quirk handling for Netlogic XLP
    powerpc/usb: fix issue of CPU halt when missing USB PHY clock
    usb: otg: mv_otg: Add dependence
    usb: host: Distinguish Kconfig text for Freescale controllers
    USB: add new zte 3g-dongle's pid to option.c
    usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu()
    USB: qcserial: don't enable autosuspend
    USB: qcserial: add several new serial devices
    usb: otg: mv_otg: Add dependence
    usb: gadget: zero: fix bug in loopback autoresume handling

    Linus Torvalds
     
  • The current error handling doesn't work because we flash_part is a u32
    so the checks for negative error codes don't work. I considered making
    things signed but I don't know the hardware enough to say if that's a
    problem. Really, we don't use the error codes so just returning zero
    for all problems is fine.

    Signed-off-by: Dan Carpenter
    Signed-off-by: David S. Miller

    Dan Carpenter
     
  • We use len to store the return value from eth_header(). eth_header()
    can return -ETH_HLEN (-14). We want to pass this back instead of
    truncating it to 65522 and returning that.

    Signed-off-by: Dan Carpenter
    Acked-by: Neil Horman
    Signed-off-by: David S. Miller

    Dan Carpenter