hinic.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Linux Kernel Driver for Huawei Intelligent NIC(HiNIC) family
  2. ============================================================
  3. Overview:
  4. =========
  5. HiNIC is a network interface card for the Data Center Area.
  6. The driver supports a range of link-speed devices (10GbE, 25GbE, 40GbE, etc.).
  7. The driver supports also a negotiated and extendable feature set.
  8. Some HiNIC devices support SR-IOV. This driver is used for Physical Function
  9. (PF).
  10. HiNIC devices support MSI-X interrupt vector for each Tx/Rx queue and
  11. adaptive interrupt moderation.
  12. HiNIC devices support also various offload features such as checksum offload,
  13. TCP Transmit Segmentation Offload(TSO), Receive-Side Scaling(RSS) and
  14. LRO(Large Receive Offload).
  15. Supported PCI vendor ID/device IDs:
  16. ===================================
  17. 19e5:1822 - HiNIC PF
  18. Driver Architecture and Source Code:
  19. ====================================
  20. hinic_dev - Implement a Logical Network device that is independent from
  21. specific HW details about HW data structure formats.
  22. hinic_hwdev - Implement the HW details of the device and include the components
  23. for accessing the PCI NIC.
  24. hinic_hwdev contains the following components:
  25. ===============================================
  26. HW Interface:
  27. =============
  28. The interface for accessing the pci device (DMA memory and PCI BARs).
  29. (hinic_hw_if.c, hinic_hw_if.h)
  30. Configuration Status Registers Area that describes the HW Registers on the
  31. configuration and status BAR0. (hinic_hw_csr.h)
  32. MGMT components:
  33. ================
  34. Asynchronous Event Queues(AEQs) - The event queues for receiving messages from
  35. the MGMT modules on the cards. (hinic_hw_eqs.c, hinic_hw_eqs.h)
  36. Application Programmable Interface commands(API CMD) - Interface for sending
  37. MGMT commands to the card. (hinic_hw_api_cmd.c, hinic_hw_api_cmd.h)
  38. Management (MGMT) - the PF to MGMT channel that uses API CMD for sending MGMT
  39. commands to the card and receives notifications from the MGMT modules on the
  40. card by AEQs. Also set the addresses of the IO CMDQs in HW.
  41. (hinic_hw_mgmt.c, hinic_hw_mgmt.h)
  42. IO components:
  43. ==============
  44. Completion Event Queues(CEQs) - The completion Event Queues that describe IO
  45. tasks that are finished. (hinic_hw_eqs.c, hinic_hw_eqs.h)
  46. Work Queues(WQ) - Contain the memory and operations for use by CMD queues and
  47. the Queue Pairs. The WQ is a Memory Block in a Page. The Block contains
  48. pointers to Memory Areas that are the Memory for the Work Queue Elements(WQEs).
  49. (hinic_hw_wq.c, hinic_hw_wq.h)
  50. Command Queues(CMDQ) - The queues for sending commands for IO management and is
  51. used to set the QPs addresses in HW. The commands completion events are
  52. accumulated on the CEQ that is configured to receive the CMDQ completion events.
  53. (hinic_hw_cmdq.c, hinic_hw_cmdq.h)
  54. Queue Pairs(QPs) - The HW Receive and Send queues for Receiving and Transmitting
  55. Data. (hinic_hw_qp.c, hinic_hw_qp.h, hinic_hw_qp_ctxt.h)
  56. IO - de/constructs all the IO components. (hinic_hw_io.c, hinic_hw_io.h)
  57. HW device:
  58. ==========
  59. HW device - de/constructs the HW Interface, the MGMT components on the
  60. initialization of the driver and the IO components on the case of Interface
  61. UP/DOWN Events. (hinic_hw_dev.c, hinic_hw_dev.h)
  62. hinic_dev contains the following components:
  63. ===============================================
  64. PCI ID table - Contains the supported PCI Vendor/Device IDs.
  65. (hinic_pci_tbl.h)
  66. Port Commands - Send commands to the HW device for port management
  67. (MAC, Vlan, MTU, ...). (hinic_port.c, hinic_port.h)
  68. Tx Queues - Logical Tx Queues that use the HW Send Queues for transmit.
  69. The Logical Tx queue is not dependent on the format of the HW Send Queue.
  70. (hinic_tx.c, hinic_tx.h)
  71. Rx Queues - Logical Rx Queues that use the HW Receive Queues for receive.
  72. The Logical Rx queue is not dependent on the format of the HW Receive Queue.
  73. (hinic_rx.c, hinic_rx.h)
  74. hinic_dev - de/constructs the Logical Tx and Rx Queues.
  75. (hinic_main.c, hinic_dev.h)
  76. Miscellaneous:
  77. =============
  78. Common functions that are used by HW and Logical Device.
  79. (hinic_common.c, hinic_common.h)
  80. Support
  81. =======
  82. If an issue is identified with the released source code on the supported kernel
  83. with a supported adapter, email the specific information related to the issue to
  84. aviad.krawczyk@huawei.com.