* [PATCH 1/2] HFSC: Fix indentations
@ 2004-03-18 16:46 Patrick McHardy
2004-03-19 4:40 ` David S. Miller
0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2004-03-18 16:46 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
[-- Attachment #1: Type: text/plain, Size: 112 bytes --]
Hi Dave,
this patch fixes broken indentations in HFSC from the u_intXX_t -> uXX
change.
Best regards
Patrick
[-- Attachment #2: 01-hfsc-indent.diff --]
[-- Type: text/x-patch, Size: 3389 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/03/17 03:01:46+01:00 kaber@trash.net
# [NET_SCHED}: Fix indentations in HFSC scheduler
#
# net/sched/sch_hfsc.c
# 2004/03/17 03:01:37+01:00 kaber@trash.net +17 -20
# [NET_SCHED}: Fix indentations in HFSC scheduler
#
diff -Nru a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
--- a/net/sched/sch_hfsc.c Thu Mar 18 02:34:11 2004
+++ b/net/sched/sch_hfsc.c Thu Mar 18 02:34:11 2004
@@ -118,7 +118,7 @@
struct hfsc_class
{
- u32 classid; /* class id */
+ u32 classid; /* class id */
unsigned int refcnt; /* usage count */
struct tc_stats stats; /* generic statistics */
@@ -138,28 +138,28 @@
struct list_head hlist; /* hash list member */
struct list_head dlist; /* drop list member */
- u64 cl_total; /* total work in bytes */
- u64 cl_cumul; /* cumulative work in bytes done by
+ u64 cl_total; /* total work in bytes */
+ u64 cl_cumul; /* cumulative work in bytes done by
real-time criteria */
- u64 cl_d; /* deadline*/
- u64 cl_e; /* eligible time */
- u64 cl_vt; /* virtual time */
- u64 cl_f; /* time when this class will fit for
+ u64 cl_d; /* deadline*/
+ u64 cl_e; /* eligible time */
+ u64 cl_vt; /* virtual time */
+ u64 cl_f; /* time when this class will fit for
link-sharing, max(myf, cfmin) */
- u64 cl_myf; /* my fit-time (calculated from this
+ u64 cl_myf; /* my fit-time (calculated from this
class's own upperlimit curve) */
- u64 cl_myfadj; /* my fit-time adjustment (to cancel
+ u64 cl_myfadj; /* my fit-time adjustment (to cancel
history dependence) */
- u64 cl_cfmin; /* earliest children's fit-time (used
+ u64 cl_cfmin; /* earliest children's fit-time (used
with cl_myf to obtain cl_f) */
- u64 cl_cvtmin; /* minimal virtual time among the
+ u64 cl_cvtmin; /* minimal virtual time among the
children fit for link-sharing
(monotonic within a period) */
- u64 cl_vtadj; /* intra-period cumulative vt
+ u64 cl_vtadj; /* intra-period cumulative vt
adjustment */
- u64 cl_vtoff; /* inter-period cumulative vt offset */
- u64 cl_cvtmax; /* max child's vt in the last period */
+ u64 cl_vtoff; /* inter-period cumulative vt offset */
+ u64 cl_cvtmax; /* max child's vt in the last period */
struct internal_sc cl_rsc; /* internal real-time service curve */
struct internal_sc cl_fsc; /* internal fair service curve */
@@ -179,8 +179,7 @@
struct hfsc_sched
{
- u16 defcls; /* default class id */
-
+ u16 defcls; /* default class id */
struct hfsc_class root; /* root class */
struct hfsc_class *last_xmit; /* class that transmitted last
packet (for requeueing) */
@@ -566,8 +565,7 @@
* service curve starting at (x, y).
*/
static void
-rtsc_init(struct runtime_sc *rtsc, struct internal_sc *isc, u64 x,
- u64 y)
+rtsc_init(struct runtime_sc *rtsc, struct internal_sc *isc, u64 x, u64 y)
{
rtsc->x = x;
rtsc->y = y;
@@ -626,8 +624,7 @@
* runtime service curve and the service curve starting at (x, y).
*/
static void
-rtsc_min(struct runtime_sc *rtsc, struct internal_sc *isc, u64 x,
- u64 y)
+rtsc_min(struct runtime_sc *rtsc, struct internal_sc *isc, u64 x, u64 y)
{
u64 y1, y2, dx, dy;
u32 dsm;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] HFSC: Fix indentations
2004-03-18 16:46 [PATCH 1/2] HFSC: Fix indentations Patrick McHardy
@ 2004-03-19 4:40 ` David S. Miller
2004-03-19 15:21 ` Patrick McHardy
0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2004-03-19 4:40 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netdev
On Thu, 18 Mar 2004 17:46:41 +0100
Patrick McHardy <kaber@trash.net> wrote:
> this patch fixes broken indentations in HFSC from the u_intXX_t -> uXX
> change.
Applied to 2.6.x, do we need this in 2.4.x too?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] HFSC: Fix indentations
2004-03-19 4:40 ` David S. Miller
@ 2004-03-19 15:21 ` Patrick McHardy
0 siblings, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2004-03-19 15:21 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
David S. Miller wrote:
> On Thu, 18 Mar 2004 17:46:41 +0100
> Patrick McHardy <kaber@trash.net> wrote:
>
>
>>this patch fixes broken indentations in HFSC from the u_intXX_t -> uXX
>>change.
>
>
> Applied to 2.6.x, do we need this in 2.4.x too?
>
Yes, both patches should apply to 2.4 with minor fuzz.
Regards
Patrick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-19 15:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-18 16:46 [PATCH 1/2] HFSC: Fix indentations Patrick McHardy
2004-03-19 4:40 ` David S. Miller
2004-03-19 15:21 ` Patrick McHardy
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).