[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080312115215.5fb1a370@extreme>
Date: Wed, 12 Mar 2008 11:52:15 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Krzysztof Halasa <khc@...waw.pl>
Cc: Jeff Garzik <jeff@...zik.org>,
Andrew Morton <akpm@...ux-foundation.org>,
<linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>
Subject: Re: [PATCH] Re: WAN: new PPP code for generic HDLC
> +struct hdlc_header {
> + u8 address;
> + u8 control;
> + __be16 protocol;
> +} __attribute__ ((packed));
> +
> +struct cp_header {
> + u8 code;
> + u8 id;
> + __be16 len;
> +} __attribute__ ((packed));
> +
If I remember correctly, the packed is unnecessary for structures like this
and causes GCC to generate worse code.
--
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