1. 27 3月, 2018 1 次提交
  2. 27 2月, 2018 1 次提交
  3. 07 12月, 2017 1 次提交
  4. 18 10月, 2017 1 次提交
  5. 17 10月, 2017 1 次提交
  6. 22 9月, 2017 1 次提交
  7. 29 8月, 2017 1 次提交
    • W
      xen-netback: update ubuf_info initialization to anonymous union · cc8737a5
      Willem de Bruijn 提交于
      The xen driver initializes struct ubuf_info fields using designated
      initializers. I recently moved these fields inside a nested anonymous
      struct inside an anonymous union. I had missed this use case.
      
      This breaks compilation of xen-netback with older compilers.
      >From kbuild bot with gcc-4.4.7:
      
         drivers/net//xen-netback/interface.c: In function
         'xenvif_init_queue':
         >> drivers/net//xen-netback/interface.c:554: error: unknown field 'ctx' specified in initializer
         >> drivers/net//xen-netback/interface.c:554: warning: missing braces around initializer
            drivers/net//xen-netback/interface.c:554: warning: (near initialization for '(anonymous).<anonymous>')
         >> drivers/net//xen-netback/interface.c:554: warning: initialization makes integer from pointer without a cast
         >> drivers/net//xen-netback/interface.c:555: error: unknown field 'desc' specified in initializer
      
      Add double braces around the designated initializers to match their
      nested position in the struct. After this, compilation succeeds again.
      
      Fixes: 4ab6c99d ("sock: MSG_ZEROCOPY notification coalescing")
      Reported-by: Nkbuild bot <lpk@intel.com>
      Signed-off-by: NWillem de Bruijn <willemb@google.com>
      Acked-by: NWei Liu <wei.liu2@citrix.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cc8737a5
  8. 22 6月, 2017 1 次提交
  9. 13 3月, 2017 1 次提交
  10. 04 3月, 2017 2 次提交
    • P
      xen-netback: don't vfree() queues under spinlock · a254d8f9
      Paul Durrant 提交于
      This leads to a BUG of the following form:
      
      [  174.512861] switch: port 2(vif3.0) entered disabled state
      [  174.522735] BUG: sleeping function called from invalid context at
      /home/build/linux-linus/mm/vmalloc.c:1441
      [  174.523451] in_atomic(): 1, irqs_disabled(): 0, pid: 28, name: xenwatch
      [  174.524131] CPU: 1 PID: 28 Comm: xenwatch Tainted: G        W
      4.10.0upstream-11073-g4977ab6e-dirty #1
      [  174.524819] Hardware name: MSI MS-7680/H61M-P23 (MS-7680), BIOS V17.0
      03/14/2011
      [  174.525517] Call Trace:
      [  174.526217]  show_stack+0x23/0x60
      [  174.526899]  dump_stack+0x5b/0x88
      [  174.527562]  ___might_sleep+0xde/0x130
      [  174.528208]  __might_sleep+0x35/0xa0
      [  174.528840]  ? _raw_spin_unlock_irqrestore+0x13/0x20
      [  174.529463]  ? __wake_up+0x40/0x50
      [  174.530089]  remove_vm_area+0x20/0x90
      [  174.530724]  __vunmap+0x1d/0xc0
      [  174.531346]  ? delete_object_full+0x13/0x20
      [  174.531973]  vfree+0x40/0x80
      [  174.532594]  set_backend_state+0x18a/0xa90
      [  174.533221]  ? dwc_scan_descriptors+0x24d/0x430
      [  174.533850]  ? kfree+0x5b/0xc0
      [  174.534476]  ? xenbus_read+0x3d/0x50
      [  174.535101]  ? xenbus_read+0x3d/0x50
      [  174.535718]  ? xenbus_gather+0x31/0x90
      [  174.536332]  ? ___might_sleep+0xf6/0x130
      [  174.536945]  frontend_changed+0x6b/0xd0
      [  174.537565]  xenbus_otherend_changed+0x7d/0x80
      [  174.538185]  frontend_changed+0x12/0x20
      [  174.538803]  xenwatch_thread+0x74/0x110
      [  174.539417]  ? woken_wake_function+0x20/0x20
      [  174.540049]  kthread+0xe5/0x120
      [  174.540663]  ? xenbus_printf+0x50/0x50
      [  174.541278]  ? __kthread_init_worker+0x40/0x40
      [  174.541898]  ret_from_fork+0x21/0x2c
      [  174.548635] switch: port 2(vif3.0) entered disabled state
      
      This patch defers the vfree() until after the spinlock is released.
      Reported-by: NJuergen Gross <jgross@suse.com>
      Signed-off-by: NPaul Durrant <paul.durrant@citrix.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a254d8f9
    • P
      xen-netback: keep a local pointer for vif in backend_disconnect() · d67ce7da
      Paul Durrant 提交于
      This patch replaces use of 'be->vif' with 'vif' and hence generally
      makes the function look tidier. No semantic change.
      Signed-off-by: NPaul Durrant <paul.durrant@citrix.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d67ce7da
  11. 03 3月, 2017 1 次提交
  12. 02 3月, 2017 1 次提交
  13. 14 2月, 2017 1 次提交
  14. 10 2月, 2017 1 次提交
  15. 31 1月, 2017 1 次提交
  16. 30 1月, 2017 1 次提交
  17. 19 1月, 2017 2 次提交
  18. 10 11月, 2016 2 次提交
  19. 07 11月, 2016 1 次提交
  20. 21 10月, 2016 1 次提交
    • J
      net: use core MTU range checking in virt drivers · d0c2c997
      Jarod Wilson 提交于
      hyperv_net:
      - set min/max_mtu, per Haiyang, after rndis_filter_device_add
      
      virtio_net:
      - set min/max_mtu
      - remove virtnet_change_mtu
      
      vmxnet3:
      - set min/max_mtu
      
      xen-netback:
      - min_mtu = 0, max_mtu = 65517
      
      xen-netfront:
      - min_mtu = 0, max_mtu = 65535
      
      unisys/visor:
      - clean up defines a little to not clash with network core or add
        redundat definitions
      
      CC: netdev@vger.kernel.org
      CC: virtualization@lists.linux-foundation.org
      CC: "K. Y. Srinivasan" <kys@microsoft.com>
      CC: Haiyang Zhang <haiyangz@microsoft.com>
      CC: "Michael S. Tsirkin" <mst@redhat.com>
      CC: Shrikrishna Khare <skhare@vmware.com>
      CC: "VMware, Inc." <pv-drivers@vmware.com>
      CC: Wei Liu <wei.liu2@citrix.com>
      CC: Paul Durrant <paul.durrant@citrix.com>
      CC: David Kershner <david.kershner@unisys.com>
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Reviewed-by: NHaiyang Zhang <haiyangz@microsoft.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d0c2c997
  21. 13 10月, 2016 3 次提交
  22. 08 10月, 2016 1 次提交
    • P
      xen-netback: make sure that hashes are not send to unaware frontends · 912e27e8
      Paul Durrant 提交于
      In the case when a frontend only negotiates a single queue with xen-
      netback it is possible for a skbuff with a s/w hash to result in a
      hash extra_info segment being sent to the frontend even when no hash
      algorithm has been configured. (The ndo_select_queue() entry point makes
      sure the hash is not set if no algorithm is configured, but this entry
      point is not called when there is only a single queue). This can result
      in a frontend that is unable to handle extra_info segments being given
      such a segment, causing it to crash.
      
      This patch fixes the problem by clearing the hash in ndo_start_xmit()
      instead, which is clearly guaranteed to be called irrespective of the
      number of queues.
      Signed-off-by: NPaul Durrant <paul.durrant@citrix.com>
      Cc: Wei Liu <wei.liu2@citrix.com>
      Acked-by: NWei Liu <wei.liu2@citrix.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      912e27e8
  23. 07 10月, 2016 7 次提交
  24. 23 9月, 2016 1 次提交
  25. 22 9月, 2016 1 次提交
  26. 17 9月, 2016 1 次提交
    • F
      xen-netback: fix error handling on netback_probe() · cce94483
      Filipe Manco 提交于
      In case of error during netback_probe() (e.g. an entry missing on the
      xenstore) netback_remove() is called on the new device, which will set
      the device backend state to XenbusStateClosed by calling
      set_backend_state(). However, the backend state wasn't initialized by
      netback_probe() at this point, which will cause and invalid transaction
      and set_backend_state() to BUG().
      
      Initialize the backend state at the beginning of netback_probe() to
      XenbusStateInitialising, and create two new valid state transitions on
      set_backend_state(), from XenbusStateInitialising to XenbusStateClosed,
      and from XenbusStateInitialising to XenbusStateInitWait.
      Signed-off-by: NFilipe Manco <filipe.manco@neclab.eu>
      Acked-by: NWei Liu <wei.liu2@citrix.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cce94483
  27. 24 8月, 2016 1 次提交
  28. 19 8月, 2016 1 次提交
  29. 21 5月, 2016 1 次提交