> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man4/nvmf_tcp.4.md).

# nvmf\_tcp.4

`nvmf_tcp` — NVM Express over Fabrics 的 TCP 传输

## 名称

`nvmf_tcp`

## 概要

`要将此模块编译进内核，请在内核配置文件中加入以下行：`

> device nvmf\_tcp

`或者，要在引导时以模块方式加载，请在 loader.conf(5) 中加入以下行：`

```sh
nvmf_tcp_load="YES"
```

## 描述

`nvmf_tcp` 模块实现 NVM Express over Fabrics 的软件 TCP/IP 传输。它可由内核内 NVMeoF 主机驱动或控制器使用。

## SYSCTL 变量

以下变量既可作为 [sysctl(8)](/man/man8/sysctl.8.md) 变量，也可作为 [loader(8)](/man/man8/loader.8.md) 可调参数使用：

**`kern.nvmf.tcp.max_transmit_data`** `C2H_DATA` 和 `H2C_DATA` PDU 的最大数据负载大小。远程控制器可通过 `MAXH2CDATA` 参数对 `H2C_DATA` PDU 的大小强制执行更低的限制。默认大小为 256 千字节。

## 参见

[nvmf(4)](/man/man4/nvmf.4.md), [nvmft(4)](/man/man4/nvmft.4.md)

## 历史

`nvmf_tcp` 模块首次出现于 FreeBSD 15.0。

## 作者

`nvmf_tcp` 模块由 John Baldwin <jhb@FreeBSD.org> 在 Chelsio Communications, Inc. 的赞助下开发。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/nvmf_tcp.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
