DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  Need comment on 82599 TSO
@ 2013-10-04 12:44 jigsaw
  2013-10-04 16:41 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: jigsaw @ 2013-10-04 12:44 UTC (permalink / raw)
  To: dev

Hi,

I'm working on TSO for 82599, and encounter a problem: nowhere to store MSS.

TSO must be aware of MSS, or gso in skb of kernel.
But MSS nees 16 bits per mbuf. And we have no spare 16 bits in
rte_mbuf or rte_pktmbuf.
If we add 16 bit field in rte_pktmbuf, the size of rte_mbuf will be
doubled, coz currently the size is at the edge of cacheline(32 byte).

I have two solutions here:

1. Store MSS in struct rte_eth_conf.
This is actually a very bad idea, coz MSS is not bound to device.

2. Turn on and off TSO with rte_ctrlmbuf.
I found that rte_ctrlmbuf is not used at all. So it could be the first
use case of it.
With rte_ctrlmbuf we have enough space to store MSS.

Looking forward to your comments.

thx &
rgds,
-Qinglai

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

end of thread, other threads:[~2013-10-04 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-04 12:44 [dpdk-dev] Need comment on 82599 TSO jigsaw
2013-10-04 16:41 ` Stephen Hemminger
2013-10-04 17:28   ` jigsaw
2013-10-04 18:09   ` Venkatesan, Venky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).