1. 02 9月, 2017 14 次提交
  2. 01 9月, 2017 23 次提交
  3. 31 8月, 2017 3 次提交
    • S
      xfrm: Fix return value check of copy_sec_ctx. · 8598112d
      Steffen Klassert 提交于
      A recent commit added an output_mark. When copying
      this output_mark, the return value of copy_sec_ctx
      is overwitten without a check. Fix this by copying
      the output_mark before the security context.
      
      Fixes: 077fbac4 ("net: xfrm: support setting an output mark.")
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      8598112d
    • Y
      xfrm: Add support for network devices capable of removing the ESP trailer · 47ebcc0b
      Yossi Kuperman 提交于
      In conjunction with crypto offload [1], removing the ESP trailer by
      hardware can potentially improve the performance by avoiding (1) a
      cache miss incurred by reading the nexthdr field and (2) the necessity
      to calculate the csum value of the trailer in order to keep skb->csum
      valid.
      
      This patch introduces the changes to the xfrm stack and merely serves
      as an infrastructure. Subsequent patch to mlx5 driver will put this to
      a good use.
      
      [1] https://www.mail-archive.com/netdev@vger.kernel.org/msg175733.htmlSigned-off-by: NYossi Kuperman <yossiku@mellanox.com>
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      47ebcc0b
    • D
      Merge tag 'mlx5-GRE-Offload' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · ea3100ab
      David S. Miller 提交于
      Saeed Mahameed says:
      
      ====================
      mlx5-updates-2017-08-31 (GRE Offloads support)
      
      This series provides the support for MPLS RSS and GRE TX offloads and
      RSS support.
      
      The first patch from Gal and Ariel provides the mlx5 driver support for
      ConnectX capability to perform IP version identification and matching in
      order to distinguish between IPv4 and IPv6 without the need to specify the
      encapsulation type, thus perform RSS in MPLS automatically without
      specifying MPLS ethertyoe. This patch will also serve for inner GRE IPv4/6
      classification for inner GRE RSS.
      
      2nd patch from Gal, Adds the TX offloads support for GRE tunneled packets,
      by reporting the needed netdev features.
      
      3rd patch from Gal, Adds GRE inner RSS support by creating the needed device
      resources (Steering Tables/rules and traffic classifiers) to Match GRE traffic
      and perform RSS hashing on the inner headers.
      
      Improvement:
      Testing 8 TCP streams bandwidth over GRE:
          System: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
          NIC: Mellanox Technologies MT28800 Family [ConnectX-5 Ex]
          Before: 21.3 Gbps (Single RQ)
          Now   : 90.5 Gbps (RSS spread on 8 RQs)
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ea3100ab