20 Jul, 2012

2 commits


19 Jul, 2012

1 commit

  • add OF support for the davinci_emac driver.

    Signed-off-by: Heiko Schocher
    Acked-by: Sekhar Nori
    Signed-off-by: Anatolij Gustschin
    Cc: netdev@vger.kernel.org
    Cc: davinci-linux-open-source@linux.davincidsp.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: devicetree-discuss@lists.ozlabs.org
    Cc: Grant Likely
    Cc: Sekhar Nori
    Cc: Wolfgang Denk
    Cc: Anatoly Sivov
    Cc: David Miller
    Signed-off-by: David S. Miller

    Heiko Schocher
     

17 Jul, 2012

1 commit

  • Implement the RFC 5691 mitigation against Blind
    Reset attack using RST bit.

    Idea is to validate incoming RST sequence,
    to match RCV.NXT value, instead of previouly accepted
    window : (RCV.NXT < RCV.NXT+RCV.WND)

    If sequence is in window but not an exact match, send
    a "challenge ACK", so that the other part can resend an
    RST with the appropriate sequence.

    Add a new sysctl, tcp_challenge_ack_limit, to limit
    number of challenge ACK sent per second.

    Add a new SNMP counter to count number of challenge acks sent.
    (netstat -s | grep TCPChallengeACK)

    Signed-off-by: Eric Dumazet
    Cc: Kiran Kumar Kella
    Signed-off-by: David S. Miller

    Eric Dumazet
     

13 Jul, 2012

1 commit


12 Jul, 2012

1 commit

  • This introduce TSQ (TCP Small Queues)

    TSQ goal is to reduce number of TCP packets in xmit queues (qdisc &
    device queues), to reduce RTT and cwnd bias, part of the bufferbloat
    problem.

    sk->sk_wmem_alloc not allowed to grow above a given limit,
    allowing no more than ~128KB [1] per tcp socket in qdisc/dev layers at a
    given time.

    TSO packets are sized/capped to half the limit, so that we have two
    TSO packets in flight, allowing better bandwidth use.

    As a side effect, setting the limit to 40000 automatically reduces the
    standard gso max limit (65536) to 40000/2 : It can help to reduce
    latencies of high prio packets, having smaller TSO packets.

    This means we divert sock_wfree() to a tcp_wfree() handler, to
    queue/send following frames when skb_orphan() [2] is called for the
    already queued skbs.

    Results on my dev machines (tg3/ixgbe nics) are really impressive,
    using standard pfifo_fast, and with or without TSO/GSO.

    Without reduction of nominal bandwidth, we have reduction of buffering
    per bulk sender :
    < 1ms on Gbit (instead of 50ms with TSO)
    < 8ms on 100Mbit (instead of 132 ms)

    I no longer have 4 MBytes backlogged in qdisc by a single netperf
    session, and both side socket autotuning no longer use 4 Mbytes.

    As skb destructor cannot restart xmit itself ( as qdisc lock might be
    taken at this point ), we delegate the work to a tasklet. We use one
    tasklest per cpu for performance reasons.

    If tasklet finds a socket owned by the user, it sets TSQ_OWNED flag.
    This flag is tested in a new protocol method called from release_sock(),
    to eventually send new segments.

    [1] New /proc/sys/net/ipv4/tcp_limit_output_bytes tunable
    [2] skb_orphan() is usually called at TX completion time,
    but some drivers call it in their start_xmit() handler.
    These drivers should at least use BQL, or else a single TCP
    session can still fill the whole NIC TX ring, since TSQ will
    have no effect.

    Signed-off-by: Eric Dumazet
    Cc: Dave Taht
    Cc: Tom Herbert
    Cc: Matt Mathis
    Cc: Yuchung Cheng
    Cc: Nandita Dukkipati
    Signed-off-by: David S. Miller

    Eric Dumazet
     

11 Jul, 2012

1 commit

  • URLs to neterion.com and s2io.com no longer resolve. Remove all references to
    these URLs in the driver source and documentation.

    Signed-off-by: Jon Mason
    Signed-off-by: David S. Miller

    Jon Mason
     

10 Jul, 2012

1 commit


08 Jul, 2012

1 commit


05 Jul, 2012

1 commit


04 Jul, 2012

