Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jun 2016 13:28:28 +0200 (CEST)
From:      tom.barbette@ulg.ac.be
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        "Andrey V. Elsukov" <bu7cher@yandex.ru>,  Andrew Vylegzhanin <avv314@gmail.com>, freebsd-net@freebsd.org,  Ryan Stone <rysto32@gmail.com>
Subject:   Re: Is netmap jumbo frames broken in STABLE?
Message-ID:  <1502708678.10983095.1465385308094.JavaMail.zimbra@ulg.ac.be>
In-Reply-To: <CA%2BhQ2%2Bjtd9FGuaJfJ6N1yt2%2BjSkez8Bj1usjpO%2BBCt-3Yvx2ww@mail.gmail.com>
References:  <CA%2BBi_YhqCnt5pQ_hC5zWdBp24=Zn3Rcj29AwtMrguPhSoJZSdQ@mail.gmail.com> <CA%2BhQ2%2BjcT_E4osrTB00%2Bf0gwSCoG_Zy%2BVdU8LXndqsjnmxPQ3Q@mail.gmail.com> <CAFMmRNy=PEFOxM4tGM7TQqpMnhTba17ACiaOcfuG8fkDET0RZw@mail.gmail.com> <CA%2BBi_YiqcOTw7T_dDzjis8yFu7oGd8G-av2BEaStXFiU7ovUCw@mail.gmail.com> <5756C17D.1090409@yandex.ru> <CA%2BhQ2%2Bjtd9FGuaJfJ6N1yt2%2BjSkez8Bj1usjpO%2BBCt-3Yvx2ww@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

Support for fragmented packets with ixgbe was recently added on the linux version of Netmap :

https://github.com/luigirizzo/netmap/commit/fc1e77560a8a8ea93cc3594de5fae94334debcd3

I think the change for freebsd would be quite the same looking at https://github.com/freebsd/freebsd/blob/master/sys/dev/netmap/ixgbe_netmap.h#L396

After that, your userspace application simply have to check for the NS_MOREFRAG flag in the receive ring, and if it's set he knows the end of the packet will follow in the next buf.

Tom


home | help

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