opnsense-src/sys/dev/mlx5
Hans Petter Selasky 7d69d339ad Fix mlx5en(4) driver to properly call m_defrag().
When the mlx5en(4) driver was converted to using BUSDMA(9) the call to
m_defrag() was moved after the part of the TX routine that strips the
header from the mbuf chain. Before it called m_defrag it first trimmed
off the now-empty mbufs from the start of the chain. This has the side
effect of also removing the head of the chain that has M_PKTHDR set.
m_defrag() will not defrag a chain that does not have M_PKTHDR set,
thus it was effectively never defragging the mbuf chains.

As it turns out, trimming the mbufs in this fashion is unnecessary since
the call to bus_dmamap_load_mbuf_sg doesn't map empty mbufs anyway, so
remove it.

Differential Revision:	https://reviews.freebsd.org/D12050
Submitted by:	mjoras@
MFC after:	1 week
Sponsored by:	Mellanox Technologies
2018-03-08 15:53:04 +00:00
..
mlx5_core Add kernel and userspace code to dump the firmware state of supported 2018-03-08 15:21:56 +00:00
mlx5_en Fix mlx5en(4) driver to properly call m_defrag(). 2018-03-08 15:53:04 +00:00
mlx5_ib Add support for explicit congestion notification, ECN, to mlx5ib(4). 2018-03-08 11:23:14 +00:00
cmd.h Remove duplicate prototypes. 2018-03-08 15:37:09 +00:00
cq.h Use the autogenerated interface file for all commands in mlx5core. 2018-03-08 10:43:42 +00:00
device.h Add vendor specific capability interface support in mlx5core. 2018-03-08 11:59:47 +00:00
diagnostics.h Make "desc" pointer non-constant inside the mlx5_core_diagnostics_entry 2017-01-30 08:35:15 +00:00
doorbell.h
driver.h Add kernel and userspace code to dump the firmware state of supported 2018-03-08 15:21:56 +00:00
fs.h Refactor the flowsteering APIs used by mlx5en(4). This change is needed by 2017-11-10 09:49:08 +00:00
mlx5_ifc.h Add vendor specific capability interface support in mlx5core. 2018-03-08 11:59:47 +00:00
mlx5_rdma_if.h
mlx5io.h Add kernel and userspace code to dump the firmware state of supported 2018-03-08 15:21:56 +00:00
port.h Add support for per priority flow control, PFC, to mlx5en(4). 2018-03-08 11:40:39 +00:00
qp.h Use the autogenerated interface file for all commands in mlx5core. 2018-03-08 10:43:42 +00:00
srq.h Use the autogenerated interface file for all commands in mlx5core. 2018-03-08 10:43:42 +00:00
vport.h Add API function to query port performance counters for infiniband and RoCE 2017-11-10 13:58:49 +00:00