2 commits

  • Pull block bits from Jens Axboe:
    "As vacation is coming up, thought I'd better get rid of my pending
    changes in my for-linus branch for this iteration. It contains:

    - Two patches for mtip32xx. Killing a non-compliant sysfs interface
    and moving it to debugfs, where it belongs.

    - A few patches from Asias. Two legit bug fixes, and one killing an
    interface that is no longer in use.

    - A patch from Jan, making the annoying partition ioctl warning a bit
    less annoying, by restricting it to !CAP_SYS_RAWIO only.

    - Three bug fixes for drbd from Lars Ellenberg.

    - A fix for an old regression for umem, it hasn't really worked since
    the plugging scheme was changed in 3.0.

    - A few fixes from Tejun.

    - A splice fix from Eric Dumazet, fixing an issue with pipe
    resizing."

    * 'for-linus' of git://git.kernel.dk/linux-block:
    scsi: Silence unnecessary warnings about ioctl to partition
    block: Drop dead function blk_abort_queue()
    block: Mitigate lock unbalance caused by lock switching
    block: Avoid missed wakeup in request waitqueue
    umem: fix up unplugging
    splice: fix racy pipe->buffers uses
    drbd: fix null pointer dereference with on-congestion policy when diskless
    drbd: fix list corruption by failing but already aborted reads
    drbd: fix access of unallocated pages and kernel panic
    xen/blkfront: Add WARN to deal with misbehaving backends.
    blkcg: drop local variable @q from blkg_destroy()
    mtip32xx: Create debugfs entries for troubleshooting
    mtip32xx: Remove 'registers' and 'flags' from sysfs
    blkcg: fix blkg_alloc() failure path
    block: blkcg_policy_cfq shouldn't be used if !CONFIG_CFQ_GROUP_IOSCHED
    block: fix return value on cfq_init() failure
    mtip32xx: Remove version.h header file inclusion
    xen/blkback: Copy id field when doing BLKIF_DISCARD.

    Linus Torvalds
     
  • Pull device-mapper fixes from Alasdair G Kergon:
    "Four minor thin provisioning fixes and correct and update dm-verity
    documentation."

    * tag 'dm-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-dm:
    dm: verity fix documentation
    dm persistent data: fix allocation failure in space map checker init
    dm persistent data: handle space map checker creation failure
    dm persistent data: fix shadow_info_leak on dm_tm_destroy
    dm thin: commit metadata before creating metadata snapshot

    Linus Torvalds
     

03 Jul, 2012

2 commits

  • Veritysetup is now part of cryptsetup package.
    Remove on-disk header description (which is not parsed in kernel)
    and point users to cryptsetup where it the format is documented.
    Mention units for block size paramaters.
    Fix target line specification and dmsetup parameters.

    Signed-off-by: Milan Broz
    Cc: stable@kernel.org
    Signed-off-by: Alasdair G Kergon

    Milan Broz
     
  • Document no_new_privs.

    Signed-off-by: Andy Lutomirski
    Acked-by: Kees Cook
    Signed-off-by: James Morris

    Andy Lutomirski
     

02 Jul, 2012

1 commit


01 Jul, 2012

3 commits

  • This patch updates the stmmac's documentation adding
    some missing files in the section used to describe the
    internal driver's structure.

    Also the patch adds a new section to describe the EEE support.

    Signed-off-by: Giuseppe Cavallaro
    Signed-off-by: David S. Miller

    Giuseppe CAVALLARO
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • Pull driver Core fixes from Greg Kroah-Hartman:
    "Here is a number of printk() fixes, specifically a few reported by the
    crazy blog program that ships in SUSE releases (that's "boot log" and
    not "web log", it predates the general "blog" terminology by many
    years), and the restoration of the continuation line functionality
    reported by Stephen and others. Yes, the changes seem a bit big this
    late in the cycle, but I've been beating on them for a while now, and
    Stephen has even optimized it a bit, so all looks good to me.

    The other change in here is a Documentation update for the stable
    kernel rules describing how some distro patches should be backported,
    to hopefully drive a bit more response from the distros to the stable
    kernel releases.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'driver-core-3.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    printk: Optimize if statement logic where newline exists
    printk: flush continuation lines immediately to console
    syslog: fill buffer with more than a single message for SYSLOG_ACTION_READ
    Revert "printk: return -EINVAL if the message len is bigger than the buf size"
    printk: fix regression in SYSLOG_ACTION_CLEAR
    stable: Allow merging of backports for serious user-visible performance issues

    Linus Torvalds
     

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
     

