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
  • net
  • core
  • dev.c
Find file BlameHistoryPermalink
  • Piotr Gardocki's avatar
    net: add check for current MAC address in dev_set_mac_address · ad72c4a0
    Piotr Gardocki authored Jun 14, 2023
    
    
    In some cases it is possible for kernel to come with request
    to change primary MAC address to the address that is already
    set on the given interface.
    
    Add proper check to return fast from the function in these cases.
    
    An example of such case is adding an interface to bonding
    channel in balance-alb mode:
    modprobe bonding mode=balance-alb miimon=100 max_bonds=1
    ip link set bond0 up
    ifenslave bond0 <eth>
    
    Signed-off-by: default avatarPiotr Gardocki <piotrx.gardocki@intel.com>
    Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    ad72c4a0
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7