sctp: count both sk and asoc sndbuf with skb truesize and sctp_chunk size
[linux-2.6-microblaze.git] / include / net / sctp / constants.h
index 86f034b..8dadc74 100644 (file)
@@ -148,11 +148,6 @@ SCTP_SUBTYPE_CONSTRUCTOR(PRIMITIVE,        enum sctp_event_primitive, primitive)
 #define sctp_chunk_is_data(a) (a->chunk_hdr->type == SCTP_CID_DATA || \
                               a->chunk_hdr->type == SCTP_CID_I_DATA)
 
-/* Calculate the actual data size in a data chunk */
-#define SCTP_DATA_SNDSIZE(c) ((int)((unsigned long)(c->chunk_end) - \
-                                   (unsigned long)(c->chunk_hdr) - \
-                                   sctp_datachk_len(&c->asoc->stream)))
-
 /* Internal error codes */
 enum sctp_ierror {
        SCTP_IERROR_NO_ERROR            = 0,