freebsd-nq/sys/dev/cxgbe/iw_cxgbe
John Baldwin fe2ebb7644 Add support for configuring additional virtual interfaces (VIs) on a port.
Each virtual interface has its own MAC address, queues, and statistics.
The dedicated netmap interfaces (ncxgbeX / ncxlX) were already implemented
as additional VIs on each port.  This change allows additional non-netmap
interfaces to be configured on each port.  Additional virtual interfaces
use the naming scheme vcxgbeX or vcxlX.

Additional VIs are enabled by setting the hw.cxgbe.num_vis tunable to a
value greater than 1 before loading the cxgbe(4) or cxl(4) driver.
NB: The first VI on each port is the "main" interface (cxgbeX or cxlX).

T4/T5 NICs provide a limited number of MAC addresses for each physical port.
As a result, a maximum of six VIs can be configured on each port (including
the "main" interface and the netmap interface when netmap is enabled).

One user-visible result is that when netmap is enabled, packets received
or transmitted via the netmap interface are no longer counted in the stats
for the "main" interface, but are not accounted to the netmap interface.

The netmap interfaces now also have a new-bus device and export various
information sysctl nodes via dev.n(cxgbe|cxl).X.

The cxgbetool 'clearstats' command clears the stats for all VIs on the
specified port along with the port's stats.  There is currently no way to
clear the stats of an individual VI.

Reviewed by:	np
MFC after:	1 month
Sponsored by:	Chelsio
2015-12-03 00:02:01 +00:00
..
cm.c iw_cxgbe: use correct RFC number. 2015-10-14 23:29:19 +00:00
cq.c Update the infiniband stack to Mellanox's OFED version 2.1. 2015-02-17 08:40:27 +00:00
device.c Rename linuxapi[.ko] into linuxkpi[.ko], to reflect that it is a 2015-10-22 09:50:45 +00:00
ev.c
id_table.c
iw_cxgbe.h Merge LinuxKPI changes from DragonflyBSD: 2015-10-19 12:26:38 +00:00
mem.c Update the infiniband stack to Mellanox's OFED version 2.1. 2015-02-17 08:40:27 +00:00
provider.c Add support for configuring additional virtual interfaces (VIs) on a port. 2015-12-03 00:02:01 +00:00
qp.c Merge LinuxKPI changes from DragonflyBSD: 2015-10-19 12:26:38 +00:00
resource.c
t4.h
user.h