Files
linux/include/uapi/linux
D. Wythe d25a92ccae net/smc: Introduce IPPROTO_SMC
This patch allows to create smc socket via AF_INET,
similar to the following code,

/* create v4 smc sock */
v4 = socket(AF_INET, SOCK_STREAM, IPPROTO_SMC);

/* create v6 smc sock */
v6 = socket(AF_INET6, SOCK_STREAM, IPPROTO_SMC);

There are several reasons why we believe it is appropriate here:

1. For smc sockets, it actually use IPv4 (AF-INET) or IPv6 (AF-INET6)
address. There is no AF_SMC address at all.

2. Create smc socket in the AF_INET(6) path, which allows us to reuse
the infrastructure of AF_INET(6) path, such as common ebpf hooks.
Otherwise, smc have to implement it again in AF_SMC path.

Signed-off-by: D. Wythe <alibuda@linux.alibaba.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Tested-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-06-17 13:14:09 +01:00
..
2024-04-15 13:42:38 +02:00
2023-05-30 15:20:08 +01:00
2022-08-11 10:31:19 -07:00
2023-01-20 09:33:22 +00:00
2024-04-08 14:10:45 +01:00
2023-03-06 15:49:07 -06:00
2024-03-07 17:14:53 +00:00
2024-05-10 08:26:31 +02:00
2023-03-16 21:20:32 -07:00
2023-09-21 19:22:05 +02:00
2024-05-07 01:35:57 +02:00
2024-05-07 01:35:57 +02:00
2024-04-01 10:49:28 +01:00
2024-06-17 13:14:09 +01:00
2024-06-01 07:28:21 +02:00
2022-09-20 09:13:38 +02:00
2024-02-15 23:43:47 -05:00
2023-12-15 17:01:30 +01:00
2023-06-09 16:25:16 -07:00
2023-12-14 11:49:17 +01:00
2023-04-27 19:15:11 -06:00
2024-05-30 12:15:56 +02:00
2022-09-07 16:46:03 +02:00
2023-11-28 19:05:16 +00:00
2024-05-16 18:14:09 -05:00
2023-12-20 19:26:31 -05:00
2022-11-17 11:04:23 -08:00
2022-09-27 17:29:09 -07:00
2023-06-05 09:36:35 +02:00
2024-02-28 18:47:08 -07:00
2023-12-29 11:58:24 -08:00
2023-03-23 17:25:46 +01:00
2024-04-22 17:07:13 -04:00