* [PATCH] net: sched: make the watchdog functions more coherent
@ 2020-06-03 21:21 Valentin Longchamp
2020-06-04 22:55 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Valentin Longchamp @ 2020-06-03 21:21 UTC (permalink / raw)
To: netdev; +Cc: jiri, xiyou.wangcong, jhs, Valentin Longchamp
Remove dev_watchdog_up() that directly called __netdev_watchdog_up() and
rename dev_watchdog_down() to __netdev_watchdog_down() for symmetry.
Signed-off-by: Valentin Longchamp <valentin@longchamp.me>
---
net/sched/sch_generic.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 2efd5b61acef..f3cb740a2941 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -465,12 +465,7 @@ void __netdev_watchdog_up(struct net_device *dev)
}
}
-static void dev_watchdog_up(struct net_device *dev)
-{
- __netdev_watchdog_up(dev);
-}
-
-static void dev_watchdog_down(struct net_device *dev)
+static void __netdev_watchdog_down(struct net_device *dev)
{
netif_tx_lock_bh(dev);
if (del_timer(&dev->watchdog_timer))
@@ -1111,7 +1106,7 @@ void dev_activate(struct net_device *dev)
if (need_watchdog) {
netif_trans_update(dev);
- dev_watchdog_up(dev);
+ __netdev_watchdog_up(dev);
}
}
EXPORT_SYMBOL(dev_activate);
@@ -1198,7 +1193,7 @@ void dev_deactivate_many(struct list_head *head)
dev_deactivate_queue(dev, dev_ingress_queue(dev),
&noop_qdisc);
- dev_watchdog_down(dev);
+ __netdev_watchdog_down(dev);
}
/* Wait for outstanding qdisc-less dev_queue_xmit calls.
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: sched: make the watchdog functions more coherent
2020-06-03 21:21 [PATCH] net: sched: make the watchdog functions more coherent Valentin Longchamp
@ 2020-06-04 22:55 ` David Miller
2020-06-05 4:52 ` Valentin Longchamp
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2020-06-04 22:55 UTC (permalink / raw)
To: valentin; +Cc: netdev, jiri, xiyou.wangcong, jhs
From: Valentin Longchamp <valentin@longchamp.me>
Date: Wed, 3 Jun 2020 23:21:13 +0200
> Remove dev_watchdog_up() that directly called __netdev_watchdog_up() and
> rename dev_watchdog_down() to __netdev_watchdog_down() for symmetry.
>
> Signed-off-by: Valentin Longchamp <valentin@longchamp.me>
> ---
> net/sched/sch_generic.c | 11 +++--------
> 1 file changed, 3 insertions(+), 8 deletions(-)
>
> diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
> index 2efd5b61acef..f3cb740a2941 100644
> --- a/net/sched/sch_generic.c
> +++ b/net/sched/sch_generic.c
> @@ -465,12 +465,7 @@ void __netdev_watchdog_up(struct net_device *dev)
> }
> }
>
> -static void dev_watchdog_up(struct net_device *dev)
> -{
> - __netdev_watchdog_up(dev);
> -}
> -
> -static void dev_watchdog_down(struct net_device *dev)
> +static void __netdev_watchdog_down(struct net_device *dev)
This patch will not apply if I apply your symbol export patch because
the context above this function will be different.
Please don't do this.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: sched: make the watchdog functions more coherent
2020-06-04 22:55 ` David Miller
@ 2020-06-05 4:52 ` Valentin Longchamp
0 siblings, 0 replies; 3+ messages in thread
From: Valentin Longchamp @ 2020-06-05 4:52 UTC (permalink / raw)
To: David Miller; +Cc: netdev, jiri, xiyou.wangcong, jhs
Le 05.06.2020 à 00:55, David Miller a écrit :
> From: Valentin Longchamp <valentin@longchamp.me>
> Date: Wed, 3 Jun 2020 23:21:13 +0200
>
>> Remove dev_watchdog_up() that directly called __netdev_watchdog_up() and
>> rename dev_watchdog_down() to __netdev_watchdog_down() for symmetry.
>>
>> Signed-off-by: Valentin Longchamp <valentin@longchamp.me>
>> ---
>> net/sched/sch_generic.c | 11 +++--------
>> 1 file changed, 3 insertions(+), 8 deletions(-)
>>
>> diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
>> index 2efd5b61acef..f3cb740a2941 100644
>> --- a/net/sched/sch_generic.c
>> +++ b/net/sched/sch_generic.c
>> @@ -465,12 +465,7 @@ void __netdev_watchdog_up(struct net_device *dev)
>> }
>> }
>>
>> -static void dev_watchdog_up(struct net_device *dev)
>> -{
>> - __netdev_watchdog_up(dev);
>> -}
>> -
>> -static void dev_watchdog_down(struct net_device *dev)
>> +static void __netdev_watchdog_down(struct net_device *dev)
>
> This patch will not apply if I apply your symbol export patch because
> the context above this function will be different.
>
> Please don't do this.
>
Yeah, I didn't know how to handle this properly: I kept both patches
separated because the symbol export should go to stable and this one not.
Is that OK to have only a ("initial") subset of a series aimed for stable ?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-05 4:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 21:21 [PATCH] net: sched: make the watchdog functions more coherent Valentin Longchamp
2020-06-04 22:55 ` David Miller
2020-06-05 4:52 ` Valentin Longchamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).