1. 26 8月, 2021 6 次提交
  2. 28 7月, 2021 1 次提交
  3. 20 7月, 2021 4 次提交
    • J
      net: hns3: fix rx VLAN offload state inconsistent issue · bbfd4506
      Jian Shen 提交于
      Currently, VF doesn't enable rx VLAN offload when initializating,
      and PF does it for VFs. If user disable the rx VLAN offload for
      VF with ethtool -K, and reload the VF driver, it may cause the
      rx VLAN offload state being inconsistent between hardware and
      software.
      
      Fixes it by enabling rx VLAN offload when VF initializing.
      
      Fixes: e2cb1dec ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support")
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      bbfd4506
    • 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
    • P
      net: hns3: add match_id to check mailbox response from PF to VF · 4671042f
      Peng Li 提交于
      When VF need response from PF, VF will wait (1us - 1s) to receive
      the response, or it will wait timeout and the VF action fails.
      If VF do not receive response in 1st action because timeout,
      the 2nd action may receive response for the 1st action, and get
      incorrect response data.VF must reciveve the right response from
      PF,or it will cause unexpected error.
      
      This patch adds match_id to check mailbox response from PF to VF,
      to make sure VF get the right response:
      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.
      
      This scheme depends on PF driver supports match_id, if PF driver doesn't
      support then VF will uses the original scheme.
      Signed-off-by: NPeng Li <lipeng321@huawei.com>
      Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      4671042f
    • 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. 19 6月, 2021 1 次提交
  7. 16 6月, 2021 7 次提交
  8. 12 6月, 2021 2 次提交
  9. 10 6月, 2021 2 次提交
  10. 09 6月, 2021 5 次提交
  11. 08 6月, 2021 3 次提交
  12. 01 6月, 2021 4 次提交