[dpdk-dev] [PATCH v9 10/20] unci: init netlink

Stephen Hemminger stephen at networkplumber.org
Fri Jun 30 19:28:18 CEST 2017


On Fri, 30 Jun 2017 17:51:30 +0100
Ferruh Yigit <ferruh.yigit at intel.com> wrote:

>  #define UNCI_DEVICE "unci"
>  
> +#define UNCI_NL_GRP 31
> +
> +#define UNCI_NL_MSG_LEN 500
> +struct unci_nl_msg {
> +	uint32_t cmd_id;
> +	uint8_t port_id;
> +	uint32_t flag;
> +	uint8_t input_buffer[UNCI_NL_MSG_LEN];
> +	uint8_t output_buffer[UNCI_NL_MSG_LEN];
> +	size_t input_buffer_len;
> +	size_t output_buffer_len;
> +	int err;
> +};
> +
>  enum {
>  	IFLA_UNCI_UNSPEC,

Kernel code should not use uint32_t or uint8_t.
Stick to __u32 and __u8


More information about the dev mailing list