]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: netmap: add support for NS_MOREFRAG
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Sun, 24 Jan 2021 21:12:41 +0000 (21:12 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Sun, 31 Jan 2021 08:51:36 +0000 (08:51 +0000)
commit9c5418f00836b997561e3956fc18b7ecc7eccdc1
treece749a553a0f590c26540a2772140da50ba6ccb3
parent2df415116eee92232f775cd29ff2c30ff555c201
iflib: netmap: add support for NS_MOREFRAG

The NS_MOREFRAG flag can be set in a netmap slot to represent a
multi-fragment packet. Only the last fragment of a packet does
not have the flag set. On TX rings, the flag may be set by the
userspace application. The kernel will look at the flag and use it
to properly set up the NIC TX descriptors.
On RX rings, the kernel may set the flag if the packet received
was split across multiple netmap buffers. The userspace application
should look at the flag to know when the packet is complete.

Submitted by: rajesh1.kumar_amd.com
Reviewed by: vmaffione
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D27799

(cherry picked from commit aceaccab659c9eb846fb21ff99be34434a9616c7)
sys/net/iflib.c