Skip to content

Commit 420d181

Browse files
committed
link bridge: Fix typo of NeighVlanSupress
Changed `NeighVlanSupress` to `NeighVlanSuppress` Signed-off-by: Gris Ge <fge@redhat.com>
1 parent 1a16af8 commit 420d181

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/link/link_info/bridge_port.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub enum InfoBridgePort {
9696
Mab(bool),
9797
MulticastNGroups(u32),
9898
MulticastMaxGroups(u32),
99-
NeighVlanSupress(bool),
99+
NeighVlanSuppress(bool),
100100
BackupNextHopId(u32),
101101
Other(DefaultNla),
102102
}
@@ -127,7 +127,7 @@ impl Nla for InfoBridgePort {
127127
| InfoBridgePort::MrpInOpen(_)
128128
| InfoBridgePort::Locked(_)
129129
| InfoBridgePort::Mab(_)
130-
| InfoBridgePort::NeighVlanSupress(_) => 1,
130+
| InfoBridgePort::NeighVlanSuppress(_) => 1,
131131
InfoBridgePort::Priority(_)
132132
| InfoBridgePort::DesignatedPort(_)
133133
| InfoBridgePort::DesignatedCost(_)
@@ -173,7 +173,7 @@ impl Nla for InfoBridgePort {
173173
| InfoBridgePort::MrpInOpen(value)
174174
| InfoBridgePort::Locked(value)
175175
| InfoBridgePort::Mab(value)
176-
| InfoBridgePort::NeighVlanSupress(value) => {
176+
| InfoBridgePort::NeighVlanSuppress(value) => {
177177
buffer[0] = if *value { 1 } else { 0 }
178178
}
179179
InfoBridgePort::Priority(value)
@@ -260,7 +260,7 @@ impl Nla for InfoBridgePort {
260260
InfoBridgePort::MulticastMaxGroups(_) => {
261261
IFLA_BRPORT_MCAST_MAX_GROUPS
262262
}
263-
InfoBridgePort::NeighVlanSupress(_) => {
263+
InfoBridgePort::NeighVlanSuppress(_) => {
264264
IFLA_BRPORT_NEIGH_VLAN_SUPPRESS
265265
}
266266
InfoBridgePort::BackupNextHopId(_) => IFLA_BRPORT_BACKUP_NHID,
@@ -498,7 +498,7 @@ impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>>
498498
})?,
499499
),
500500
IFLA_BRPORT_NEIGH_VLAN_SUPPRESS => {
501-
InfoBridgePort::NeighVlanSupress(
501+
InfoBridgePort::NeighVlanSuppress(
502502
parse_u8(payload).context({
503503
format!(
504504
"invalid IFLA_BRPORT_NEIGH_VLAN_SUPPRESS \

0 commit comments

Comments
 (0)