ionic.rst 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. ========================================================
  3. Linux Driver for the Pensando(R) Ethernet adapter family
  4. ========================================================
  5. Pensando Linux Ethernet driver.
  6. Copyright(c) 2019 Pensando Systems, Inc
  7. Contents
  8. ========
  9. - Identifying the Adapter
  10. - Enabling the driver
  11. - Configuring the driver
  12. - Statistics
  13. - Support
  14. Identifying the Adapter
  15. =======================
  16. To find if one or more Pensando PCI Ethernet devices are installed on the
  17. host, check for the PCI devices::
  18. $ lspci -d 1dd8:
  19. b5:00.0 Ethernet controller: Device 1dd8:1002
  20. b6:00.0 Ethernet controller: Device 1dd8:1002
  21. If such devices are listed as above, then the ionic.ko driver should find
  22. and configure them for use. There should be log entries in the kernel
  23. messages such as these::
  24. $ dmesg | grep ionic
  25. ionic 0000:b5:00.0: 126.016 Gb/s available PCIe bandwidth (8.0 GT/s PCIe x16 link)
  26. ionic 0000:b5:00.0 enp181s0: renamed from eth0
  27. ionic 0000:b5:00.0 enp181s0: Link up - 100 Gbps
  28. ionic 0000:b6:00.0: 126.016 Gb/s available PCIe bandwidth (8.0 GT/s PCIe x16 link)
  29. ionic 0000:b6:00.0 enp182s0: renamed from eth0
  30. ionic 0000:b6:00.0 enp182s0: Link up - 100 Gbps
  31. Driver and firmware version information can be gathered with either of
  32. ethtool or devlink tools::
  33. $ ethtool -i enp181s0
  34. driver: ionic
  35. version: 5.7.0
  36. firmware-version: 1.8.0-28
  37. ...
  38. $ devlink dev info pci/0000:b5:00.0
  39. pci/0000:b5:00.0:
  40. driver ionic
  41. serial_number FLM18420073
  42. versions:
  43. fixed:
  44. asic.id 0x0
  45. asic.rev 0x0
  46. running:
  47. fw 1.8.0-28
  48. See Documentation/networking/devlink/ionic.rst for more information
  49. on the devlink dev info data.
  50. Enabling the driver
  51. ===================
  52. The driver is enabled via the standard kernel configuration system,
  53. using the make command::
  54. make oldconfig/menuconfig/etc.
  55. The driver is located in the menu structure at:
  56. -> Device Drivers
  57. -> Network device support (NETDEVICES [=y])
  58. -> Ethernet driver support
  59. -> Pensando devices
  60. -> Pensando Ethernet IONIC Support
  61. Configuring the Driver
  62. ======================
  63. MTU
  64. ---
  65. Jumbo frame support is available with a maximum size of 9194 bytes.
  66. Interrupt coalescing
  67. --------------------
  68. Interrupt coalescing can be configured by changing the rx-usecs value with
  69. the "ethtool -C" command. The rx-usecs range is 0-190. The tx-usecs value
  70. reflects the rx-usecs value as they are tied together on the same interrupt.
  71. SR-IOV
  72. ------
  73. Minimal SR-IOV support is currently offered and can be enabled by setting
  74. the sysfs 'sriov_numvfs' value, if supported by your particular firmware
  75. configuration.
  76. XDP
  77. ---
  78. Support for XDP includes the basics, plus Jumbo frames, Redirect and
  79. ndo_xmit. There is no current support for zero-copy sockets or HW offload.
  80. Statistics
  81. ==========
  82. Basic hardware stats
  83. --------------------
  84. The commands ``netstat -i``, ``ip -s link show``, and ``ifconfig`` show
  85. a limited set of statistics taken directly from firmware. For example::
  86. $ ip -s link show enp181s0
  87. 7: enp181s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
  88. link/ether 00:ae:cd:00:07:68 brd ff:ff:ff:ff:ff:ff
  89. RX: bytes packets errors dropped overrun mcast
  90. 414 5 0 0 0 0
  91. TX: bytes packets errors dropped carrier collsns
  92. 1384 18 0 0 0 0
  93. ethtool -S
  94. ----------
  95. The statistics shown from the ``ethtool -S`` command includes a combination of
  96. driver counters and firmware counters, including port and queue specific values.
  97. The driver values are counters computed by the driver, and the firmware values
  98. are gathered by the firmware from the port hardware and passed through the
  99. driver with no further interpretation.
  100. Driver port specific::
  101. tx_packets: 12
  102. tx_bytes: 964
  103. rx_packets: 5
  104. rx_bytes: 414
  105. tx_tso: 0
  106. tx_tso_bytes: 0
  107. tx_csum_none: 12
  108. tx_csum: 0
  109. rx_csum_none: 0
  110. rx_csum_complete: 3
  111. rx_csum_error: 0
  112. xdp_drop: 0
  113. xdp_aborted: 0
  114. xdp_pass: 0
  115. xdp_tx: 0
  116. xdp_redirect: 0
  117. xdp_frames: 0
  118. Driver queue specific::
  119. tx_0_pkts: 3
  120. tx_0_bytes: 294
  121. tx_0_clean: 3
  122. tx_0_dma_map_err: 0
  123. tx_0_linearize: 0
  124. tx_0_frags: 0
  125. tx_0_tso: 0
  126. tx_0_tso_bytes: 0
  127. tx_0_hwstamp_valid: 0
  128. tx_0_hwstamp_invalid: 0
  129. tx_0_csum_none: 3
  130. tx_0_csum: 0
  131. tx_0_vlan_inserted: 0
  132. tx_0_xdp_frames: 0
  133. rx_0_pkts: 2
  134. rx_0_bytes: 120
  135. rx_0_dma_map_err: 0
  136. rx_0_alloc_err: 0
  137. rx_0_csum_none: 0
  138. rx_0_csum_complete: 0
  139. rx_0_csum_error: 0
  140. rx_0_hwstamp_valid: 0
  141. rx_0_hwstamp_invalid: 0
  142. rx_0_dropped: 0
  143. rx_0_vlan_stripped: 0
  144. rx_0_xdp_drop: 0
  145. rx_0_xdp_aborted: 0
  146. rx_0_xdp_pass: 0
  147. rx_0_xdp_tx: 0
  148. rx_0_xdp_redirect: 0
  149. Firmware port specific::
  150. hw_tx_dropped: 0
  151. hw_rx_dropped: 0
  152. hw_rx_over_errors: 0
  153. hw_rx_missed_errors: 0
  154. hw_tx_aborted_errors: 0
  155. frames_rx_ok: 15
  156. frames_rx_all: 15
  157. frames_rx_bad_fcs: 0
  158. frames_rx_bad_all: 0
  159. octets_rx_ok: 1290
  160. octets_rx_all: 1290
  161. frames_rx_unicast: 10
  162. frames_rx_multicast: 5
  163. frames_rx_broadcast: 0
  164. frames_rx_pause: 0
  165. frames_rx_bad_length: 0
  166. frames_rx_undersized: 0
  167. frames_rx_oversized: 0
  168. frames_rx_fragments: 0
  169. frames_rx_jabber: 0
  170. frames_rx_pripause: 0
  171. frames_rx_stomped_crc: 0
  172. frames_rx_too_long: 0
  173. frames_rx_vlan_good: 3
  174. frames_rx_dropped: 0
  175. frames_rx_less_than_64b: 0
  176. frames_rx_64b: 4
  177. frames_rx_65b_127b: 11
  178. frames_rx_128b_255b: 0
  179. frames_rx_256b_511b: 0
  180. frames_rx_512b_1023b: 0
  181. frames_rx_1024b_1518b: 0
  182. frames_rx_1519b_2047b: 0
  183. frames_rx_2048b_4095b: 0
  184. frames_rx_4096b_8191b: 0
  185. frames_rx_8192b_9215b: 0
  186. frames_rx_other: 0
  187. frames_tx_ok: 31
  188. frames_tx_all: 31
  189. frames_tx_bad: 0
  190. octets_tx_ok: 2614
  191. octets_tx_total: 2614
  192. frames_tx_unicast: 8
  193. frames_tx_multicast: 21
  194. frames_tx_broadcast: 2
  195. frames_tx_pause: 0
  196. frames_tx_pripause: 0
  197. frames_tx_vlan: 0
  198. frames_tx_less_than_64b: 0
  199. frames_tx_64b: 4
  200. frames_tx_65b_127b: 27
  201. frames_tx_128b_255b: 0
  202. frames_tx_256b_511b: 0
  203. frames_tx_512b_1023b: 0
  204. frames_tx_1024b_1518b: 0
  205. frames_tx_1519b_2047b: 0
  206. frames_tx_2048b_4095b: 0
  207. frames_tx_4096b_8191b: 0
  208. frames_tx_8192b_9215b: 0
  209. frames_tx_other: 0
  210. frames_tx_pri_0: 0
  211. frames_tx_pri_1: 0
  212. frames_tx_pri_2: 0
  213. frames_tx_pri_3: 0
  214. frames_tx_pri_4: 0
  215. frames_tx_pri_5: 0
  216. frames_tx_pri_6: 0
  217. frames_tx_pri_7: 0
  218. frames_rx_pri_0: 0
  219. frames_rx_pri_1: 0
  220. frames_rx_pri_2: 0
  221. frames_rx_pri_3: 0
  222. frames_rx_pri_4: 0
  223. frames_rx_pri_5: 0
  224. frames_rx_pri_6: 0
  225. frames_rx_pri_7: 0
  226. tx_pripause_0_1us_count: 0
  227. tx_pripause_1_1us_count: 0
  228. tx_pripause_2_1us_count: 0
  229. tx_pripause_3_1us_count: 0
  230. tx_pripause_4_1us_count: 0
  231. tx_pripause_5_1us_count: 0
  232. tx_pripause_6_1us_count: 0
  233. tx_pripause_7_1us_count: 0
  234. rx_pripause_0_1us_count: 0
  235. rx_pripause_1_1us_count: 0
  236. rx_pripause_2_1us_count: 0
  237. rx_pripause_3_1us_count: 0
  238. rx_pripause_4_1us_count: 0
  239. rx_pripause_5_1us_count: 0
  240. rx_pripause_6_1us_count: 0
  241. rx_pripause_7_1us_count: 0
  242. rx_pause_1us_count: 0
  243. frames_tx_truncated: 0
  244. Support
  245. =======
  246. For general Linux networking support, please use the netdev mailing
  247. list, which is monitored by Pensando personnel::
  248. netdev@vger.kernel.org
  249. For more specific support needs, please use the Pensando driver support
  250. email::
  251. drivers@pensando.io