[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220615164740.5e1f8915@kernel.org>
Date: Wed, 15 Jun 2022 16:47:40 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Maciej Fijalkowski <maciej.fijalkowski@...el.com>
Cc: bpf@...r.kernel.org, ast@...nel.org, daniel@...earbox.net,
netdev@...r.kernel.org, magnus.karlsson@...el.com,
bjorn@...nel.org, Alexandr Lobakin <alexandr.lobakin@...el.com>
Subject: Re: [PATCH v2 bpf-next 01/10] ice: allow toggling loopback mode via
ndo_set_features callback
On Tue, 14 Jun 2022 19:47:40 +0200 Maciej Fijalkowski wrote:
> + if (if_running)
> + ice_stop(netdev);
> + if (ice_aq_set_mac_loopback(&pf->hw, ena, NULL))
> + dev_err(ice_pf_to_dev(pf), "Failed to toggle loopback state\n");
> + if (if_running)
> + ice_open(netdev);
Loopback or not, I don't think we should be accepting the shutdown ->
set config -> pray approach in modern drivers. ice_open() seems to be
allocating all the Rx memory, and can fail.
Powered by blists - more mailing lists