1. 22 11月, 2014 2 次提交
  2. 17 11月, 2014 1 次提交
  3. 14 11月, 2014 1 次提交
  4. 10 11月, 2014 6 次提交
  5. 06 11月, 2014 12 次提交
  6. 29 10月, 2014 3 次提交
  7. 21 10月, 2014 1 次提交
    • F
      net: make skb_gso_segment error handling more robust · 330966e5
      Florian Westphal 提交于
      skb_gso_segment has three possible return values:
      1. a pointer to the first segmented skb
      2. an errno value (IS_ERR())
      3. NULL.  This can happen when GSO is used for header verification.
      
      However, several callers currently test IS_ERR instead of IS_ERR_OR_NULL
      and would oops when NULL is returned.
      
      Note that these call sites should never actually see such a NULL return
      value; all callers mask out the GSO bits in the feature argument.
      
      However, there have been issues with some protocol handlers erronously not
      respecting the specified feature mask in some cases.
      
      It is preferable to get 'have to turn off hw offloading, else slow' reports
      rather than 'kernel crashes'.
      Signed-off-by: NFlorian Westphal <fw@strlen.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      330966e5
  8. 18 10月, 2014 3 次提交
  9. 16 10月, 2014 2 次提交
  10. 07 10月, 2014 1 次提交
    • A
      openvswitch: fix a sparse warning · 0a5d1c55
      Andy Zhou 提交于
      Fix a sparse warning introduced by commit:
      f5796684 (openvswitch: Add support for
      Geneve tunneling.) caught by kbuild test robot:
      
      reproduce:
        # apt-get install sparse
        #   git checkout f5796684
        #     make ARCH=x86_64 allmodconfig
        #       make C=1 CF=-D__CHECK_ENDIAN__
        #
        #
        #       sparse warnings: (new ones prefixed by >>)
        #
        #       >> net/openvswitch/vport-geneve.c:109:15: sparse: incorrect type in assignment (different base types)
        #          net/openvswitch/vport-geneve.c:109:15:    expected restricted __be16 [usertype] sport
        #             net/openvswitch/vport-geneve.c:109:15:    got int
        #             >> net/openvswitch/vport-geneve.c:110:56: sparse: incorrect type in argument 3 (different base types)
        #                net/openvswitch/vport-geneve.c:110:56:    expected unsigned short [unsigned] [usertype] value
        #                   net/openvswitch/vport-geneve.c:110:56:    got restricted __be16 [usertype] sport
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NAndy Zhou <azhou@nicira.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0a5d1c55
  11. 06 10月, 2014 5 次提交
  12. 27 9月, 2014 1 次提交
  13. 20 9月, 2014 1 次提交
  14. 16 9月, 2014 1 次提交
    • A
      openvswitch: Add recirc and hash action. · 971427f3
      Andy Zhou 提交于
      Recirc action allows a packet to reenter openvswitch processing.
      currently openvswitch lookup flow for packet received and execute
      set of actions on that packet, with help of recirc action we can
      process/modify the packet and recirculate it back in openvswitch
      for another pass.
      
      OVS hash action calculates 5-tupple hash and set hash in flow-key
      hash. This can be used along with recirculation for distributing
      packets among different ports for bond devices.
      For example:
      OVS bonding can use following actions:
      Match on: bond flow; Action: hash, recirc(id)
      Match on: recirc-id == id and hash lower bits == a;
                Action: output port_bond_a
      Signed-off-by: NAndy Zhou <azhou@nicira.com>
      Acked-by: NJesse Gross <jesse@nicira.com>
      Signed-off-by: NPravin B Shelar <pshelar@nicira.com>
      971427f3