Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-qy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

The Gitlab will upgrade to latest version for security in the Oct 7th (9:00 ~ 12:00 UTC+8), during the time, the Gitlab site will be offline.

  • linux-arm
  • linux-qy
  • Repository
  • linux-qy
  • ..
  • hns3pf
  • hclge_main.c
Find file BlameHistoryPermalink
  • Guangbin Huang's avatar
    net: hns3: add compatible handling for MAC VLAN switch parameter configuration · 71c5e83b
    Guangbin Huang authored Nov 14, 2019
    Previously, hns3 driver just directly send specific setting bit
    and mask bits of MAC VLAN switch parameter to the firmware, it
    can not be compatible with the old firmware, because the old one
    ignores mask bits and covers all bits with new setting bits.
    So when running with old firmware, the communication between PF
    and VF will fail after resetting or configuring spoof check, since
    they will do the MAC VLAN switch parameter configuration.
    
    This patch fixes this problem by reading switch parameter firstly,
    then just modifies the corresponding bit and sends it to firmware.
    
    Fixes: dd2956ea
    
     ("net: hns3: not allow SSU loopback while execute ethtool -t dev")
    Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    71c5e83b