1. 30 3月, 2021 2 次提交
  2. 27 3月, 2021 1 次提交
  3. 23 3月, 2021 1 次提交
  4. 12 2月, 2021 1 次提交
  5. 10 2月, 2021 4 次提交
  6. 07 2月, 2021 1 次提交
  7. 05 2月, 2021 1 次提交
  8. 23 1月, 2021 1 次提交
  9. 10 12月, 2020 3 次提交
  10. 09 12月, 2020 2 次提交
    • G
      net: hns3: refine the VLAN tag handle for port based VLAN · 592b0179
      Guojia Liao 提交于
      For DEVICE_VERSION_V2, the hardware only supports max two layer
      VLAN tags, including port based tag inserted by hardware, tag in
      tx buffer descriptor(get from skb->tci) and tag in packet.
      
      For transmit packet:
      If port based VLAN disabled, and vf driver gets a VLAN tag from
      skb, the VLAN tag must be filled to the Outer_VLAN_TAG field
      (tag near to DMAC) of tx buffer descriptor, otherwise it may
      be inserted after the tag in packet.
      
      If port based VLAN enabled, and vf driver gets a VLAN tag from
      skb, the VLAN tag must be filled to the VLAN_TAG field (tag
      far to DMAC) of tx buffer descriptor, otherwise it may be
      conflicted with port based VLAN, and raise a hardware error.
      
      For receive packet:
      The hardware will strip the VLAN tags and fill them in the rx
      buffer descriptor, no matter port based VLAN enable or not.
      Because port based VLAN tag is useless for stack, so vf driver
      needs to discard the port based VLAN tag get from rx buffer
      descriptor when port based VLAN enabled.
      
      So vf must know about the port based VLAN state.
      
      For DEVICE_VERSION_V3, the hardware provides some new
      configuration to improve it.
      
      For transmit packet:
      When enable tag shift mode, hardware will handle the VLAN tag
      in outer_VLAN_TAG field as VLAN_TAG, so it won't conflict with
      port based VLAN. And hardware also make sure the tag before
      the tag in packet. So vf driver doesn't need to specify the tag
      position according to the port based VLAN state anymore.
      
      For receive packet:
      When enable discard mode, hardware will strip and discard the
      port based VLAN tag, so vf driver doesn't need to identify it
      from rx buffer descriptor.
      
      So modify the port based VLAN configuration, simplify the process
      for vf handling the VLAN tag.
      Signed-off-by: NGuojia Liao <liaoguojia@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      592b0179
    • J
      net: hns3: add priv flags support to switch limit promisc mode · 5e7414cd
      Jian Shen 提交于
      Currently, the tx unicast promisc is always enabled when promisc
      mode on. If tx unicast promisc on, a function will receive all
      unicast packet from other functions belong to the same port.
      Add a ethtool private flag to control whether enable tx
      unicast promisc. Then the function is able to filter the
      unknown unicast packets from other function.
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      5e7414cd
  11. 02 12月, 2020 5 次提交
  12. 22 11月, 2020 1 次提交
    • Y
      net: hns3: add support for pf querying new interrupt resources · 3a6863e4
      Yufeng Mo 提交于
      For HNAE3_DEVICE_VERSION_V3, a maximum of 1281 interrupt
      resources are supported. To utilize these new resources,
      extend the corresponding field or variable to 16bit type,
      and remove the restriction of NIC client that only use a
      maximum of 65 interrupt vectors. In addition, the I/O address
      of the extended interrupt resources are different, so an extra
      handler is needed.
      
      Currently, the total number of interrupts is the sum of RoCE's
      number and RoCE's offset (RoCE is in front of NIC), since
      the number of both NIC and RoCE are same. For readability,
      rewrite the corresponding field of the command, rename the
      RoCE's offset field as the number of NIC interrupts, then
      the total number of interrupts is sum of the number of RoCE
      and NIC, and replace vport->back with hdev in
      hclge_init_roce_base_info() for simplifying the code.
      Signed-off-by: NYufeng Mo <moyufeng@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      3a6863e4
  13. 18 11月, 2020 3 次提交
  14. 30 9月, 2020 3 次提交
  15. 28 9月, 2020 2 次提交
  16. 25 9月, 2020 4 次提交
  17. 18 9月, 2020 5 次提交