[dpdk-dev] [PATCH v10 13/20] unci: add ethtool support

Stephen Hemminger stephen at networkplumber.org
Wed Jul 5 21:07:44 CEST 2017


On Tue,  4 Jul 2017 17:13:30 +0100
Ferruh Yigit <ferruh.yigit at intel.com> wrote:

> +static void unci_get_drvinfo(struct net_device *dev,
> +		struct ethtool_drvinfo *info)
> +{
> +	int ret;
> +
> +	ret = unci_nl_exec(info->cmd, dev, NULL, 0,
> +			info, sizeof(struct ethtool_drvinfo));
> +	if (ret < 0)
> +		memset(info, 0, sizeof(struct ethtool_drvinfo));
> +}

drvinfo is already zero'd in net/core/ethtool.c


More information about the dev mailing list