net/smc: provide smc mode in smc_diag.c
Rename field diag_fallback into diag_mode and set the smc mode of a connection explicitly. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9a2ad36238
commit
c601171d7a
2 changed files with 14 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ struct smc_diag_req {
|
|||
struct smc_diag_msg {
|
||||
__u8 diag_family;
|
||||
__u8 diag_state;
|
||||
__u8 diag_fallback;
|
||||
__u8 diag_mode;
|
||||
__u8 diag_shutdown;
|
||||
struct inet_diag_sockid id;
|
||||
|
||||
|
|
@ -28,6 +28,13 @@ struct smc_diag_msg {
|
|||
__u64 diag_inode;
|
||||
};
|
||||
|
||||
/* Mode of a connection */
|
||||
enum {
|
||||
SMC_DIAG_MODE_SMCR,
|
||||
SMC_DIAG_MODE_FALLBACK_TCP,
|
||||
SMC_DIAG_MODE_SMCD,
|
||||
};
|
||||
|
||||
/* Extensions */
|
||||
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue