Re: [NETFILTER 42/69]: nf_conntrack: optimize hash_conntrack()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Miller wrote:
> Now these elements cannot be assumed to have any particular
> alignment, so gcc will emit byte-at-a-time accesses to these
> elements.

Ah, so the problem is the __attribute__(packed) removes align
restrictions for the whole structure, in addition to removing
padding.

Is there any way to tell gcc to pack but still align the whole
thing?

eg what does it do for this:
	struct t {
		struct s {
			u16 a;
			u16 b;
		} __attribute__(packed);
	};

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux