mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Temporary workaround for the limitations of the mbuf flowid field: zero
the field in the mbuf constructors, since otherwise we have no way to tell if they are valid. In the future, Kip has plans to add a flag specifically to indicate validity, which is the preferred model.
This commit is contained in:
parent
75193d5283
commit
877e88123e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186683
@ -420,6 +420,7 @@ mb_ctor_mbuf(void *mem, int size, void *arg, int how)
|
||||
m->m_pkthdr.csum_data = 0;
|
||||
m->m_pkthdr.tso_segsz = 0;
|
||||
m->m_pkthdr.ether_vtag = 0;
|
||||
m->m_pkthdr.flowid = 0;
|
||||
SLIST_INIT(&m->m_pkthdr.tags);
|
||||
#ifdef MAC
|
||||
/* If the label init fails, fail the alloc */
|
||||
@ -644,6 +645,7 @@ mb_ctor_pack(void *mem, int size, void *arg, int how)
|
||||
m->m_pkthdr.csum_data = 0;
|
||||
m->m_pkthdr.tso_segsz = 0;
|
||||
m->m_pkthdr.ether_vtag = 0;
|
||||
m->m_pkthdr.flowid = 0;
|
||||
SLIST_INIT(&m->m_pkthdr.tags);
|
||||
#ifdef MAC
|
||||
/* If the label init fails, fail the alloc */
|
||||
|
Loading…
Reference in New Issue
Block a user