summaryrefslogtreecommitdiff
path: root/net/dcb
diff options
context:
space:
mode:
authorIlan Tayari <ilant@mellanox.com>2017-04-16 11:00:07 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-17 15:31:29 -0400
commit7a7a9bd7aceea77dc2397bc58a1e88197ed759cb (patch)
tree92bc398c76521edd68455b435930cd80ea57546c /net/dcb
parentedb12f2d72d735acfb3aa53bbda64b1827042209 (diff)
gso: Validate assumption of frag_list segementation
Commit 07b26c9454a2 ("gso: Support partial splitting at the frag_list pointer") assumes that all SKBs in a frag_list (except maybe the last one) contain the same amount of GSO payload. This assumption is not always correct, resulting in the following warning message in the log: skb_segment: too many frags For example, mlx5 driver in Striding RQ mode creates some RX SKBs with one frag, and some with 2 frags. After GRO, the frag_list SKBs end up having different amounts of payload. If this frag_list SKB is then forwarded, the aforementioned assumption is violated. Validate the assumption, and fall back to software GSO if it not true. Fixes: 07b26c9454a2 ("gso: Support partial splitting at the frag_list pointer") Signed-off-by: Ilan Tayari <ilant@mellanox.com> Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb')
0 files changed, 0 insertions, 0 deletions