diff options
author | Daniel Axtens <dja@axtens.net> | 2018-03-09 14:06:09 +1100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-09 11:41:47 -0500 |
commit | 1dd27cde30e85774c77349c804229431616d594a (patch) | |
tree | dac4ba324dcb8010bacef9054046748ddb0df4db /net/sctp/offload.c | |
parent | ca0edb131bdf1e6beaeb2b8289fd6b374b74147d (diff) | |
download | linux-1dd27cde30e85774c77349c804229431616d594a.tar.gz linux-1dd27cde30e85774c77349c804229431616d594a.tar.bz2 linux-1dd27cde30e85774c77349c804229431616d594a.zip |
net: use skb_is_gso_sctp() instead of open-coding
As well as the basic conversion, I noticed that a lot of the
SCTP code checks gso_type without first checking skb_is_gso()
so I have added that where appropriate.
Also, document the helper.
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/offload.c')
-rw-r--r-- | net/sctp/offload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/offload.c b/net/sctp/offload.c index 35bc7106d182..123e9f2dc226 100644 --- a/net/sctp/offload.c +++ b/net/sctp/offload.c @@ -45,7 +45,7 @@ static struct sk_buff *sctp_gso_segment(struct sk_buff *skb, struct sk_buff *segs = ERR_PTR(-EINVAL); struct sctphdr *sh; - if (!(skb_shinfo(skb)->gso_type & SKB_GSO_SCTP)) + if (!skb_is_gso_sctp(skb)) goto out; sh = sctp_hdr(skb); |