28 Jun, 2012

4 commits

  • Add a driver for BCM8706 and BCM8727 devices. These are a 10Gig PHYs
    which use MII_ADDR_C45 addressing. They are always 10G full duplex, so
    there is no autonegotiation. All we do is report link state and send
    interrupts when it changes.

    If the PHY has a device tree of_node associated with it, the
    "broadcom,c45-reg-init" property is used to supply register
    initialization values when config_init() is called.

    Signed-off-by: David Daney
    Signed-off-by: David S. Miller

    David Daney
     
  • Define two new "compatible" values for Ethernet
    PHYs. "ethernet-phy-ieee802.3-c22" and "ethernet-phy-ieee802.3-c45"
    are used to indicate a PHY uses the corresponding protocol.

    If a PHY is "compatible" with "ethernet-phy-ieee802.3-c45", we
    indicate this so that get_phy_device() can properly probe the device.

    If get_phy_device() fails, it was probably due to failing the probe of
    the PHY identifier registers. Since we have the device tree telling
    us the PHY exists, go ahead and add it anyhow with a phy_id of zero.
    There may be a driver match based on the "compatible" property.

    Signed-off-by: David Daney
    Signed-off-by: David S. Miller

    David Daney
     
  • Different boards may require different phy reset duration. Add property
    phy-reset-duration for device tree probe, so that the boards that need
    a longer reset duration can specify it in their device tree.

    Signed-off-by: Shawn Guo
    Signed-off-by: David S. Miller

    Shawn Guo
     
  • The phy-reset-gpios is an optional property for fec device tree boot.
    Change the binding document to match the driver code.

    Signed-off-by: Shawn Guo
    Signed-off-by: David S. Miller

    Shawn Guo
     

27 Jun, 2012

1 commit


26 Jun, 2012

3 commits

  • Update drawing and remove description of old features.
    Add HSI and USB link layers to the drawing.

    Reported-by: Joerg Reisenweber
    Signed-off-by: Sjur Brændeland
    Signed-off-by: David S. Miller

    Sjur Brændeland
     
  • Pull media fixes from Mauro Carvalho Chehab.

    Trivial conflict due to new USB HID ID's being added next to each other
    (Baanto vs Axentia).

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (44 commits)
    [media] smia: Fix compile failures
    [media] Fix VIDIOC_DQEVENT docbook entry
    [media] s5p-fimc: Fix control creation function
    [media] s5p-mfc: Fix checkpatch error in s5p_mfc_shm.h file
    [media] s5p-mfc: Fix setting controls
    [media] v4l/s5p-mfc: added image size align in VIDIOC_TRY_FMT
    [media] v4l/s5p-mfc: corrected encoder v4l control definitions
    [media] v4l: mem2mem_testdev: Fix race conditions in driver
    [media] s5p-mfc: Bug fix of timestamp/timecode copy mechanism
    [media] cxd2820r: Fix an incorrect modulation type bitmask
    [media] em28xx: Show a warning if the board does not support remote controls
    [media] em28xx: Add remote control support for Terratec's Cinergy HTC Stick HD
    [media] USB: Staging: media: lirc: initialize spinlocks before usage
    [media] Revert "[media] media: mx2_camera: Fix mbus format handling"
    [media] bw-qcam: driver and pixfmt documentation fixes
    [media] cx88: fix firmware load on big-endian systems
    [media] cx18: support big-endian systems
    [media] ivtv: fix support for big-endian systems
    [media] tuner-core: return the frequency range of the correct tuner
    [media] v4l2-dev.c: fix g_parm regression in determine_valid_ioctls()
    ...

    Linus Torvalds
     
  • Distribution kernel maintainers routinely backport fixes for users that
    were deemed important but not "something critical" as defined by the
    rules. To users of these kernels they are very serious and failing to fix
    them reduces the value of -stable.

    The problem is that the patches fixing these issues are often subtle and
    prone to regressions in other ways and need greater care and attention.
    To combat this, these "serious" backports should have a higher barrier
    to entry.

    This patch relaxes the rules to allow a distribution maintainer to merge
    to -stable a backported patch or small series that fixes a "serious"
    user-visible performance issue. They should include additional information on
    the user-visible bug affected and a link to the bugzilla entry if available.
    The same rules about the patch being already in mainline still apply.

    Signed-off-by: Mel Gorman
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Mel Gorman
     

