Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1049283
| From | Santiago Garcia Mantinan <manty@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#981253: actually, make that: document minimum and maximum values of all options |
| Date | 2021-02-22 00:40 +0100 |
| Message-ID | <BL6ut-5dT-1@gated-at.bofh.it> (permalink) |
| References | <BCfGG-27t-5@gated-at.bofh.it> <BCg01-2ei-1@gated-at.bofh.it> <BCfGG-27t-5@gated-at.bofh.it> <BCg01-2ei-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> Document the minimum and maximum values of all options, and tell which
> value is the strongest for each.
This will take a lot of time, and I don't know if this is worth the effort.
I'm going to try to go over all of this, as it seems that documentation is
wrong, the kernel guys have changed things around and doc doesn't match
kernel, for example, you asked for portprio... I had to read the kernel code
to know what was happening, right now as of 5.10 this would be...
br_stp_if.c:#define BR_MAX_PORT_PRIORITY ((u16)~0 >> BR_PORT_BITS)
br_private.h:#define BR_PORT_BITS 10
This means that it is set to an unsigned int of 16 bits which is the
complent of 0, which means it is 1111111111111111 in binary or FFFF in hexa,
shifted right 10 bits, which makes it 111111 or 63 in decimal, so... right
now the values go from 0 to 63.
It looks like by default...
p->priority = 0x8000 >> BR_PORT_BITS;
which would be... 0x20 or 32 in decimal.
And testing shows lower is higher priority.
I'll try to gather info for all this, but looks like it will be time
consuming and that the kernel guys may change it again :-(
Regards...
--
Manty/BestiaTester -> http://manty.net
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#981253: bridge-utils: please document bridge_portprio values Martin-Éric Racine <martin-eric.racine@iki.fi> - 2021-01-28 14:40 +0100
Bug#981253: actually, make that: document minimum and maximum values of all options Martin-Éric Racine <martin-eric.racine@iki.fi> - 2021-01-28 15:00 +0100
Bug#981253: actually, make that: document minimum and maximum values of all options Santiago Garcia Mantinan <manty@debian.org> - 2021-02-22 00:40 +0100
Bug#981253: actually, make that: document minimum and maximum values of all options Martin-Éric Racine <martin-eric.racine@iki.fi> - 2021-02-22 07:50 +0100
csiph-web