DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] [DPDK memory] mbuf max size is restricted to 65535, how can we buffer bigger than 65535?
@ 2020-12-17  5:53 Wu, Jianyue (NSB - CN/Hangzhou)
  2020-12-17  6:25 ` Wu, Jianyue (NSB - CN/Hangzhou)
  0 siblings, 1 reply; 2+ messages in thread
From: Wu, Jianyue (NSB - CN/Hangzhou) @ 2020-12-17  5:53 UTC (permalink / raw)
  To: users

Hi, DPDK experts,

Now mbuf data_len is only uint16_t, can't exceed 65535, we have a scenario which need to use buffer bigger than 65535, how can we use it? Thanks in advance!


#define rte_pktmbuf_data_len<https://grok.pscloud.emea.nsn-net.net/s?refs=rte_pktmbuf_data_len&project=UPHWAPI.master>(m<https://grok.pscloud.emea.nsn-net.net/s?refs=m&project=UPHWAPI.master>) ((m<https://grok.pscloud.emea.nsn-net.net/s?defs=m&project=UPHWAPI.master>)->data_len<https://grok.pscloud.emea.nsn-net.net/xref/UPHWAPI.master/SCI_Interface_XEON/os/sys-root/x86_64-pc-linux-gnu/usr/include/dpdk/rte_mbuf.h#data_len>)
uint16_t data_len<https://doc.dpdk.org/api-2.2/structrte__mbuf.html#ad1a572736a10ff6b282c5f43c4ea1ccf>;
https://doc.dpdk.org/api-2.2/rte__mbuf_8h_source.html

Now mbuf alloc has no problem, can get buffer bigger than 65535.

Best Regards,
Dave(Jianyue)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] [DPDK memory] mbuf max size is restricted to 65535, how can we buffer bigger than 65535?
  2020-12-17  5:53 [dpdk-users] [DPDK memory] mbuf max size is restricted to 65535, how can we buffer bigger than 65535? Wu, Jianyue (NSB - CN/Hangzhou)
@ 2020-12-17  6:25 ` Wu, Jianyue (NSB - CN/Hangzhou)
  0 siblings, 0 replies; 2+ messages in thread
From: Wu, Jianyue (NSB - CN/Hangzhou) @ 2020-12-17  6:25 UTC (permalink / raw)
  To: users

I have tried to do alloc with 120K buffer, which is larger than 65535, it is fine, but when do get data_len, it will report error.
The scenario is for sending and receiving bigger packets than 65535 in ethernet.
Thanks😊

Best Regards,
Dave(Jianyue)

From: Wu, Jianyue (NSB - CN/Hangzhou)
Sent: 2020年12月17日 13:54
To: 'users@dpdk.org' <users@dpdk.org>
Subject: [DPDK memory] mbuf max size is restricted to 65535, how can we buffer bigger than 65535?

Hi, DPDK experts,

Now mbuf data_len is only uint16_t, can’t exceed 65535, we have a scenario which need to use buffer bigger than 65535, how can we use it? Thanks in advance!


#define rte_pktmbuf_data_len<https://grok.pscloud.emea.nsn-net.net/s?refs=rte_pktmbuf_data_len&project=UPHWAPI.master>(m<https://grok.pscloud.emea.nsn-net.net/s?refs=m&project=UPHWAPI.master>) ((m<https://grok.pscloud.emea.nsn-net.net/s?defs=m&project=UPHWAPI.master>)->data_len<https://grok.pscloud.emea.nsn-net.net/xref/UPHWAPI.master/SCI_Interface_XEON/os/sys-root/x86_64-pc-linux-gnu/usr/include/dpdk/rte_mbuf.h#data_len>)
uint16_t data_len<https://doc.dpdk.org/api-2.2/structrte__mbuf.html#ad1a572736a10ff6b282c5f43c4ea1ccf>;
https://doc.dpdk.org/api-2.2/rte__mbuf_8h_source.html

Now mbuf alloc has no problem, can get buffer bigger than 65535.

Best Regards,
Dave(Jianyue)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-17  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17  5:53 [dpdk-users] [DPDK memory] mbuf max size is restricted to 65535, how can we buffer bigger than 65535? Wu, Jianyue (NSB - CN/Hangzhou)
2020-12-17  6:25 ` Wu, Jianyue (NSB - CN/Hangzhou)

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git