]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: remove the NETIF_F_SG flag before calling skb_segment
authorXin Long <lucien.xin@gmail.com>
Fri, 15 Jan 2021 09:36:39 +0000 (17:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 17 Jan 2021 03:05:59 +0000 (19:05 -0800)
commit1247dcdc08a3ee8c51e3126cbb504e2b47f8b95e
tree35f127d43a7ff29fe266342bb55d0b9d396dad38
parentdc259dcea8f2c62d7656f300ad641c105269f216
sctp: remove the NETIF_F_SG flag before calling skb_segment

It makes more sense to clear NETIF_F_SG instead of set it when
calling skb_segment() in sctp_gso_segment(), since SCTP GSO is
using head_skb's fraglist, of which all frags are linear skbs.

This will make SCTP GSO code more understandable.

Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sctp/offload.c