Searched refs:vnh (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/uts/intel/io/viona/ |
H A D | viona_hook.c | 44 viona_nethook_t *vnh = &nip->vni_nethook; in viona_hook() local 50 he = out ? vnh->vnh_event_out : vnh->vnh_event_in; in viona_hook() 51 het = out ? vnh->vnh_token_out : vnh->vnh_token_in; in viona_hook() 56 info.hpe_protocol = vnh->vnh_neti; in viona_hook() 62 ret = hook_run(vnh->vnh_neti->netd_hooks, het, (hook_data_t)&info); in viona_hook() 196 viona_nethook_init(netid_t nid, viona_nethook_t *vnh, char *nh_name, in viona_nethook_init() argument 201 if ((vnh->vnh_neti = net_protocol_register(nid, netip)) == NULL) { in viona_nethook_init() 207 HOOK_FAMILY_INIT(&vnh->vnh_family, nh_name); in viona_nethook_init() 208 if ((ret = net_family_register(vnh->vnh_neti, &vnh->vnh_family)) != 0) { in viona_nethook_init() 215 HOOK_EVENT_INIT(&vnh->vnh_event_in, NH_PHYSICAL_IN); in viona_nethook_init() [all …]
|
/illumos-gate/usr/src/uts/common/io/vioif/ |
H A D | vioif.c | 1233 struct virtio_net_hdr *vnh = NULL; in vioif_send() local 1264 vnh = virtio_dma_va(tb->tb_dma, 0); in vioif_send() 1265 bzero(vnh, VIOIF_HEADER_SKIP); in vioif_send() 1305 vnh->vnh_flags = VIRTIO_NET_HDR_F_NEEDS_CSUM; in vioif_send() 1306 vnh->vnh_csum_start = eth_hsize + csum_start; in vioif_send() 1307 vnh->vnh_csum_offset = csum_stuff - csum_start; in vioif_send() 1332 vnh->vnh_gso_type = VIRTIO_NET_HDR_GSO_TCPV4; in vioif_send() 1335 vnh->vnh_gso_type = VIRTIO_NET_HDR_GSO_TCPV6; in vioif_send() 1350 if (MBLKL(mp) < vnh->vnh_hdr_len) { in vioif_send() 1351 pullmp = msgpullup(mp, vnh->vnh_hdr_len); in vioif_send() [all …]
|