opnsense-src/sys/dev/nvmf
John Baldwin bedfac1f02 nvmf_tcp: Fully honor kern.nvmf.tcp.max_transmit_data for C2H_DATA PDUs
The previous version of tcp_send_controller_data avoided sending a
chain of multiple mbufs that exceeded the limit, but if an individual
mbuf was larger than the limit it was sent as a single, over-sized
PDU.  Fix by using m_split() to split individual mbufs larger than the
limit.

Note that this is not a protocol error, per se, as there is no limit
on C2H_DATA PDU lengths (unlike the MAXH2CDATA parameter).  This fix
just honors the administrative limit more faithfully.  This case is
also very unlikely with the default limit of 256k.

Sponsored by:	Chelsio Communications
2024-09-05 17:14:36 -04:00
..
controller nvmfd/nvmft: Fix a typo "whiled" -> "while" 2024-09-03 16:12:04 -04:00
host nvmf: Use device_set_descf() 2024-06-16 16:37:26 -04:00
nvmf.h nvmf.h: New header defining ioctls for NVMe over Fabrics 2024-05-02 16:27:13 -07:00
nvmf_proto.h nvmf: Add explicit alignment for struct nvmf_fabric_cmd 2024-05-06 15:19:39 -07:00
nvmf_tcp.c nvmf_tcp: Fully honor kern.nvmf.tcp.max_transmit_data for C2H_DATA PDUs 2024-09-05 17:14:36 -04:00
nvmf_tcp.h nvmf_tcp: Don't require a data digest for PDUs without data 2024-07-22 17:05:55 -04:00
nvmf_transport.c nvmf_transport: Remove invalid assertion 2024-05-10 09:13:40 -07:00
nvmf_transport.h nvmf: Add infrastructure kernel module for NVMe over Fabrics 2024-05-02 16:28:32 -07:00
nvmf_transport_internal.h nvmf: Add infrastructure kernel module for NVMe over Fabrics 2024-05-02 16:28:32 -07:00