X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fnet%2Fsctp%2Fsctp.h;h=ba41e01ebc548c4332a36f2bbc2944df3f6d235f;hb=4b31a34e0e0f8835fec2cca1f0d52275ac22b1ed;hp=a3353f45ef94580b575d0455169863ec853f13ee;hpb=c29b8f3149f2916e98fc3b8d6c1df2137d003979;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index a3353f4..ba41e01 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h @@ -433,6 +433,11 @@ static inline void sctp_assoc_pending_pmtu(struct sock *sk, struct sctp_associat asoc->pmtu_pending = 0; } +static inline bool sctp_chunk_pending(const struct sctp_chunk *chunk) +{ + return !list_empty(&chunk->list); +} + /* Walk through a list of TLV parameters. Don't trust the * individual parameter lengths and instead depend on * the chunk length to indicate when to stop. Make sure