1. 13 1月, 2012 21 次提交
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 7c17d86a
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (69 commits)
        pptp: Accept packet with seq zero
        RDS: Remove some unused iWARP code
        net: fsl: fec: handle 10Mbps speed in RMII mode
        drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c: add missing iounmap
        drivers/net/ethernet/tundra/tsi108_eth.c: add missing iounmap
        ksz884x: fix mtu for VLAN
        net_sched: sfq: add optional RED on top of SFQ
        dp83640: Fix NOHZ local_softirq_pending 08 warning
        gianfar: Fix invalid TX frames returned on error queue when time stamping
        gianfar: Fix missing sock reference when processing TX time stamps
        phylib: introduce mdiobus_alloc_size()
        net: decrement memcg jump label when limit, not usage, is changed
        net: reintroduce missing rcu_assign_pointer() calls
        inet_diag: Rename inet_diag_req_compat into inet_diag_req
        inet_diag: Rename inet_diag_req into inet_diag_req_v2
        bond_alb: don't disable softirq under bond_alb_xmit
        mac80211: fix rx->key NULL pointer dereference in promiscuous mode
        nl80211: fix old station flags compatibility
        mdio-octeon: use an unique MDIO bus name.
        mdio-gpio: use an unique MDIO bus name.
        ...
      7c17d86a
    • B
      pptp: Accept packet with seq zero · 91dce7dd
      Bradley Peterson 提交于
      Initialize the PPTP "seq received" value to 0xffffffff, so we don't
      ignore packets with seq zero.
      Signed-off-by: NBradley Peterson <despite@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      91dce7dd
    • R
      RDS: Remove some unused iWARP code · 5b7bf42e
      Roland Dreier 提交于
      rds_iw_flush_goal() just returns a count, but it is only called in one
      place and its return value is ignored there.  So delete all the dead code.
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5b7bf42e
    • E
      net: fsl: fec: handle 10Mbps speed in RMII mode · 8d82f219
      Eric Benard 提交于
      when the link is 10 Mbps and the mode is RMII, it's necessary
      to set FRCONT to 1 in MIIGSK_CFGR to divide the RMII source
      clock by 10 in order to support 10 Mbps operations.
      Signed-off-by: NEric Bénard <eric@eukrea.com>
      Acked-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8d82f219
    • J
      drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c: add missing iounmap · 25cecd7e
      Julia Lawall 提交于
      Add missing iounmap in error handling code, in a case where the function
      already preforms iounmap on some other execution path.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression e;
      statement S,S1;
      int ret;
      @@
      e = \(ioremap\|ioremap_nocache\)(...)
      ... when != iounmap(e)
      if (<+...e...+>) S
      ... when any
          when != iounmap(e)
      *if (...)
         { ... when != iounmap(e)
           return ...; }
      ... when any
      iounmap(e);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      25cecd7e
    • J
      drivers/net/ethernet/tundra/tsi108_eth.c: add missing iounmap · 20d4369b
      Julia Lawall 提交于
      Add missing iounmap in error handling code, in a case where the function
      already preforms iounmap on some other execution path.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression e;
      statement S,S1;
      int ret;
      @@
      e = \(ioremap\|ioremap_nocache\)(...)
      ... when != iounmap(e)
      if (<+...e...+>) S
      ... when any
          when != iounmap(e)
      *if (...)
         { ... when != iounmap(e)
           return ...; }
      ... when any
      iounmap(e);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      20d4369b
    • D
      ksz884x: fix mtu for VLAN · 83636580
      Doug Kehn 提交于
      The Ethernet header does not account for the addition of a VLAN header.
      Full size Ethernet frames containing VLAN header are not processed
      because the frame is larger than the resulting hw mtu.
      Signed-off-by: NDoug Kehn <rdkehn@yahoo.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      83636580
    • E
      net_sched: sfq: add optional RED on top of SFQ · ddecf0f4
      Eric Dumazet 提交于
      Adds an optional Random Early Detection on each SFQ flow queue.
      
      Traditional SFQ limits count of packets, while RED permits to also
      control number of bytes per flow, and adds ECN capability as well.
      
      1) We dont handle the idle time management in this RED implementation,
      since each 'new flow' begins with a null qavg. We really want to address
      backlogged flows.
      
      2) if headdrop is selected, we try to ecn mark first packet instead of
      currently enqueued packet. This gives faster feedback for tcp flows
      compared to traditional RED [ marking the last packet in queue ]
      
      Example of use :
      
      tc qdisc add dev $DEV parent 1:1 handle 10: est 1sec 4sec sfq \
      	limit 3000 headdrop flows 512 divisor 16384 \
      	redflowlimit 100000 min 8000 max 60000 probability 0.20 ecn
      
      qdisc sfq 10: parent 1:1 limit 3000p quantum 1514b depth 127 headdrop
      flows 512/16384 divisor 16384
       ewma 6 min 8000b max 60000b probability 0.2 ecn
       prob_mark 0 prob_mark_head 4876 prob_drop 6131
       forced_mark 0 forced_mark_head 0 forced_drop 0
       Sent 1175211782 bytes 777537 pkt (dropped 6131, overlimits 11007
      requeues 0)
       rate 99483Kbit 8219pps backlog 689392b 456p requeues 0
      
      In this test, with 64 netperf TCP_STREAM sessions, 50% using ECN enabled
      flows, we can see number of packets CE marked is smaller than number of
      drops (for non ECN flows)
      
      If same test is run, without RED, we can check backlog is much bigger.
      
      qdisc sfq 10: parent 1:1 limit 3000p quantum 1514b depth 127 headdrop
      flows 512/16384 divisor 16384
       Sent 1148683617 bytes 795006 pkt (dropped 0, overlimits 0 requeues 0)
       rate 98429Kbit 8521pps backlog 1221290b 841p requeues 0
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      CC: Stephen Hemminger <shemminger@vyatta.com>
      CC: Dave Taht <dave.taht@gmail.com>
      Tested-by: NDave Taht <dave.taht@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ddecf0f4
    • M
      dp83640: Fix NOHZ local_softirq_pending 08 warning · 72092cc4
      Manfred Rudigier 提交于
      Similar problem as in 481a8199 ("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: NManfred Rudigier <manfred.rudigier@omicron.at>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      72092cc4
    • M
      gianfar: Fix invalid TX frames returned on error queue when time stamping · 9c4886e5
      Manfred Rudigier 提交于
      When TX time stamping for PTP messages is enabled on a socket, a time
      stamp is returned on the socket error queue to the user space application
      after the frame was transmitted. The transmitted frame is also returned on
      the error queue so that an application knows to which frame the time stamp
      belongs.
      
      In the current implementation the TxFCB is immediately followed by the
      frame. Since the eTSEC inserts the TX time stamp 8 bytes after the TxFCB,
      parts of the frame have been overwritten and an invalid frame was returned
      on the socket error queue.
      
      This patch fixes the described problem by adding additional 16 padding
      bytes between the TxFCB and the frame for all messages sent from a time
      stamping enabled socket (other sockets are not affected).
      Signed-off-by: NManfred Rudigier <manfred.rudigier@omicron.at>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9c4886e5
    • M
      gianfar: Fix missing sock reference when processing TX time stamps · db83d136
      Manfred Rudigier 提交于
      When there is not enough headroom in the skb a private copy will be made.
      However, the private copy had no reference to the socket and consequently
      no time stamp could be queued on the socket error queue during the
      skb_tstamp_tx function. This patch fixes this issue by also stealing the
      sock reference from the original skb after making the private copy.
      Signed-off-by: NManfred Rudigier <manfred.rudigier@omicron.at>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      db83d136
    • T
      phylib: introduce mdiobus_alloc_size() · eb8a54a7
      Timur Tabi 提交于
      Introduce function mdiobus_alloc_size() as an alternative to mdiobus_alloc().
      Most callers of mdiobus_alloc() also allocate a private data structure, and
      then manually point bus->priv to this object.  mdiobus_alloc_size()
      combines the two operations into one, which simplifies memory management.
      
      The original mdiobus_alloc() now just calls mdiobus_alloc_size(0).
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eb8a54a7
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 2485a4b6
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: bcm5974 - set BUTTONPAD property
        Input: serio_raw - return proper result when serio_raw_write fails
        Input: serio_raw - really signal HUP upon disconnect
        Input: serio_raw - remove stray semicolon
        Input: revert some over-zealous conversions to module_platform_driver()
      2485a4b6
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · 6733e54b
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        FUSE: Notifying the kernel of deletion.
        fuse: support ioctl on directories
        fuse: Use kcalloc instead of kzalloc to allocate array
        fuse: llseek optimize SEEK_CUR and SEEK_SET
      6733e54b
    • L
      Merge tag 'to-linus' of git://github.com/rustyrussell/linux · bcf8a3df
      Linus Torvalds 提交于
      * tag 'to-linus' of git://github.com/rustyrussell/linux: (24 commits)
        lguest: Make sure interrupt is allocated ok by lguest_setup_irq
        lguest: move the lguest tool to the tools directory
        lguest: switch segment-voodoo-numbers to readable symbols
        virtio: balloon: Add freeze, restore handlers to support S4
        virtio: balloon: Move vq initialization into separate function
        virtio: net: Add freeze, restore handlers to support S4
        virtio: net: Move vq and vq buf removal into separate function
        virtio: net: Move vq initialization into separate function
        virtio: blk: Add freeze, restore handlers to support S4
        virtio: blk: Move vq initialization to separate function
        virtio: console: Disable callbacks for virtqueues at start of S4 freeze
        virtio: console: Add freeze and restore handlers to support S4
        virtio: console: Move vq and vq buf removal into separate functions
        virtio: pci: add PM notification handlers for restore, freeze, thaw, poweroff
        virtio: pci: switch to new PM API
        virtio_blk: fix config handler race
        virtio: add debugging if driver doesn't kick.
        virtio: expose added descriptors immediately.
        virtio: avoid modulus operation.
        virtio: support unlocked queue kick
        ...
      bcf8a3df
    • G
      net: decrement memcg jump label when limit, not usage, is changed · 1398eee0
      Glauber Costa 提交于
      The logic of the current code is that whenever we destroy
      a cgroup that had its limit set (set meaning different than
      maximum), we should decrement the jump_label counter.
      Otherwise we assume it was never incremented.
      
      But what the code actually does is test for RES_USAGE
      instead of RES_LIMIT. Usage being different than maximum
      is likely to be true most of the time.
      
      The effect of this is that the key must become negative,
      and since the jump_label test says:
      
              !!atomic_read(&key->enabled);
      
      we'll have jump_labels still on when no one else is
      using this functionality.
      Signed-off-by: NGlauber Costa <glommer@parallels.com>
      CC: David S. Miller <davem@davemloft.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1398eee0
    • E
      net: reintroduce missing rcu_assign_pointer() calls · cf778b00
      Eric Dumazet 提交于
      commit a9b3cd7f (rcu: convert uses of rcu_assign_pointer(x, NULL) to
      RCU_INIT_POINTER) did a lot of incorrect changes, since it did a
      complete conversion of rcu_assign_pointer(x, y) to RCU_INIT_POINTER(x,
      y).
      
      We miss needed barriers, even on x86, when y is not NULL.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      CC: Stephen Hemminger <shemminger@vyatta.com>
      CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cf778b00
    • L
      brcmsmac: fix reading of PCI sprom contents · 61bd5e56
      Linus Torvalds 提交于
      It appears that you can only read the sprom contents with aligned 16-bit
      reads: anything else causes at least some versions of the broadcom
      chipset to abort the PCI transaction, returning 0xff.
      
      This apparently doesn't trigger very often, because most setups don't
      use an external srom chip, and the OTP sprom loading doesn't have this
      issue.  But at least the current 11" Macbook Air does trigger it, and
      wireless communications were broken as a result.
      Acked-by: NArend van Spriel <arend@broadcom.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      61bd5e56
    • D
    • A
      x86: Get rid of 'dubious one-bit signed bitfield' sprase warning · bccd1729
      Anton Vorontsov 提交于
      This very noisy sparse warning appears on almost every file in the
      kernel:
      
        CHECK   init/main.c
        arch/x86/include/asm/thread_info.h:43:55: error: dubious one-bit signed bitfield
        arch/x86/include/asm/thread_info.h:44:46: error: dubious one-bit signed bitfield
      
      This patch changes sig_on_uaccess_error and uaccess_err flags to unsigned
      type and thus fixes the warning.
      Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
      Acked-by: NAndy Lutomirski <luto@mit.edu>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bccd1729
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · a429638c
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (526 commits)
        ASoC: twl6040 - Add method to query optimum PDM_DL1 gain
        ALSA: hda - Fix the lost power-setup of seconary pins after PM resume
        ALSA: usb-audio: add Yamaha MOX6/MOX8 support
        ALSA: virtuoso: add S/PDIF input support for all Xonars
        ALSA: ice1724 - Support for ooAoo SQ210a
        ALSA: ice1724 - Allow card info based on model only
        ALSA: ice1724 - Create capture pcm only for ADC-enabled configurations
        ALSA: hdspm - Provide unique driver id based on card serial
        ASoC: Dynamically allocate the rtd device for a non-empty release()
        ASoC: Fix recursive dependency due to select ATMEL_SSC in SND_ATMEL_SOC_SSC
        ALSA: hda - Fix the detection of "Loopback Mixing" control for VIA codecs
        ALSA: hda - Return the error from get_wcaps_type() for invalid NIDs
        ALSA: hda - Use auto-parser for HP laptops with cx20459 codec
        ALSA: asihpi - Fix potential Oops in snd_asihpi_cmode_info()
        ALSA: hdsp - Fix potential Oops in snd_hdsp_info_pref_sync_ref()
        ALSA: hda/cirrus - support for iMac12,2 model
        ASoC: cx20442: add bias control over a platform provided regulator
        ALSA: usb-audio - Avoid flood of frame-active debug messages
        ALSA: snd-usb-us122l: Delete calls to preempt_disable
        mfd: Put WM8994 into cache only mode when suspending
        ...
      
      Fix up trivial conflicts in:
       - arch/arm/mach-s3c64xx/mach-crag6410.c:
      	renamed speyside_wm8962 to tobermory, added littlemill right
      	next to it
       - drivers/base/regmap/{regcache.c,regmap.c}:
      	duplicate diff that had already come in with other changes in
      	the regmap tree
      a429638c
  2. 12 1月, 2012 19 次提交