Prerequisites
Use Linux kernel 4.18 or later for SMC-R. At a minimum, enable kernel configs CONFIG_SMC and CONFIG_SMC_DIAG.Furthermore, obtain and install smc-tools.
Enabling Applications for SMC
To use SMC, in your application switch from usage of AF_INET sockets to AF_SMC and recompile.E.g.
int s, ipv6 = 0;
s = socket(AF_SMC, SOCK_STREAM, ipv6);
For binary applications, use the preload library libsmc-preload.so from the smc-tools package.
To do so, either run your application using smc_run from the same package, or set environment variable LD_PRELOAD=libsmc-preload.so respectively.
For further information see the smc_tools package.
No comments:
Post a Comment