Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2008 22:00:09 +0300
From:      "Mr Y" <yonyossef.lists@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   mbuf chains / records in networking
Message-ID:  <20def4870804151200u49f54563scabd8c19460c20b5@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm porting an Ethernet driver LRO mechanism (Large Recieve Offload) from
Linux to FreeBSD.

I learned a bit about mbuf chains and records, but i couldn't understand
whether the OS is capable of "eating" a whole mbuf record (mbuf linked using
m_cat, by their m_nextpkt pointer) on the RX side.

Can I simply concat my incoming network mbufs, each one with his own TCP/IP
headers, and push the whole record up the stack in one operation?
or should I strip all the packets and build a single TCP/IP header in the
first mbuf before I push the record up?

Thanks
-Yony



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20def4870804151200u49f54563scabd8c19460c20b5>