• Ido Schimmel's avatar
    bridge: Add per-{Port, VLAN} neighbor suppression data path support · 412614b1
    Ido Schimmel authored
    When the bridge is not VLAN-aware (i.e., VLAN ID is 0), determine if
    neighbor suppression is enabled on a given bridge port solely based on
    the existing 'BR_NEIGH_SUPPRESS' flag.
    
    Otherwise, if the bridge is VLAN-aware, first check if per-{Port, VLAN}
    neighbor suppression is enabled on the given bridge port using the
    'BR_NEIGH_VLAN_SUPPRESS' flag. If so, look up the VLAN and check whether
    it has neighbor suppression enabled based on the per-VLAN
    'BR_VLFLAG_NEIGH_SUPPRESS_ENABLED' flag.
    
    If the bridge is VLAN-aware, but the bridge port does not have
    per-{Port, VLAN} neighbor suppression enabled, then fallback to
    determine neighbor suppression based on the 'BR_NEIGH_SUPPRESS' flag.
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Acked-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    412614b1
br_arp_nd_proxy.c 11.9 KB