Home
last modified time | relevance | path

Searched refs:vhdrlen (Results 1 – 2 of 2) sorted by relevance

/freebsd/usr.sbin/bhyve/
H A Dpci_virtio_net.c124 size_t vhdrlen; member
241 int prepend_hdr_len = sc->vhdrlen - sc->be_vhdrlen; in pci_vtnet_rx()
445 if (sc->vhdrlen != sc->be_vhdrlen) { in pci_vtnet_proctx()
451 siov = iov_trim_hdr(siov, &n, sc->vhdrlen); in pci_vtnet_proctx()
656 sc->vhdrlen = sizeof(struct virtio_net_rxhdr) - 2; in pci_vtnet_init()
715 sc->vhdrlen = sizeof(struct virtio_net_rxhdr); in pci_vtnet_neg_features()
722 sc->vhdrlen = sizeof(struct virtio_net_rxhdr) - 2; in pci_vtnet_neg_features()
727 netbe_set_cap(sc->vsc_be, negotiated_features, sc->vhdrlen); in pci_vtnet_neg_features()
729 assert(sc->be_vhdrlen == 0 || sc->be_vhdrlen == sc->vhdrlen); in pci_vtnet_neg_features()
795 SNAPSHOT_VAR_OR_LEAVE(sc->vhdrlen, meta, ret, done); in pci_vtnet_snapshot()
/freebsd/sys/net/
H A Dif_tuntap.c243 static void tun_vnethdr_set(struct ifnet *ifp, int vhdrlen);
1254 tun_vnethdr_set(struct ifnet *ifp, int vhdrlen) in tun_vnethdr_set() argument
1260 if (tp->tun_vhdrlen == vhdrlen) in tun_vnethdr_set()
1268 if (vhdrlen != 0) in tun_vnethdr_set()
1280 tp->tun_vhdrlen = vhdrlen; in tun_vnethdr_set()
1283 vhdrlen, ifp->if_capabilities); in tun_vnethdr_set()
1875 int align, vhdrlen, error;
1890 vhdrlen = tp->tun_vhdrlen; in tunwrite()
1894 mru += vhdrlen; in tunwrite()
1902 if (vhdrlen > in tunwrite()
1884 int align, vhdrlen, error; tunwrite() local
[all...]