Lines Matching defs:tag
639 return ENXIO; // No vlan tag set
823 * Mbuf tag KPIs
845 struct m_tag *tag;
860 tag = m_tag_locate(mbuf, id, type, NULL);
861 if (tag != NULL) {
866 tag = m_tag_create(id, type, length, how, mbuf);
867 if (tag == NULL) {
872 m_tag_prepend(mbuf, tag);
873 *data_p = tag + 1;
886 struct m_tag *tag;
902 tag = m_tag_locate(mbuf, id, type, NULL);
903 if (tag == NULL) {
908 *length = tag->m_tag_len;
909 *data_p = tag + 1;
920 struct m_tag *tag;
929 tag = m_tag_locate(mbuf, id, type, NULL);
930 if (tag == NULL) {
934 m_tag_delete(mbuf, tag);
942 * tag-related (m_taghdr + m_tag) as well m_drvaux_tag structs.
953 struct m_tag *tag;
963 if ((tag = m_tag_locate(mbuf, KERNEL_MODULE_TAG_ID,
968 if ((tag = m_tag_create(KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_DRVAUX,
972 p = (struct m_drvaux_tag *)(tag + 1);
977 /* Associate the tag */
978 m_tag_prepend(mbuf, tag);
991 struct m_tag *tag;
998 if ((tag = m_tag_locate(mbuf, KERNEL_MODULE_TAG_ID,
1003 VERIFY(tag->m_tag_len >= sizeof (*p));
1005 p = (struct m_drvaux_tag *)(tag + 1);
1023 struct m_tag *tag;
1028 if ((tag = m_tag_locate(mbuf, KERNEL_MODULE_TAG_ID,
1030 m_tag_delete(mbuf, tag);