Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • net
  • switchdev.h
Find file BlameHistoryPermalink
  • Hans J. Schultz's avatar
    bridge: switchdev: Allow device drivers to install locked FDB entries · 27fabd02
    Hans J. Schultz authored Nov 08, 2022
    
    
    When the bridge is offloaded to hardware, FDB entries are learned and
    aged-out by the hardware. Some device drivers synchronize the hardware
    and software FDBs by generating switchdev events towards the bridge.
    
    When a port is locked, the hardware must not learn autonomously, as
    otherwise any host will blindly gain authorization. Instead, the
    hardware should generate events regarding hosts that are trying to gain
    authorization and their MAC addresses should be notified by the device
    driver as locked FDB entries towards the bridge driver.
    
    Allow device drivers to notify the bridge driver about such entries by
    extending the 'switchdev_notifier_fdb_info' structure with the 'locked'
    bit. The bit can only be set by device drivers and not by the bridge
    driver.
    
    Prevent a locked entry from being installed if MAB is not enabled on the
    bridge port.
    
    If an entry already exists in the bridge driver, reject the locked entry
    if the current entry does not have the "locked" flag set or if it points
    to a different port. The same semantics are implemented in the software
    data path.
    
    Signed-off-by: default avatarHans J. Schultz <netdev@kapio-technology.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
    Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Acked-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    27fabd02
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7