HomeFreeBSD

Zero `struct weightened_nhop` fields in nhgrp_get_addition_group().

Description

Zero struct weightened_nhop fields in nhgrp_get_addition_group().

struct weightened_nhop has spare 32bit between the fields due to
the alignment (on amd64).
Not zeroing these spare bits results in duplicating nhop groups
in the kernel due to the way how comparison works.

MFC after: 1 day

Details

Provenance
melifaroAuthored on Mar 20 2021, 8:26 AM
Parents
R10:3a314eb5bb44: zfs: Cherry-pick upstream commit ef977fce6636 to fix macOS/arm64 bootstrap
Branches
Unknown
Tags
Unknown