1. 30 4月, 2020 5 次提交
  2. 27 2月, 2020 1 次提交
    • U
      net/smc: fix cleanup for linkgroup setup failures · 51e3dfa8
      Ursula Braun 提交于
      If an SMC connection to a certain peer is setup the first time,
      a new linkgroup is created. In case of setup failures, such a
      linkgroup is unusable and should disappear. As a first step the
      linkgroup is removed from the linkgroup list in smc_lgr_forget().
      
      There are 2 problems:
      smc_listen_decline() might be called before linkgroup creation
      resulting in a crash due to calling smc_lgr_forget() with
      parameter NULL.
      If a setup failure occurs after linkgroup creation, the connection
      is never unregistered from the linkgroup, preventing linkgroup
      freeing.
      
      This patch introduces an enhanced smc_lgr_cleanup_early() function
      which
      * contains a linkgroup check for early smc_listen_decline()
        invocations
      * invokes smc_conn_free() to guarantee unregistering of the
        connection.
      * schedules fast linkgroup removal of the unusable linkgroup
      
      And the unused function smcd_conn_free() is removed from smc_core.h.
      
      Fixes: 3b2dec26 ("net/smc: restructure client and server code in af_smc")
      Fixes: 2a0674ff ("net/smc: improve abnormal termination of link groups")
      Signed-off-by: NUrsula Braun <ubraun@linux.ibm.com>
      Signed-off-by: NKarsten Graul <kgraul@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      51e3dfa8
  3. 18 2月, 2020 2 次提交
  4. 17 11月, 2019 1 次提交
  5. 16 11月, 2019 3 次提交
  6. 23 10月, 2019 2 次提交
  7. 13 4月, 2019 2 次提交
  8. 05 2月, 2019 1 次提交
  9. 24 11月, 2018 3 次提交
  10. 22 11月, 2018 2 次提交
  11. 26 7月, 2018 2 次提交
  12. 24 7月, 2018 2 次提交
  13. 30 6月, 2018 2 次提交
    • H
      net/smc: add SMC-D support in af_smc · 41349844
      Hans Wippel 提交于
      This patch ties together the previous SMC-D patches. It adds support for
      SMC-D to the listen and connect functions and, thus, enables SMC-D
      support in the SMC code. If a connection supports both SMC-R and SMC-D,
      SMC-D is preferred.
      Signed-off-by: NHans Wippel <hwippel@linux.ibm.com>
      Signed-off-by: NUrsula Braun <ubraun@linux.ibm.com>
      Suggested-by: NThomas Richter <tmricht@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      41349844
    • H
      net/smc: add base infrastructure for SMC-D and ISM · c6ba7c9b
      Hans Wippel 提交于
      SMC supports two variants: SMC-R and SMC-D. For data transport, SMC-R
      uses RDMA devices, SMC-D uses so-called Internal Shared Memory (ISM)
      devices. An ISM device only allows shared memory communication between
      SMC instances on the same machine. For example, this allows virtual
      machines on the same host to communicate via SMC without RDMA devices.
      
      This patch adds the base infrastructure for SMC-D and ISM devices to
      the existing SMC code. It contains the following:
      
      * ISM driver interface:
        This interface allows an ISM driver to register ISM devices in SMC. In
        the process, the driver provides a set of device ops for each device.
        SMC uses these ops to execute SMC specific operations on or transfer
        data over the device.
      
      * Core SMC-D link group, connection, and buffer support:
        Link groups, SMC connections and SMC buffers (in smc_core) are
        extended to support SMC-D.
      
      * SMC type checks:
        Some type checks are added to prevent using SMC-R specific code for
        SMC-D and vice versa.
      
      To actually use SMC-D, additional changes to pnetid, CLC, CDC, etc. are
      required. These are added in follow-up patches.
      Signed-off-by: NHans Wippel <hwippel@linux.ibm.com>
      Signed-off-by: NUrsula Braun <ubraun@linux.ibm.com>
      Suggested-by: NThomas Richter <tmricht@linux.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c6ba7c9b
  14. 19 5月, 2018 3 次提交
  15. 16 5月, 2018 3 次提交
  16. 04 5月, 2018 2 次提交
  17. 03 5月, 2018 1 次提交
  18. 02 3月, 2018 3 次提交