[dpdk-dev] [PATCH v5 05/10] qede: Add core driver

Stephen Hemminger stephen at networkplumber.org
Fri Apr 1 17:41:42 CEST 2016


On Thu, 31 Mar 2016 19:15:22 -0700
Rasesh Mody <rasesh.mody at qlogic.com> wrote:

> +struct qed_filter_ucast_params {
> +	enum qed_filter_xcast_params_type type;
> +	uint8_t vlan_valid;
> +	uint16_t vlan;
> +	uint8_t mac_valid;
> +	unsigned char mac[ETHER_ADDR_LEN];
> +} __attribute__ ((__packed__));

Why packed? Why not just rearrange elements to eliminate the padding holes?


More information about the dev mailing list