]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - net/smc/smc.h
net/smc: add SMC-D support in data transfer
authorHans Wippel <hwippel@linux.ibm.com>
Thu, 28 Jun 2018 17:05:10 +0000 (19:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 11:42:26 +0000 (20:42 +0900)
commitbe244f28d22f77d939ba2b973c102ad2b49d3496
treec819462ffbf01974dcc81d7069050cb3a384efd0
parentc758dfddc1b5b1c9b8c64e5e4bb9bf24b74f4a59
net/smc: add SMC-D support in data transfer

The data transfer and CDC message headers differ in SMC-R and SMC-D.
This patch adds support for the SMC-D data transfer to the existing SMC
code. It consists of the following:

* SMC-D CDC support
* SMC-D tx support
* SMC-D rx support

The CDC header is stored at the beginning of the receive buffer. Thus, a
rx_offset variable is added for the CDC header offset within the buffer
(0 for SMC-R).

Signed-off-by: Hans Wippel <hwippel@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Suggested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc.h
net/smc/smc_cdc.c
net/smc/smc_cdc.h
net/smc/smc_core.c
net/smc/smc_ism.c
net/smc/smc_rx.c
net/smc/smc_tx.c
net/smc/smc_tx.h