Re: [PATCH net v3 1/2] net/stmmac: Check for STMMAC_DOWN flag in all XDP paths

From: Jakub Raczynski

Date: Wed Jul 08 2026 - 16:17:44 EST


On Tue, Jul 07, 2026 at 07:45:50PM +0200, Jakub Raczynski wrote:
> Currently STMMAC_DOWN flag is only set/cleared by stmmac_reset_subtask(),
> to notify driver to stop processing of TX/RX frames. One of these processing
> paths is for XDP, but it is only ever checked in stmmac_xdp_xmit(), which
> leaves all other XDP paths vulnerable to processing data while interface is
> restarting.
>
> Make verification of STMMAC_DOWN flag consistent by applying check to
> all XDP paths.
>
> Fixes: 8b278a5b69a22 ("net: stmmac: Add support for XDP_REDIRECT action")
> Co-developed-by: Chang-Sub Lee <cs0617.lee@xxxxxxxxxxx>
> Signed-off-by: Chang-Sub Lee <cs0617.lee@xxxxxxxxxxx>
> Signed-off-by: Jakub Raczynski <j.raczynski@xxxxxxxxxxx>
> ---

Sashiko AI gave review that has valid points, patch needs changes.
Please drop it

--
pw-bot: cr