Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions crates/nvlink-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ use tracing::Instrument;
/// Default NMX-M instance identifier for credentials and client lookup when none is specified.
pub const DEFAULT_NMX_M_NAME: &str = "default";

/// Multicast groups limit for new NMX-C partitions. Assuming at most 2 partitions per tray and
// 18 tray default partitions, this is set to floor(1024 / (36+18)).
const NMX_C_PARTITION_MULTICAST_GROUPS_LIMIT: u32 = 1024 / (36 + 18);
/// Multicast groups limit for new NMX-C partitions. Must be a multiple of 4. Assuming at most 2
/// partitions per tray and 18 tray default partitions, this is floor(1024 / (36+18)) rounded down
/// to the nearest multiple of 4.
const NMX_C_PARTITION_MULTICAST_GROUPS_LIMIT: u32 = 16;

fn rack_id_from_chassis_snapshots(
chassis_snapshots: &[&ManagedHostStateSnapshot],
Expand Down
Loading