1. 12 7月, 2018 2 次提交
    • B
      RDMA/ocrdma: Make ocrdma_destroy_qp() easier to analyze · beae9eb5
      Bart Van Assche 提交于
      This patch does not change any functionality but avoids that sparse
      reports the following:
      
      drivers/infiniband/hw/ocrdma/ocrdma_verbs.c:1818:31: warning: context imbalance in 'ocrdma_destroy_qp' - different lock contexts for basic block
      
      Compile-tested only.
      Signed-off-by: NBart Van Assche <bart.vanassche@wdc.com>
      Cc: Selvin Xavier <selvin.xavier@broadcom.com>
      Cc: Devesh Sharma <devesh.sharma@broadcom.com>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      beae9eb5
    • A
      infiniband: i40iw, nes: don't use wall time for TCP sequence numbers · 07f3355d
      Arnd Bergmann 提交于
      The nes infiniband driver uses current_kernel_time() to get a nanosecond
      granunarity timestamp to initialize its tcp sequence counters. This is
      one of only a few remaining users of that deprecated function, so we
      should try to get rid of it.
      
      Aside from using a deprecated API, there are several problems I see here:
      
      - Using a CLOCK_REALTIME based time source makes it predictable in
        case the time base is synchronized.
      - Using a coarse timestamp means it only gets updated once per jiffie,
        making it even more predictable in order to avoid having to access
        the hardware clock source
      - The upper 2 bits are always zero because the nanoseconds are at most
        999999999.
      
      For the Linux TCP implementation, we use secure_tcp_seq(), which appears
      to be appropriate here as well, and solves all the above problems.
      
      i40iw uses a variant of the same code, so I do that same thing there
      for ipv4. Unlike nes, i40e also supports ipv6, which needs to call
      secure_tcpv6_seq instead.
      Acked-by: NShiraz Saleem <shiraz.saleem@intel.com>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
      07f3355d
  2. 11 7月, 2018 8 次提交
  3. 10 7月, 2018 26 次提交
  4. 05 7月, 2018 4 次提交