Skip to content

Commit

Permalink
Simplify MAC shift logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaecker committed Feb 15, 2024
1 parent 875cafb commit e7b6f29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nexus/db-queries/src/db/queries/network_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ impl NextMacShifts {
// always expressed as a negative number, giving the largest leftward
// shift, i.e., the distance to the first value.
let max_shift = max - x;
let min_shift = -(x - min);
let min_shift = min - x;
Self { base, min_shift, max_shift }
}
}
Expand Down
2 changes: 1 addition & 1 deletion smf/sled-agent/non-gimlet/config-rss.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bgp = []
# You can configure multiple uplinks by repeating the following stanza
[[rack_network_config.ports]]
# Routes associated with this port.
routes = [{nexthop = "192.168.1.199", destination = "0.0.0.0/0"}]
routes = [{nexthop = "192.168.1.1", destination = "0.0.0.0/0"}]
# Addresses associated with this port.
addresses = ["192.168.1.30/24"]
# Name of the uplink port. This should always be "qsfp0" when using softnpu.
Expand Down
2 changes: 1 addition & 1 deletion smf/sled-agent/non-gimlet/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ data_links = ["net0", "net1"]
request_body_max_bytes = 2_147_483_648

[log]
level = "info"
level = "debug"
mode = "file"
path = "/dev/stdout"
if_exists = "append"

0 comments on commit e7b6f29

Please sign in to comment.