Lines Matching refs:need_update
13 bool need_update; in stmmac_xdp_enable_pool() local
34 need_update = netif_running(priv->dev) && stmmac_xdp_is_enabled(priv); in stmmac_xdp_enable_pool()
36 if (need_update) { in stmmac_xdp_enable_pool()
45 if (need_update) { in stmmac_xdp_enable_pool()
62 bool need_update; in stmmac_xdp_disable_pool() local
72 need_update = netif_running(priv->dev) && stmmac_xdp_is_enabled(priv); in stmmac_xdp_disable_pool()
74 if (need_update) { in stmmac_xdp_disable_pool()
85 if (need_update) { in stmmac_xdp_disable_pool()
107 bool need_update; in stmmac_xdp_set_prog() local
123 need_update = !!priv->xdp_prog != !!prog; in stmmac_xdp_set_prog()
124 if (if_running && need_update) in stmmac_xdp_set_prog()
134 if (if_running && need_update) in stmmac_xdp_set_prog()