Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
dbef36b6
Commit
dbef36b6
authored
Sep 17, 2008
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge in fix for loss of MQ
Fix up conflict with earlier attempt at resolving build issues with MQ
parents
19ecc16d
f0b34d2d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
24 deletions
+31
-24
include/linux/pkt_sched.h
include/linux/pkt_sched.h
+0
-10
ip/ipaddress.c
ip/ipaddress.c
+6
-4
ip/ipneigh.c
ip/ipneigh.c
+6
-4
ip/iproute.c
ip/iproute.c
+6
-5
lib/utils.c
lib/utils.c
+1
-1
tc/tc_util.h
tc/tc_util.h
+12
-0
No files found.
include/linux/pkt_sched.h
View file @
dbef36b6
...
...
@@ -123,16 +123,6 @@ struct tc_prio_qopt
__u8
priomap
[
TC_PRIO_MAX
+
1
];
/* Map: logical priority -> PRIO band */
};
/* Obsolete option from original multiqueue */
enum
{
TCA_PRIO_UNSPEC
,
TCA_PRIO_MQ
,
__TCA_PRIO_MAX
};
#define TCA_PRIO_MAX (__TCA_PRIO_MAX - 1)
/* TBF section */
struct
tc_tbf_qopt
...
...
ip/ipaddress.c
View file @
dbef36b6
...
...
@@ -697,10 +697,12 @@ static int ipaddr_list_or_flush(int argc, char **argv, int flush)
exit
(
1
);
}
if
(
filter
.
flushed
==
0
)
{
if
(
round
==
0
)
{
fprintf
(
stderr
,
"Nothing to flush.
\n
"
);
}
else
if
(
show_stats
)
printf
(
"*** Flush is complete after %d round%s ***
\n
"
,
round
,
round
>
1
?
"s"
:
""
);
if
(
show_stats
)
{
if
(
round
==
0
)
printf
(
"Nothing to flush.
\n
"
);
else
printf
(
"*** Flush is complete after %d round%s ***
\n
"
,
round
,
round
>
1
?
"s"
:
""
);
}
fflush
(
stdout
);
return
0
;
}
...
...
ip/ipneigh.c
View file @
dbef36b6
...
...
@@ -402,10 +402,12 @@ int do_show_or_flush(int argc, char **argv, int flush)
exit
(
1
);
}
if
(
filter
.
flushed
==
0
)
{
if
(
round
==
0
)
{
fprintf
(
stderr
,
"Nothing to flush.
\n
"
);
}
else
if
(
show_stats
)
printf
(
"*** Flush is complete after %d round%s ***
\n
"
,
round
,
round
>
1
?
"s"
:
""
);
if
(
show_stats
)
{
if
(
round
==
0
)
printf
(
"Nothing to flush.
\n
"
);
else
printf
(
"*** Flush is complete after %d round%s ***
\n
"
,
round
,
round
>
1
?
"s"
:
""
);
}
fflush
(
stdout
);
return
0
;
}
...
...
ip/iproute.c
View file @
dbef36b6
...
...
@@ -1209,11 +1209,12 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
exit
(
1
);
}
if
(
filter
.
flushed
==
0
)
{
if
(
round
==
0
)
{
if
(
!
filter
.
cloned
||
do_ipv6
==
AF_INET6
)
fprintf
(
stderr
,
"Nothing to flush.
\n
"
);
}
else
if
(
show_stats
)
printf
(
"*** Flush is complete after %d round%s ***
\n
"
,
round
,
round
>
1
?
"s"
:
""
);
if
(
show_stats
)
{
if
(
round
==
0
&&
(
!
filter
.
cloned
||
do_ipv6
==
AF_INET6
))
printf
(
"Nothing to flush.
\n
"
);
else
printf
(
"*** Flush is complete after %d round%s ***
\n
"
,
round
,
round
>
1
?
"s"
:
""
);
}
fflush
(
stdout
);
return
0
;
}
...
...
lib/utils.c
View file @
dbef36b6
...
...
@@ -284,7 +284,7 @@ int get_addr_1(inet_prefix *addr, const char *name, int family)
addr
->
family
=
AF_INET
;
if
(
family
!=
AF_UNSPEC
&&
family
!=
AF_INET
)
return
-
1
;
if
(
inet_
pton
(
AF_INET
,
name
,
addr
->
data
)
<=
0
)
if
(
inet_
aton
(
name
,
addr
->
data
)
<=
0
)
return
-
1
;
addr
->
bytelen
=
4
;
addr
->
bitlen
=
-
1
;
...
...
tc/tc_util.h
View file @
dbef36b6
...
...
@@ -7,6 +7,18 @@
#include <linux/gen_stats.h>
#include "tc_core.h"
/* This is the deprecated multiqueue interface */
#ifndef TCA_PRIO_MAX
enum
{
TCA_PRIO_UNSPEC
,
TCA_PRIO_MQ
,
__TCA_PRIO_MAX
};
#define TCA_PRIO_MAX (__TCA_PRIO_MAX - 1)
#endif
struct
qdisc_util
{
struct
qdisc_util
*
next
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment