[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130417154552.GJ5149@hmsreliant.think-freely.org>
Date: Wed, 17 Apr 2013 11:45:52 -0400
From: Neil Horman <nhorman@...driver.com>
To: Daniel Borkmann <dborkman@...hat.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
linux-sctp@...r.kernel.org
Subject: Re: [PATCH net-next 9/9] net: sctp: sctp_ulpq: do not use char as a
struct member
On Tue, Apr 16, 2013 at 11:07:18PM +0200, Daniel Borkmann wrote:
> Replace char with a more appropriate __u8 bitfield for pd_mode.
>
> Signed-off-by: Daniel Borkmann <dborkman@...hat.com>
> ---
> include/net/sctp/ulpqueue.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/net/sctp/ulpqueue.h b/include/net/sctp/ulpqueue.h
> index 00e50ba..a2bebd4 100644
> --- a/include/net/sctp/ulpqueue.h
> +++ b/include/net/sctp/ulpqueue.h
> @@ -49,10 +49,10 @@
>
> /* A structure to carry information to the ULP (e.g. Sockets API) */
> struct sctp_ulpq {
> - char pd_mode;
> struct sctp_association *asoc;
> struct sk_buff_head reasm;
> struct sk_buff_head lobby;
> + __u8 pd_mode:1;
> };
>
Can you move the char (or __u8 if you prefer) to right after the reasm meber? I
think theres a hole there that you can fill in
Neil
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists