[dpdk-dev] [PATCH v8 2/4] unci: add kernel control path kernel module

Stephen Hemminger stephen at networkplumber.org
Wed Jun 21 17:23:23 CEST 2017


On Wed, 21 Jun 2017 12:06:49 +0100
Ferruh Yigit <ferruh.yigit at intel.com> wrote:

> +static struct ethtool_input_buffer {
> +	int magic;
> +	void *buffer;
> +	size_t length;
> +	struct completion *msg_received;
> +	int *err;
> +	u32 in_use;
> +} ethtool_input_buffer

Naming in kernel is important. This isn't kernel ethtool, so  it shouldn't be named that.

Having a single instance per system for a control interface means it won't work
if multiple apps have control channel open or in containers.

You should also do policy validation on the netlink message.


More information about the dev mailing list