[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220922175453.0b7057ac@kernel.org>
Date: Thu, 22 Sep 2022 17:54:53 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Simon Horman <simon.horman@...igine.com>
Cc: David Miller <davem@...emloft.net>,
Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org,
oss-drivers@...igine.com, Fei Qin <fei.qin@...igine.com>
Subject: Re: [PATCH net-next 3/3] nfp: add support restart of link
auto-negotiation
On Wed, 21 Sep 2022 14:12:35 +0200 Simon Horman wrote:
> + err = nfp_port_configure(netdev, false);
> + if (err) {
> + netdev_info(netdev, "Link down failed: %d\n", err);
> + return err;
> + }
> +
> + err = nfp_port_configure(netdev, true);
> + if (err) {
> + netdev_info(netdev, "Link up failed: %d\n", err);
> + return err;
> + }
> +
> + netdev_info(netdev, "Link reset succeeded\n");
> + return 0;
This will not do anything if the port is forced up by multi host
or NC-SI.
Powered by blists - more mailing lists