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>
Showing
- net/smc/smc.h 5 additions, 0 deletionsnet/smc/smc.h
- net/smc/smc_cdc.c 84 additions, 2 deletionsnet/smc/smc_cdc.c
- net/smc/smc_cdc.h 40 additions, 3 deletionsnet/smc/smc_cdc.h
- net/smc/smc_core.c 18 additions, 7 deletionsnet/smc/smc_core.c
- net/smc/smc_ism.c 8 additions, 0 deletionsnet/smc/smc_ism.c
- net/smc/smc_rx.c 1 addition, 1 deletionnet/smc/smc_rx.c
- net/smc/smc_tx.c 150 additions, 43 deletionsnet/smc/smc_tx.c
- net/smc/smc_tx.h 2 additions, 0 deletionsnet/smc/smc_tx.h
Loading
Please register or sign in to comment