summaryrefslogtreecommitdiff
path: root/net/lapb
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-01-24 06:05:16 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-17 04:41:56 (GMT)
commitbf812fe92683cd52581824dc2c6767cbf04a72fb (patch)
tree294a300eca75f634d405f2142d16bc6cb6236656 /net/lapb
parent12a583ddf02a976080f36f75139a9167a9975e68 (diff)
downloadlinux-bf812fe92683cd52581824dc2c6767cbf04a72fb.tar.xz
sctp: sctp gso should set feature with NETIF_F_SG when calling skb_segment
[ Upstream commit 5207f3996338e1db71363fe381c81aaf1e54e4e3 ] Now sctp gso puts segments into skb's frag_list, then processes these segments in skb_segment. But skb_segment handles them only when gs is enabled, as it's in the same branch with skb's frags. Although almost all the NICs support sg other than some old ones, but since commit 1e16aa3ddf86 ("net: gso: use feature flag argument in all protocol gso handlers"), features &= skb->dev->hw_enc_features, and xfrm_output_gso call skb_segment with features = 0, which means sctp gso would call skb_segment with sg = 0, and skb_segment would not work as expected. This patch is to fix it by setting features param with NETIF_F_SG when calling skb_segment so that it can go the right branch to process the skb's frag_list. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions