1. 26 8月, 2021 2 次提交
  2. 28 7月, 2021 1 次提交
  3. 20 7月, 2021 2 次提交
    • J
      net: hns3: disable port VLAN filter when support function level VLAN filter control · 184cd221
      Jian Shen 提交于
      For hardware limitation, port VLAN filter is port level, and
      effective for all the functions of the port. So if not support
      port VLAN bypass, it's necessary to disable the port VLAN filter,
      in order to support function level VLAN filter control.
      
      Fixes: 2ba30662 ("net: hns3: add support for modify VLAN filter state")
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      184cd221
    • C
      net: hns3: fix possible mismatches resp of mailbox · 1b713d14
      Chengwen Feng 提交于
      Currently, the mailbox synchronous communication between VF and PF use
      the following fields to maintain communication:
      1. Origin_mbx_msg which was combined by message code and subcode, used
      to match request and response.
      2. Received_resp which means whether received response.
      
      There may possible mismatches of the following situation:
      1. VF sends message A with code=1 subcode=1.
      2. PF was blocked about 500ms when processing the message A.
      3. VF will detect message A timeout because it can't get the response
      within 500ms.
      4. VF sends message B with code=1 subcode=1 which equal message A.
      5. PF processes the first message A and send the response message to
      VF.
      6. VF will identify the response matched the message B because the
      code/subcode is the same. This will lead to mismatch of request and
      response.
      
      To fix the above bug, we use the following scheme:
      1. The message sent from VF was labelled with match_id which was a
      unique 16-bit non-zero value.
      2. The response sent from PF will label with match_id which got from
      the request.
      3. The VF uses the match_id to match request and response message.
      
      As for PF driver, it only needs to copy the match_id from request to
      response.
      
      Fixes: dde1a86e ("net: hns3: Add mailbox support to PF driver")
      Signed-off-by: NChengwen Feng <fengchengwen@huawei.com>
      Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      1b713d14
  4. 29 6月, 2021 2 次提交
  5. 22 6月, 2021 3 次提交
  6. 16 6月, 2021 1 次提交
  7. 12 6月, 2021 2 次提交
  8. 10 6月, 2021 1 次提交
  9. 09 6月, 2021 5 次提交
  10. 08 6月, 2021 3 次提交
  11. 01 6月, 2021 8 次提交
  12. 25 5月, 2021 2 次提交
  13. 22 5月, 2021 1 次提交
  14. 21 5月, 2021 7 次提交