History

net/smc: provide fallback reason code

Remember the fallback reason code and the peer diagnosis code for smc sockets, and provide them in smc_diag.c to the netlink interface. And add more detailed reason codes.

Karsten Graul committed 8 years ago

Commit 603cc141 parent 7005ada6 files · +61 −29Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/smc_diag.h+6−0
@@ -43,6 +43,7 @@ enum { · 42 unmodified lines
4343 SMC_DIAG_LGRINFO,
4444 SMC_DIAG_SHUTDOWN,
4545 SMC_DIAG_DMBINFO,
46+ SMC_DIAG_FALLBACK,
4647 __SMC_DIAG_MAX,
4748 };
4849
@@ -92,6 +93,11 @@ struct smc_diag_lgrinfo { · 43 unmodified lines
9293 __u8 role;
9394 };
9495
96+struct smc_diag_fallback {
97+ __u32 reason;
98+ __u32 peer_diagnosis;
99+};
100+
95101 struct smcd_diag_dmbinfo { /* SMC-D Socket internals */
96102 __u32 linkid; /* Link identifier */
97103 __u64 peer_gid; /* Peer GID */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t