* [Bridge] setportprio problem with bridge-utils 1.0.6
@ 2006-05-30 21:46 Samuel Díaz García
2006-05-30 23:21 ` Stephen Hemminger
0 siblings, 1 reply; 4+ messages in thread
From: Samuel Díaz García @ 2006-05-30 21:46 UTC (permalink / raw)
To: bridge; +Cc: For users of Fedora Core releases
I'm having a problem with brctl when I want to set prio in a bridge port.
When I execute:
brctl setbridgeprio br0 eth1 10
(for example)
I can see how that value (10) is asigned to the port cost.
Is this a known issue with this version?
I detected this with FC5 bridge-utils package and with dd-wrt bridge-utils.
Any help about this?
--
Samuel Díaz García
Director Gerente
ArcosCom Wireless, S.L.L.
CIF: B11828068
c/ Romero Gago, 19
Arcos de la Frontera
11630 - Cadiz
http://www.arcoscom.com
mailto:samueldg@arcoscom.com
msn: samueldg@arcoscom.com
Móvil: 651 93 72 48
Tlfn.: 956 70 13 15
Fax: 956 70 34 83
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Bridge] setportprio problem with bridge-utils 1.0.6 2006-05-30 21:46 [Bridge] setportprio problem with bridge-utils 1.0.6 Samuel Díaz García @ 2006-05-30 23:21 ` Stephen Hemminger [not found] ` <447D77A4.5050205@arcoscom.com> 0 siblings, 1 reply; 4+ messages in thread From: Stephen Hemminger @ 2006-05-30 23:21 UTC (permalink / raw) To: bridge On Tue, 30 May 2006 23:46:25 +0200 Samuel Díaz García <samueldg@arcoscom.com> wrote: > I'm having a problem with brctl when I want to set prio in a bridge port. > > When I execute: > > brctl setbridgeprio br0 eth1 10 > > (for example) All it ends up doing is writing a 10 to /sys/class/net/br0/bridge/port_cost The problem (or feature) is that the bridge will autodetect the port cost based on the link speed when the bridge or port is started up. So you need to change the port cost after the bridge is already running to cause any effect. > > I can see how that value (10) is asigned to the port cost. > > Is this a known issue with this version? > > I detected this with FC5 bridge-utils package and with dd-wrt bridge-utils. > > Any help about this? > ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <447D77A4.5050205@arcoscom.com>]
[parent not found: <20060531091022.12361f66@localhost.localdomain>]
* Re: [Bridge] setportprio problem with bridge-utils 1.0.6 [not found] ` <20060531091022.12361f66@localhost.localdomain> @ 2006-05-31 21:02 ` Samuel Díaz García 2006-05-31 21:33 ` [Bridge] [PATCH] Fix bug where changing port priority changed path cost instead Stephen Hemminger 0 siblings, 1 reply; 4+ messages in thread From: Samuel Díaz García @ 2006-05-31 21:02 UTC (permalink / raw) To: Stephen Hemminger; +Cc: bridge Thanks Stepen, again, and sorry for my english, perhaps is this the problem too: my english. I want to set port prio, to values as 1, 2, 3, 4, etc.. (little values), my problem is that when I run: brctl setportprio br0 eth1 3 That "3" goes to "port cost" no goes into "port priority", that is my problem. Any help more? Stephen Hemminger escribió: > On Wed, 31 May 2006 13:01:56 +0200 > Samuel Díaz García <samueldg@arcoscom.com> wrote: > >> Thanks Stephen. >> >> The problem is I want to set the port prio, not the cost. The cost is >> working (at least brctl showstp br0 shows fine, gg). >> >> Would work with ..../port_prio too? > > You know that port_prio is limited to 6 bits now that bridge can have up > to 1024 ports. > -- Samuel Díaz García Director Gerente ArcosCom Wireless, S.L.L. CIF: B11828068 c/ Romero Gago, 19 Arcos de la Frontera 11630 - Cadiz http://www.arcoscom.com mailto:samueldg@arcoscom.com msn: samueldg@arcoscom.com Móvil: 651 93 72 48 Tlfn.: 956 70 13 15 Fax: 956 70 34 83 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bridge] [PATCH] Fix bug where changing port priority changed path cost instead. 2006-05-31 21:02 ` Samuel Díaz García @ 2006-05-31 21:33 ` Stephen Hemminger 0 siblings, 0 replies; 4+ messages in thread From: Stephen Hemminger @ 2006-05-31 21:33 UTC (permalink / raw) To: Samuel Díaz García; +Cc: bridge Just applied this to the bridge git repository. --- ChangeLog | 4 ++++ brctl/brctl_cmd.c | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) 32a43e993241ff53f3333c4533d135c4f6cead73 diff --git a/ChangeLog b/ChangeLog index e31da93..435d2f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-05-31 Stephen Hemminger <shemminger@zqx3.pdx.osdl.net> + + * Fixed bug where setting port priority set path cost instead + 2006-01-31 Stephen Hemminger <shemminger@osdl.org> * Released bridge-utils 1.1 diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c index 6d0785e..67aaad4 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -267,7 +267,7 @@ static int br_cmd_setportprio(int argc, return 1; } - err = br_set_path_cost(argv[1], argv[2], cost); + err = br_set_port_priority(argv[1], argv[2], cost); if (err) fprintf(stderr, "set port priority failed: %s\n", strerror(errno)); -- 1.2.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-31 21:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-30 21:46 [Bridge] setportprio problem with bridge-utils 1.0.6 Samuel Díaz García
2006-05-30 23:21 ` Stephen Hemminger
[not found] ` <447D77A4.5050205@arcoscom.com>
[not found] ` <20060531091022.12361f66@localhost.localdomain>
2006-05-31 21:02 ` Samuel Díaz García
2006-05-31 21:33 ` [Bridge] [PATCH] Fix bug where changing port priority changed path cost instead Stephen Hemminger
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.