diff options
author | Petr Machata <petrm@mellanox.com> | 2018-07-27 15:26:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-27 13:17:49 -0700 |
commit | 08193d1a893c802c4b807e4d522865061f4e9f4f (patch) | |
tree | ffc24cf2e05c5dfd80b957b6eb0aa8ce604ce36e /fs/gfs2/Kconfig | |
parent | 1f3ed383fb9a073ae2e408cd7a0717b04c7c3a21 (diff) | |
download | linux-08193d1a893c802c4b807e4d522865061f4e9f4f.tar.bz2 |
net: dcb: For wild-card lookups, use priority -1, not 0
The function dcb_app_lookup walks the list of specified DCB APP entries,
looking for one that matches a given criteria: ifindex, selector,
protocol ID and optionally also priority. The "don't care" value for
priority is set to 0, because that priority has not been allowed under
CEE regime, which predates the IEEE standardization.
Under IEEE, 0 is a valid priority number. But because dcb_app_lookup
considers zero a wild card, attempts to add an APP entry with priority 0
fail when other entries exist for a given ifindex / selector / PID
triplet.
Fix by changing the wild-card value to -1.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/gfs2/Kconfig')
0 files changed, 0 insertions, 0 deletions