21 Jun, 2012

3 commits

  • Pull staging tree fixes from Greg Kroah-Hartman:
    "Here are a number of small fixes for the drivers/staging tree, as well
    as iio and pstore drivers (which came from the staging tree in the
    3.5-rc1 merge). All of these are tiny, but resolve issues that people
    have been reporting.

    There's also a documentation update to reflect what the iio drivers
    really are doing, which is good to get straightened out.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'staging-3.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    staging: r8712u: Add new USB IDs
    staging: gdm72xx: Release netlink socket properly
    iio: drop wrong reference from Kconfig
    pstore/inode: Make pstore_fill_super() static
    pstore/ram: Should zap persistent zone on unlink
    pstore/ram_core: Factor persistent_ram_zap() out of post_init()
    pstore/ram_core: Do not reset restored zone's position and size
    pstore/ram: Should update old dmesg buffer before reading
    staging:iio:ad7298: Fix linker error due to missing IIO kfifo buffer
    Revert "staging: usbip: bugfix for stack corruption on 64-bit architectures"
    staging: usbip: bugfix for stack corruption on 64-bit architectures
    staging/comedi: fix build for USB not enabled
    staging: omapdrm: fix crash when freeing bad fb
    staging:iio:ad7606: Re-add missing scale attribute
    iio: Fix potential use after free
    staging:iio: remove num_interrupt_lines from documentation
    iio: documentation: Add out_altvoltage and friends

    Linus Torvalds
     
  • * emailed from Andrew Morton : (21 patches)
    mm/memblock: fix overlapping allocation when doubling reserved array
    c/r: prctl: Move PR_GET_TID_ADDRESS to a proper place
    pidns: find_new_reaper() can no longer switch to init_pid_ns.child_reaper
    pidns: guarantee that the pidns init will be the last pidns process reaped
    fault-inject: avoid call to random32() if fault injection is disabled
    Viresh has moved
    get_maintainer: Fix --help warning
    mm/memory.c: fix kernel-doc warnings
    mm: fix kernel-doc warnings
    mm: correctly synchronize rss-counters at exit/exec
    mm, thp: print useful information when mmap_sem is unlocked in zap_pmd_range
    h8300: use the declarations provided by
    h8300: fix use of extinct _sbss and _ebss
    xtensa: use the declarations provided by
    xtensa: use "test -e" instead of bashism "test -a"
    xtensa: replace xtensa-specific _f{data,text} by _s{data,text}
    memcg: fix use_hierarchy css_is_ancestor oops regression
    mm, oom: fix and cleanup oom score calculations
    nilfs2: ensure proper cache clearing for gc-inodes
    thp: avoid atomic64_read in pmd_read_atomic for 32bit PAE
    ...

    Linus Torvalds
     
  • viresh.kumar@st.com email-id doesn't exist anymore as I have left the
    company. Replace ST's id with viresh.linux@gmail.com.

    It also updates .mailmap file to fix address for 'git shortlog'

    Signed-off-by: Viresh Kumar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Viresh Kumar
     

20 Jun, 2012

1 commit


19 Jun, 2012

2 commits

  • Signed-off-by: Hans Verkuil
    Acked-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Added additional counters in a bat_stats structure, which are exported
    through the ethtool api. The counters are specific to batman-adv and
    includes:
    forwarded packets and bytes
    management packets and bytes (aggregated OGMs at this point)
    translation table packets

    New counters are added by extending "enum bat_counters" in types.h and
    adding corresponding descriptive string(s) to bat_counters_strings in
    soft-iface.c.

    Counters are increased by calling batadv_add_counter() and incremented
    by one by calling batadv_inc_counter().

    Signed-off-by: Martin Hundebøll
    Signed-off-by: Sven Eckelmann

    Martin Hundebøll
     

18 Jun, 2012

3 commits


16 Jun, 2012

1 commit


14 Jun, 2012

