Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rdmap message to be splited into two segments on receiver #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/urdmad/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,11 @@ usiw_port_init(struct usiw_port *iface, struct usiw_port_config *port_config)
mbuf_size = RTE_PKTMBUF_HEADROOM + port_config->mtu
+ ETHER_HDR_LEN + ETHER_CRC_LEN + urdma_vlan_space;

/* Some NICs (e.g. ixgbe) need at least 2KB buffer to RX standard
* Ethernet frame without splitting it into multiple segments. */
mbuf_size = mbuf_size > RTE_MBUF_DEFAULT_BUF_SIZE ?
mbuf_size : RTE_MBUF_DEFAULT_BUF_SIZE;

snprintf(name, RTE_MEMPOOL_NAMESIZE,
"port_%u_rx_mempool", iface->portid);
RTE_LOG(DEBUG, USER1, "create rx mempool for port %" PRIu16 " with %u mbufs of size %zu\n",
Expand Down