freebsd-dev/sys/dev/axgbe
Vincenzo Maffione 2968dde3de axgbe: driver changes for netmap support
AMD 10GbE hardware is designed to have two buffers per receive descriptor to
support split header feature. For this purpose, the driver was designed to use
2 iflib freelists per receive queue. So, that buffers from 2 freelists are used
to refill an entry in the receive descriptor. The current design holds good
with regular data traffic.

But, when netmap comes into play, the current design will not fit in. The
current netmap interfaces and netmap implementation in iflib doesn't seem
to accomodate the design of 2 freelists per receive queue. So, exercising
Netmap capability with inbuilt tools like bridge, pkt-gen doesn't work with
the 2 freelists driver design.

So, the driver design is changed to accomodate the current netmap interfaces
and netmap implementation in iflib by using single freelist per receive queue
approach when Netmap capability is exercised without disturbing the current
2 freelists approach.
The dev.ax.sph_enable tunable can be set to 0 to configure the single
free list mode.

Thanks to Stephan Dewt for his Initial set of code changes for the stated
problem.

Submitted by:	rajesh1.kumar_amd.com
Approved by:	vmaffione
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D27797
2021-01-16 08:29:33 +00:00
..
if_axgbe_pci.c axgbe: driver changes for netmap support 2021-01-16 08:29:33 +00:00
if_axgbe.c
xgbe_osdep.c
xgbe_osdep.h
xgbe-common.h
xgbe-dcb.c
xgbe-desc.c
xgbe-dev.c axgbe: driver changes for netmap support 2021-01-16 08:29:33 +00:00
xgbe-drv.c
xgbe-i2c.c
xgbe-mdio.c [axgbe] Fix compiler warnings in gcc-6.3; perhaps fix a PHY issue 2020-12-03 16:54:59 +00:00
xgbe-phy-v1.c
xgbe-phy-v2.c [axgbe] Fix compiler warnings in gcc-6.3; perhaps fix a PHY issue 2020-12-03 16:54:59 +00:00
xgbe-ptp.c
xgbe-sysctl.c axgbe: driver changes for netmap support 2021-01-16 08:29:33 +00:00
xgbe-txrx.c axgbe: driver changes for netmap support 2021-01-16 08:29:33 +00:00
xgbe.h axgbe: driver changes for netmap support 2021-01-16 08:29:33 +00:00