Xin Long
527beb8ef9
udp: support sctp over udp in skb_udp_tunnel_segment
...
For the gso of sctp over udp packets, sctp_gso_segment() will be called in
skb_udp_tunnel_segment(), we need to set transport_header to sctp header.
As all the current HWs can't handle both crc checksum and udp checksum at
the same time, the crc checksum has to be done in sctp_gso_segment() by
removing the NETIF_F_SCTP_CRC flag from the features.
Meanwhile, if the HW can't do udp checksum, csum and csum_start has to be
set correctly, and udp checksum will be done in __skb_udp_tunnel_segment()
by calling gso_make_checksum().
Thanks to Paolo, Marcelo and Guillaume for helping with this one.
v1->v2:
- no change.
v2->v3:
- remove the he NETIF_F_SCTP_CRC flag from the features.
- set csum and csum_start in sctp_gso_make_checksum().
Signed-off-by: Xin Long <lucien.xin@gmail.com >
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com >
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2020-10-30 15:23:46 -07:00
..
2020-08-10 12:06:44 -07:00
2020-10-14 01:25:14 +02:00
2020-08-24 16:16:06 -07:00
2020-03-12 15:55:00 -07:00
2020-03-12 15:55:00 -07:00
2020-09-25 13:58:01 -07:00
2020-09-08 20:03:36 -07:00
2019-11-01 14:57:52 -07:00
2020-05-31 17:48:46 -07:00
2020-06-20 21:33:57 -07:00
2020-02-19 13:52:32 +01:00
2020-09-14 14:54:56 -07:00
2020-03-29 22:30:57 -07:00
2019-10-04 11:10:56 -07:00
2020-07-28 17:42:31 -07:00
2020-06-18 20:21:51 -07:00
2020-08-26 15:58:48 -07:00
2020-10-02 19:11:11 -07:00
2020-03-08 21:25:37 -07:00
2020-08-03 15:29:44 -07:00
2020-10-16 16:47:09 -07:00
2020-05-20 20:31:27 -04:00
2020-09-30 14:21:30 -07:00
2020-09-22 16:45:34 -07:00
2019-08-08 15:55:10 -07:00
2020-08-31 13:08:29 -07:00
2019-05-21 10:50:45 +02:00
2019-11-07 16:15:56 -08:00
2019-09-20 18:23:33 -07:00
2019-08-08 15:55:10 -07:00
2020-10-13 18:35:29 -07:00
2020-03-30 13:45:04 -07:00
2020-08-25 06:28:02 -07:00
2020-10-15 18:42:13 -07:00
2020-08-25 06:23:59 -07:00
2020-10-13 17:33:49 -07:00
2020-10-06 06:23:21 -07:00
2020-10-06 06:23:21 -07:00
2020-07-09 12:55:37 +02:00
2020-03-02 13:11:46 -07:00
2020-06-30 12:29:39 -07:00
2019-10-04 11:10:56 -07:00
2020-09-10 12:25:51 -07:00
2020-08-18 16:02:16 -07:00
2020-07-10 13:54:00 -07:00
2019-05-21 10:50:45 +02:00
2019-01-28 11:32:58 +01:00
2019-05-21 10:50:45 +02:00
2020-10-19 20:07:15 -07:00
2020-08-31 12:33:34 -07:00
2020-09-24 20:15:45 -07:00
2019-05-30 11:26:32 -07:00
2020-03-12 22:34:48 -07:00
2020-10-15 18:42:13 -07:00
2020-10-15 12:43:21 -07:00
2020-10-05 18:40:01 -07:00
2020-09-10 13:15:40 -07:00
2020-01-21 10:45:49 +01:00
2020-03-16 18:26:54 -07:00
2020-08-21 15:16:11 -07:00
2019-05-21 10:50:45 +02:00
2020-09-10 20:53:01 -07:00
2020-06-25 16:08:47 -07:00
2019-05-30 11:26:32 -07:00
2018-10-10 22:26:00 -07:00
2020-02-27 18:50:19 -08:00
2020-08-24 14:35:00 -07:00
2020-07-06 13:23:03 -07:00
2020-07-06 13:23:03 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2020-10-23 19:11:20 -07:00
2020-10-08 15:44:50 -07:00
2020-10-30 12:10:57 -07:00
2020-10-02 19:11:11 -07:00
2020-10-02 11:34:48 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2020-09-30 14:21:30 -07:00
2019-05-21 10:50:45 +02:00
2020-09-25 17:17:14 -07:00
2020-08-24 17:31:20 -07:00
2020-09-30 14:21:30 -07:00
2020-03-09 22:34:58 +01:00
2020-10-13 17:11:52 -07:00
2017-11-02 11:10:55 +01:00
2020-07-06 13:23:03 -07:00
2019-05-21 10:50:45 +02:00
2020-03-16 18:26:55 -07:00
2020-10-23 19:11:20 -07:00
2020-07-09 12:51:36 +02:00
2020-08-21 15:16:11 -07:00
2020-03-12 22:34:48 -07:00
2020-07-24 15:41:54 -07:00
2020-10-30 15:23:46 -07:00
2020-07-10 13:54:00 -07:00
2020-09-28 12:50:12 -07:00
2020-07-10 13:54:00 -07:00
2020-10-30 15:23:33 -07:00
2020-07-19 18:16:41 -07:00
2020-05-06 09:40:08 +02:00
2020-05-11 15:12:27 +02:00
2019-12-24 22:28:54 -08:00
2019-12-09 09:59:07 +01:00
2020-05-06 09:40:08 +02:00
2019-06-06 08:34:50 +02:00