|
| 1 | +.\"- |
| 2 | +.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD |
| 3 | +.\" |
| 4 | +.\" Copyright (c) 2020 Denis Salopek |
| 5 | +.\" |
| 6 | +.\" Redistribution and use in source and binary forms, with or without |
| 7 | +.\" modification, are permitted provided that the following conditions |
| 8 | +.\" are met: |
| 9 | +.\" 1. Redistributions of source code must retain the above copyright |
| 10 | +.\" notice, this list of conditions and the following disclaimer. |
| 11 | +.\" 2. Redistributions in binary form must reproduce the above copyright |
| 12 | +.\" notice, this list of conditions and the following disclaimer in the |
| 13 | +.\" documentation and/or other materials provided with the distribution. |
| 14 | +.\" |
| 15 | +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 16 | +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 17 | +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 18 | +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 19 | +.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 20 | +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 21 | +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 22 | +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 23 | +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 24 | +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 25 | +.\" POSSIBILITY OF SUCH DAMAGE. |
| 26 | +.\" |
| 27 | +.\" $FreeBSD$ |
| 28 | +.\" |
| 29 | +.Dd August 30, 2020 |
| 30 | +.Dt SUME 4 |
| 31 | +.Os |
| 32 | +.Sh NAME |
| 33 | +.Nm sume |
| 34 | +.Nd "NetFPGA SUME 4x10Gb Ethernet driver" |
| 35 | +.Sh SYNOPSIS |
| 36 | +To compile this driver into the kernel, place the following lines |
| 37 | +in your kernel configuration file: |
| 38 | +.Bd -ragged -offset indent |
| 39 | +.Cd "device sume" |
| 40 | +.Ed |
| 41 | +.Pp |
| 42 | +Alternatively, to load the driver as a module at boot time, place |
| 43 | +the following line in |
| 44 | +.Xr loader.conf 5 : |
| 45 | +.Bd -literal -offset indent |
| 46 | +if_sume_load="YES" |
| 47 | +.Ed |
| 48 | +.Sh DESCRIPTION |
| 49 | +The |
| 50 | +.Nm |
| 51 | +driver provides support for NetFPGA SUME Virtex-7 FPGA Development Board |
| 52 | +with the reference NIC bitstream loaded onto it. |
| 53 | +The HDL design for the reference NIC project uses the RIFFA based DMA |
| 54 | +engine to communicate with the host machine over PCIe. |
| 55 | +Every packet is transmitted to / from the board via a single DMA |
| 56 | +transaction, taking up to two or three interrupts per one transaction |
| 57 | +which yields low performance. |
| 58 | +.Pp |
| 59 | +There is no support for Jumbo frames as the hardware is capable of |
| 60 | +dealing only with frames with maximum size of 1514 bytes. |
| 61 | +The hardware does not support multicast filtering, provides no checksums, |
| 62 | +and offers no other offloading. |
| 63 | +.Sh SEE ALSO |
| 64 | +.Xr arp 4 , |
| 65 | +.Xr netgraph 4 , |
| 66 | +.Xr netintro 4 , |
| 67 | +.Xr ng_ether 4 , |
| 68 | +.Xr vlan 4 , |
| 69 | +.Xr ifconfig 8 |
| 70 | +.Sh AUTHORS |
| 71 | +The Linux |
| 72 | +.Nm |
| 73 | +driver was originally written by |
| 74 | +.An -nosplit |
| 75 | +.An Bjoern A. Zeeb . |
| 76 | +The |
| 77 | +.Fx version and this manual page were written by |
| 78 | +.An Denis Salopek |
| 79 | +as a GSoC project. |
| 80 | +More information about the project can be found here: |
| 81 | +.Pa https://wiki.freebsd.org/SummerOfCode2020Projects/NetFPGA_SUME_Driver |
| 82 | +.Sh BUGS |
| 83 | +The reference NIC hardware design provides no mechanism for quiescing |
| 84 | +inbound traffic from interfaces configured as DOWN. |
| 85 | +All packets from administratively disabled interfaces are transferred to |
| 86 | +main memory, leaving the driver with the task of dropping such packets, |
| 87 | +thus consuming PCI bandwidth, interrupts and CPU cycles in vain. |
| 88 | +.Pp |
| 89 | +Pre-built FPGA bitstream from the NetFPGA project may not work correctly. |
| 90 | +At higher RX packet rates, the newly incoming packets can overwrite the |
| 91 | +ones in an internal FIFO so the packets would arrive in main memory |
| 92 | +corrupted, until a physical reset of the board. |
| 93 | +.Pp |
| 94 | +Occasionally, the driver can get stuck in a non-IDLE TX state due to |
| 95 | +a missed interrupt. |
| 96 | +The driver includes a watchdog function which monitors for such a |
| 97 | +condition and resets the board automatically. |
| 98 | +For more details, visit the NetFPGA SUME project site. |
0 commit comments