1. 07 1月, 2014 2 次提交
  2. 06 1月, 2014 1 次提交
  3. 05 1月, 2014 6 次提交
  4. 04 1月, 2014 4 次提交
  5. 03 1月, 2014 1 次提交
    • W
      ipv4: fix tunneled VM traffic over hw VXLAN/GRE GSO NIC · 7a7ffbab
      Wei-Chun Chao 提交于
      VM to VM GSO traffic is broken if it goes through VXLAN or GRE
      tunnel and the physical NIC on the host supports hardware VXLAN/GRE
      GSO offload (e.g. bnx2x and next-gen mlx4).
      
      Two issues -
      (VXLAN) VM traffic has SKB_GSO_DODGY and SKB_GSO_UDP_TUNNEL with
      SKB_GSO_TCP/UDP set depending on the inner protocol. GSO header
      integrity check fails in udp4_ufo_fragment if inner protocol is
      TCP. Also gso_segs is calculated incorrectly using skb->len that
      includes tunnel header. Fix: robust check should only be applied
      to the inner packet.
      
      (VXLAN & GRE) Once GSO header integrity check passes, NULL segs
      is returned and the original skb is sent to hardware. However the
      tunnel header is already pulled. Fix: tunnel header needs to be
      restored so that hardware can perform GSO properly on the original
      packet.
      Signed-off-by: NWei-Chun Chao <weichunc@plumgrid.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7a7ffbab
  6. 02 1月, 2014 3 次提交
  7. 01 1月, 2014 3 次提交
    • D
      vlan: Fix header ops passthru when doing TX VLAN offload. · 2205369a
      David S. Miller 提交于
      When the vlan code detects that the real device can do TX VLAN offloads
      in hardware, it tries to arrange for the real device's header_ops to
      be invoked directly.
      
      But it does so illegally, by simply hooking the real device's
      header_ops up to the VLAN device.
      
      This doesn't work because we will end up invoking a set of header_ops
      routines which expect a device type which matches the real device, but
      will see a VLAN device instead.
      
      Fix this by providing a pass-thru set of header_ops which will arrange
      to pass the proper real device instead.
      
      To facilitate this add a dev_rebuild_header().  There are
      implementations which provide a ->cache and ->create but not a
      ->rebuild (f.e. PLIP).  So we need a helper function just like
      dev_hard_header() to avoid crashes.
      
      Use this helper in the one existing place where the
      header_ops->rebuild was being invoked, the neighbour code.
      
      With lots of help from Florian Westphal.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2205369a
    • O
      net/mlx4_core: Add basic support for TCP/IP offloads under tunneling · 7ffdf726
      Or Gerlitz 提交于
      Add the low-level device commands and definitions used for TCP/IP HW offloads
      of tunneled/vxlan traffic which are supported by the ConnectX3-pro NIC.
      
      This is done through the following elements:
      
       - read tunneling device caps in QUERY_DEV_CAP
       - add helper function to do SET_PORT for tunneling
       - add DMFS VXLAN steering rule definitions
       - add CQE and WQE checksum offload field definitions
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7ffdf726
    • N
      printk: Add a DEPRECATED macro · 0a9a8bfd
      Neil Horman 提交于
      sctp has several points in its setsockopt path in which it issues deprecation
      warnings.  It seems like it might be handy to macrotize such a warning so other
      subsystems can use it easily
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: linux-kernel@vger.kernel.org
      CC: netdev@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0a9a8bfd
  8. 30 12月, 2013 1 次提交
  9. 28 12月, 2013 2 次提交
  10. 27 12月, 2013 1 次提交
  11. 25 12月, 2013 1 次提交
  12. 22 12月, 2013 1 次提交
    • B
      aio/migratepages: make aio migrate pages sane · 8e321fef
      Benjamin LaHaise 提交于
      The arbitrary restriction on page counts offered by the core
      migrate_page_move_mapping() code results in rather suspicious looking
      fiddling with page reference counts in the aio_migratepage() operation.
      To fix this, make migrate_page_move_mapping() take an extra_count parameter
      that allows aio to tell the code about its own reference count on the page
      being migrated.
      
      While cleaning up aio_migratepage(), make it validate that the old page
      being passed in is actually what aio_migratepage() expects to prevent
      misbehaviour in the case of races.
      Signed-off-by: NBenjamin LaHaise <bcrl@kvack.org>
      8e321fef
  13. 21 12月, 2013 2 次提交
  14. 20 12月, 2013 3 次提交
  15. 19 12月, 2013 6 次提交
  16. 18 12月, 2013 3 次提交