Introduce m_get3() which is similar to m_get2(), but can allocate up to
MJUM16BYTES bytes (m_get2() can only allocate up to MJUMPAGESIZE).
This simplifies the bpf improvement in f13da24715.
Suggested by: glebius
Differential D31455
Introduce m_get3() kp on Aug 7 2021, 8:05 PM. Authored by Tags None Referenced Files
Details
Introduce m_get3() which is similar to m_get2(), but can allocate up to This simplifies the bpf improvement in f13da24715. Suggested by: glebius
Diff Detail
Event TimelineComment Actions Please do not introduce new usages of mbuf clusters > PAGE_SIZE into Comment Actions This particular use case (in f13da24715a7) is for bpf, so not directly in the data path, and it shouldn't be allocating millions of times per second. I suppose that does form a good argument for not extending m_get2() rather than having an m_get3() (or keeping the current bpf approach of m_get2()/m_getjcl()). |