1 commit

  • Pull networking fixes from David S. Miller:

    This has the fix for the wireless issues I ran into the other week as
    well as:

    1) Fix CAN c_can driver transmit handling resulting in BUG check
    triggers, from AnilKumar Ch.

    2) Fix packet drop monitor sleeping in atomic context, from Eric
    Dumazet.

    3) Fix mv643xx_eth driver build regression, from Andrew Lunn.

    4) Inetpeer freeing needs an RCU grace period in order to avoid races
    during tree invalidation. From Eric Dumazet.

    5) Fix endianness bugs in xt_HMARK netfilter module, from Hans
    Schillstrom.

    6) Add proper module refcounting to l2tp_eth to avoid crash on module
    unload, from Eric Dumazet.

    7) Fix truncation of neighbour entry dumps due to logic errors in
    neigh_dump_info() and friends, from Eric Dumazet.

    8) The conversion of fib6_age() to dst_neigh_lookup() accidently
    reversed the logic of a flags test, fix from Thomas Graf.

    9) Fix checksum configuration in newer sky2 chips, from Stephen
    Hemminger.

    10) Revert BQL support in NIU driver, doesn't work.

    11) l2tp_ip_sendmsg() illegally uses a route without a proper reference.
    From Eric Dumazet.

    12) be2net driver references an SKB after it's potentially been freed,
    also from Eric Dumazet.

    13) Fix RCU stalls in dummy net driver init. Also from Eric Dumazet.

    14) lpc_eth has several bugs in it's transmit engine leading to packet
    leaks and improper queue wakes, from Eric Dumazet.

    15) Apply short DMA workaround to more tg3 chips, from Matt Carlson.

    16) Add tilegx network driver.

    17) Bonding queue mapping for a packet can get corrupted, fix from Eric
    Dumazet.

    18) Fix bug in netpoll_send_udp() SKB management that can leave garbage
    in the payload in certain situations. From Eric Dumazet.

    19) bnx2x driver interprets chip RX checksum offload incorrectly in
    encapsulation situations. Fix from Eric Dumazet.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (75 commits)
    bnx2x: fix checksum validation
    netpoll: fix netpoll_send_udp() bugs
    bonding: Fix corrupted queue_mapping
    bonding:record primary when modify it via sysfs
    tilegx network driver: initial support
    tg3: Apply short DMA frag workaround to 5906
    net: stmmac: Fix clock en-/disable calls
    lpc_eth: fix tx completion
    lpc_eth: add missing ndo_change_mtu()
    dummy: fix rcu_sched self-detected stalls
    net: Reorder initialization in ip_route_output to fix gcc warning
    virtio-net: fix a race on 32bit arches
    r8169: avoid NAPI scheduling delay.
    net: Make linux/tcp.h C++ friendly (trivial)
    netdev: fix drivers/net/phy/ kernel-doc warnings
    net/core: fix kernel-doc warnings
    be2net: fix a race in be_xmit()
    l2tp: fix a race in l2tp_ip_sendmsg()
    mac80211: add back channel change flag
    NFC: Fix possible NULL ptr deref when getting the name of a socket
    ...

    Linus Torvalds
     

13 Jun, 2012

2 commits

  • Routing of 127/8 is tradtionally forbidden, we consider
    packets from that address block martian when routing and do
    not process corresponding ARP requests.

    This is a sane default but renders a huge address space
    practically unuseable.

    The RFC states that no address within the 127/8 block should
    ever appear on any network anywhere but it does not forbid
    the use of such addresses outside of the loopback device in
    particular. For example to address a pool of virtual guests
    behind a load balancer.

    This patch adds a new interface option 'route_localnet'
    enabling routing of the 127/8 address block and processing
    of ARP requests on a specific interface.

    Note that for the feature to work, the default local route
    covering 127/8 dev lo needs to be removed.

    Example:
    $ sysctl -w net.ipv4.conf.eth0.route_localnet=1
    $ ip route del 127.0.0.0/8 dev lo table local
    $ ip addr add 127.1.0.1/16 dev eth0
    $ ip route flush cache

    V2: Fix invalid check to auto flush cache (thanks davem)

    Signed-off-by: Thomas Graf
    Acked-by: Neil Horman
    Signed-off-by: David S. Miller

    Thomas Graf
     
  • …wireless-next into for-davem

    John W. Linville