From: Daniel Borkmann Date: Tue, 16 Apr 2013 21:07:13 +0000 Subject: [PATCH net-next 4/9] net: sctp: sctp_outq: consolidate chars into bitfield Message-Id: <1366146438-8815-5-git-send-email-dborkman@redhat.com> List-Id: References: <1366146438-8815-1-git-send-email-dborkman@redhat.com> In-Reply-To: <1366146438-8815-1-git-send-email-dborkman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: davem@davemloft.net Cc: netdev@vger.kernel.org, linux-sctp@vger.kernel.org sctp_outq structure members fast_rtx, cork and empty are all of type char. Consolidate them into a single __u8 bitfield since they either carry 0 or 1. Have the rest 5 bits for future flags. Signed-off-by: Daniel Borkmann --- include/net/sctp/structs.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 73fd5de..3de5985 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h @@ -1051,14 +1051,9 @@ struct sctp_outq { /* How many unackd bytes do we have in-flight? */ __u32 outstanding_bytes; - /* Are we doing fast-rtx on this queue */ - char fast_rtx; - - /* Corked? */ - char cork; - - /* Is this structure empty? */ - char empty; + __u8 fast_rtx:1, /* Are we doing fast-rtx on this queue */ + cork:1, /* Corked? */ + empty:1; /* Is this structure empty? */ }; void sctp_outq_init(struct sctp_association *, struct sctp_outq *); -- 1.7.11.7