[dpdk-dev] [PATCH v2 09/13] mlx5: add link update device operation
Stephen Hemminger
stephen at networkplumber.org
Mon Nov 2 18:52:17 CET 2015
On Fri, 30 Oct 2015 19:52:38 +0100
Adrien Mazarguil <adrien.mazarguil at 6wind.com> wrote:
> +static int
> +mlx5_link_update_unlocked(struct rte_eth_dev *dev, int wait_to_complete)
> +{
> + struct priv *priv = dev->data->dev_private;
> + struct ethtool_cmd edata = {
> + .cmd = ETHTOOL_GSET
> + };
> + struct ifreq ifr;
> + struct rte_eth_link dev_link;
> + int link_speed = 0;
> +
> + (void)wait_to_complete;
DPDK style is to use the __rte_unused attribute rather than dummy statements
to avoid unused warnings.
More information about the dev
mailing list