1. 07 2月, 2014 2 次提交
  2. 06 2月, 2014 2 次提交
    • D
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jesse/openvswitch · 028b86b7
      David S. Miller 提交于
      Jesse Gross says:
      
      ====================
      Open vSwitch
      
      A handful of bug fixes for net/3.14. High level fixes are:
       * Regressions introduced by the zerocopy changes, particularly with
         old userspaces.
       * A few bugs lingering from the introduction of megaflows.
       * Overly zealous error checking that is now being triggered frequently
         in common cases.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      028b86b7
    • Z
      xen-netback: Fix Rx stall due to race condition · 9ab9831b
      Zoltan Kiss 提交于
      The recent patch to fix receive side flow control
      (11b57f90: xen-netback: stop vif thread
      spinning if frontend is unresponsive) solved the spinning thread problem,
      however caused an another one. The receive side can stall, if:
      - [THREAD] xenvif_rx_action sets rx_queue_stopped to true
      - [INTERRUPT] interrupt happens, and sets rx_event to true
      - [THREAD] then xenvif_kthread sets rx_event to false
      - [THREAD] rx_work_todo doesn't return true anymore
      
      Also, if interrupt sent but there is still no room in the ring, it take quite a
      long time until xenvif_rx_action realize it. This patch ditch that two variable,
      and rework rx_work_todo. If the thread finds it can't fit more skb's into the
      ring, it saves the last slot estimation into rx_last_skb_slots, otherwise it's
      kept as 0. Then rx_work_todo will check if:
      - there is something to send to the ring (like before)
      - there is space for the topmost packet in the queue
      
      I think that's more natural and optimal thing to test than two bool which are
      set somewhere else.
      Signed-off-by: NZoltan Kiss <zoltan.kiss@citrix.com>
      Reviewed-by: NPaul Durrant <paul.durrant@citrix.com>
      Acked-by: NWei Liu <wei.liu2@citrix.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9ab9831b
  3. 05 2月, 2014 20 次提交
  4. 04 2月, 2014 1 次提交
  5. 02 2月, 2014 6 次提交
  6. 31 1月, 2014 9 次提交
    • D
      Merge tag 'linux-can-fixes-for-3.14-20140129' of git://gitorious.org/linux-can/linux-can · 65b80cae
      David S. Miller 提交于
      linux-can-fixes-for-3.14-20140129
      
      Marc Kleine-Budde says:
      
      ====================
      Arnd Bergmann provides a fix for the flexcan driver, enabling compilation on
      all combinations of big and little endian on ARM and PowerPc. A patch by Ira W.
      Snyder fixes uninitialized variable warnings in the janz-ican3 driver.
      Rostislav Lisovy contributes a patch to propagate the SO_PRIORITY of raw
      sockets to skbs.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      65b80cae
    • M
      e100: Fix "disabling already-disabled device" warning · 2b6e0ca1
      Michele Baldessari 提交于
      In https://bugzilla.redhat.com/show_bug.cgi?id=994438 and
      https://bugzilla.redhat.com/show_bug.cgi?id=970480  we
      received different reports of e100 throwing the following
      warning:
      
       [<c06a0ba5>] ? pci_disable_device+0x85/0x90
       [<c044a153>] warn_slowpath_fmt+0x33/0x40
       [<c06a0ba5>] pci_disable_device+0x85/0x90
       [<f7fdf7e0>] __e100_shutdown+0x80/0x120 [e100]
       [<c0476ca5>] ? check_preempt_curr+0x65/0x90
       [<f7fdf8d6>] e100_suspend+0x16/0x30 [e100]
       [<c06a1ebb>] pci_legacy_suspend+0x2b/0xb0
       [<c098fc0f>] ? wait_for_completion+0x1f/0xd0
       [<c06a2d50>] ? pci_pm_poweroff+0xb0/0xb0
       [<c06a2de4>] pci_pm_freeze+0x94/0xa0
       [<c0767bb7>] dpm_run_callback+0x37/0x80
       [<c076a204>] ? pm_wakeup_pending+0xc4/0x140
       [<c0767f12>] __device_suspend+0xb2/0x1f0
       [<c076806f>] async_suspend+0x1f/0x90
       [<c04706e5>] async_run_entry_fn+0x35/0x140
       [<c0478aef>] ? wake_up_process+0x1f/0x40
       [<c0464495>] process_one_work+0x115/0x370
       [<c0462645>] ? start_worker+0x25/0x30
       [<c0464dc5>] ? manage_workers.isra.27+0x1a5/0x250
       [<c0464f6e>] worker_thread+0xfe/0x330
       [<c0464e70>] ? manage_workers.isra.27+0x250/0x250
       [<c046a224>] kthread+0x94/0xa0
       [<c0997f37>] ret_from_kernel_thread+0x1b/0x28
       [<c046a190>] ? insert_kthread_work+0x30/0x30
      
      This patch removes pci_disable_device() from __e100_shutdown().
      pci_clear_master() is enough.
      Signed-off-by: NMichele Baldessari <michele@acksyn.org>
      Tested-by: NMark Harig <idirectscm@aim.com>
      Signed-off-by: NAaron Brown <aaron.f.brown@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b6e0ca1
    • V
    • O
      can: add destructor for self generated skbs · 0ae89beb
      Oliver Hartkopp 提交于
      Self generated skbuffs in net/can/bcm.c are setting a skb->sk reference but
      no explicit destructor which is enforced since Linux 3.11 with commit
      376c7311 (net: add a temporary sanity check in skb_orphan()).
      
      This patch adds some helper functions to make sure that a destructor is
      properly defined when a sock reference is assigned to a CAN related skb.
      To create an unshared skb owned by the original sock a common helper function
      has been introduced to replace open coded functions to create CAN echo skbs.
      Signed-off-by: NOliver Hartkopp <socketcan@hartkopp.net>
      Tested-by: NAndre Naujoks <nautsch2@gmail.com>
      Reviewed-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0ae89beb
    • O
      net/vxlan: Go over all candidate streams for GRO matching · 920a0fde
      Or Gerlitz 提交于
      The loop in vxlan_gro_receive() over the current set of candidates for
      coalescing was wrongly aborted once a match was found. In rare cases,
      this can cause a false-positives matching in the next layer GRO checks.
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      920a0fde
    • O
      net/ipv4: Use non-atomic allocation of udp offloads structure instance · b5aaab12
      Or Gerlitz 提交于
      Since udp_add_offload() can be called from non-sleepable context e.g
      under this call tree from the vxlan driver use case:
      
        vxlan_socket_create() <-- holds the spinlock
        -> vxlan_notify_add_rx_port()
           -> udp_add_offload()  <-- schedules
      
      we should allocate the udp_offloads structure in atomic manner.
      
      Fixes: b582ef09 ('net: Add GRO support for UDP encapsulating protocols')
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b5aaab12
    • S
      net: eth: cpsw: Correctly attach to GPIO bitbang MDIO driver · f8d56d8f
      Stefan Roese 提交于
      When the GPIO bitbang MDIO driver is used instead of the Davinci MDIO driver
      we need to configure the phy_id string differently. Otherwise this string
      looks like this "gpio.6" instead of "gpio-0" and the PHY is not found when
      phy_connect() is called.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Lukas Stockmann <lukas.stockmann@siemens.com>
      Cc: Mugunthan V N <mugunthanvnm@ti.com>
      Acked-by: NMugunthan V N <mugunthanvnm@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f8d56d8f
    • L
      Merge branch 'for-3.14/drivers' of git://git.kernel.dk/linux-block · 53d8ab29
      Linus Torvalds 提交于
      Pull block IO driver changes from Jens Axboe:
      
       - bcache update from Kent Overstreet.
      
       - two bcache fixes from Nicholas Swenson.
      
       - cciss pci init error fix from Andrew.
      
       - underflow fix in the parallel IDE pg_write code from Dan Carpenter.
         I'm sure the 1 (or 0) users of that are now happy.
      
       - two PCI related fixes for sx8 from Jingoo Han.
      
       - floppy init fix for first block read from Jiri Kosina.
      
       - pktcdvd error return miss fix from Julia Lawall.
      
       - removal of IRQF_SHARED from the SEGA Dreamcast CD-ROM code from
         Michael Opdenacker.
      
       - comment typo fix for the loop driver from Olaf Hering.
      
       - potential oops fix for null_blk from Raghavendra K T.
      
       - two fixes from Sam Bradshaw (Micron) for the mtip32xx driver, fixing
         an OOM problem and a problem with handling security locked conditions
      
      * 'for-3.14/drivers' of git://git.kernel.dk/linux-block: (47 commits)
        mg_disk: Spelling s/finised/finished/
        null_blk: Null pointer deference problem in alloc_page_buffers
        mtip32xx: Correctly handle security locked condition
        mtip32xx: Make SGL container per-command to eliminate high order dma allocation
        drivers/block/loop.c: fix comment typo in loop_config_discard
        drivers/block/cciss.c:cciss_init_one(): use proper errnos
        drivers/block/paride/pg.c: underflow bug in pg_write()
        drivers/block/sx8.c: remove unnecessary pci_set_drvdata()
        drivers/block/sx8.c: use module_pci_driver()
        floppy: bail out in open() if drive is not responding to block0 read
        bcache: Fix auxiliary search trees for key size > cacheline size
        bcache: Don't return -EINTR when insert finished
        bcache: Improve bucket_prio() calculation
        bcache: Add bch_bkey_equal_header()
        bcache: update bch_bkey_try_merge
        bcache: Move insert_fixup() to btree_keys_ops
        bcache: Convert sorting to btree_keys
        bcache: Convert debug code to btree_keys
        bcache: Convert btree_iter to struct btree_keys
        bcache: Refactor bset_tree sysfs stats
        ...
      53d8ab29
    • L
      Merge branch 'for-3.14/core' of git://git.kernel.dk/linux-block · f568849e
      Linus Torvalds 提交于
      Pull core block IO changes from Jens Axboe:
       "The major piece in here is the immutable bio_ve series from Kent, the
        rest is fairly minor.  It was supposed to go in last round, but
        various issues pushed it to this release instead.  The pull request
        contains:
      
         - Various smaller blk-mq fixes from different folks.  Nothing major
           here, just minor fixes and cleanups.
      
         - Fix for a memory leak in the error path in the block ioctl code
           from Christian Engelmayer.
      
         - Header export fix from CaiZhiyong.
      
         - Finally the immutable biovec changes from Kent Overstreet.  This
           enables some nice future work on making arbitrarily sized bios
           possible, and splitting more efficient.  Related fixes to immutable
           bio_vecs:
      
              - dm-cache immutable fixup from Mike Snitzer.
              - btrfs immutable fixup from Muthu Kumar.
      
        - bio-integrity fix from Nic Bellinger, which is also going to stable"
      
      * 'for-3.14/core' of git://git.kernel.dk/linux-block: (44 commits)
        xtensa: fixup simdisk driver to work with immutable bio_vecs
        block/blk-mq-cpu.c: use hotcpu_notifier()
        blk-mq: for_each_* macro correctness
        block: Fix memory leak in rw_copy_check_uvector() handling
        bio-integrity: Fix bio_integrity_verify segment start bug
        block: remove unrelated header files and export symbol
        blk-mq: uses page->list incorrectly
        blk-mq: use __smp_call_function_single directly
        btrfs: fix missing increment of bi_remaining
        Revert "block: Warn and free bio if bi_end_io is not set"
        block: Warn and free bio if bi_end_io is not set
        blk-mq: fix initializing request's start time
        block: blk-mq: don't export blk_mq_free_queue()
        block: blk-mq: make blk_sync_queue support mq
        block: blk-mq: support draining mq queue
        dm cache: increment bi_remaining when bi_end_io is restored
        block: fixup for generic bio chaining
        block: Really silence spurious compiler warnings
        block: Silence spurious compiler warnings
        block: Kill bio_pair_split()
        ...
      f568849e