Home
last modified time | relevance | path

Searched refs:virtio_net_hdr (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/arch/um/drivers/
Dvector_transports.c117 struct virtio_net_hdr *vheader = (struct virtio_net_hdr *) header; in raw_form_header()
199 struct virtio_net_hdr *vheader = (struct virtio_net_hdr *) header; in raw_verify_header()
407 vp->header_size = sizeof(struct virtio_net_hdr); in build_raw_transport_data()
408 vp->rx_header_size = sizeof(struct virtio_net_hdr); in build_raw_transport_data()
426 vp->header_size = sizeof(struct virtio_net_hdr); in build_hybrid_transport_data()
427 vp->rx_header_size = sizeof(struct virtio_net_hdr); in build_hybrid_transport_data()
451 vp->header_size = sizeof(struct virtio_net_hdr); in build_tap_transport_data()
452 vp->rx_header_size = sizeof(struct virtio_net_hdr); in build_tap_transport_data()
Dvector_user.c506 int len = sizeof(struct virtio_net_hdr); in uml_tap_enable_vnet_headers()
/linux-6.1.9/tools/testing/selftests/net/
Dpsock_snd.c50 #define TEST_SZ (sizeof(struct virtio_net_hdr) + ETH_HLEN + ETH_MAX_MTU + 1)
78 struct virtio_net_hdr *vh = header; in build_vnet_header()
189 buf += sizeof(struct virtio_net_hdr); in do_send()
190 len -= sizeof(struct virtio_net_hdr); in do_send()
373 do_rx(fds, total_len - sizeof(struct virtio_net_hdr), in run_test()
374 tbuf + sizeof(struct virtio_net_hdr)); in run_test()
Dtap.c31 #define TEST_PACKET_SZ (sizeof(struct virtio_net_hdr) + ETH_HLEN + ETH_MAX_MTU)
309 struct virtio_net_hdr *vh = (struct virtio_net_hdr *)buf; in build_test_packet_valid_udp_gso()
329 struct virtio_net_hdr *vh = (struct virtio_net_hdr *)buf; in build_test_packet_valid_udp_csum()
346 struct virtio_net_hdr *vh = (struct virtio_net_hdr *)buf; in build_test_packet_crash_tap_invalid_eth_proto()
/linux-6.1.9/include/linux/
Dvirtio_net.h26 const struct virtio_net_hdr *hdr) in virtio_net_hdr_set_proto()
47 const struct virtio_net_hdr *hdr, in virtio_net_hdr_to_skb()
166 struct virtio_net_hdr *hdr, in virtio_net_hdr_from_skb()
Dif_tun.h24 struct virtio_net_hdr gso;
/linux-6.1.9/include/uapi/linux/
Dvirtio_net.h182 struct virtio_net_hdr { struct
196 struct virtio_net_hdr hdr; argument
/linux-6.1.9/drivers/net/
Dtap.c540 q->vnet_hdr_sz = sizeof(struct virtio_net_hdr); in tap_open()
639 struct virtio_net_hdr vnet_hdr = { 0 }; in tap_get_user()
790 struct virtio_net_hdr vnet_hdr; in tap_put_user()
1064 if (s < (int)sizeof(struct virtio_net_hdr)) in tap_ioctl()
1152 struct virtio_net_hdr *gso = &hdr->gso; in tap_get_user_xdp()
Dtun.c1652 struct virtio_net_hdr *hdr, in tun_build_skb()
1743 struct virtio_net_hdr gso = { 0 }; in tun_get_user()
2052 struct virtio_net_hdr gso = { 0 }; in tun_put_user_xdp()
2107 struct virtio_net_hdr gso; in tun_put_user()
2431 struct virtio_net_hdr *gso = &hdr->gso; in tun_xdp_one()
2818 tun->vnet_hdr_sz = sizeof(struct virtio_net_hdr); in tun_set_iff()
3273 if (vnet_hdr_sz < (int)sizeof(struct virtio_net_hdr)) { in __tun_chr_ioctl()
Dvirtio_net.c3845 vi->hdr_len = sizeof(struct virtio_net_hdr); in virtnet_probe()
/linux-6.1.9/drivers/vdpa/vdpa_sim/
Dvdpa_sim_net.c59 sizeof(struct virtio_net_hdr); in receive_filter()
/linux-6.1.9/drivers/platform/mellanox/
Dmlxbf-tmfifo.c376 struct virtio_net_hdr *net_hdr; in mlxbf_tmfifo_init_net_desc()
629 hdr_len = sizeof(struct virtio_net_hdr); in mlxbf_tmfifo_rxtx_header()
659 sizeof(struct virtio_net_hdr) : 0; in mlxbf_tmfifo_rxtx_header()
/linux-6.1.9/net/packet/
Daf_packet.c2096 struct virtio_net_hdr vnet_hdr; in packet_rcv_vnet()
2311 netoff += sizeof(struct virtio_net_hdr); in tpacket_rcv()
2371 sizeof(struct virtio_net_hdr), in tpacket_rcv()
2535 static int __packet_snd_vnet_parse(struct virtio_net_hdr *vnet_hdr, size_t len) in __packet_snd_vnet_parse()
2552 struct virtio_net_hdr *vnet_hdr) in packet_snd_vnet_parse()
2716 struct virtio_net_hdr *vnet_hdr = NULL; in tpacket_snd()
2943 struct virtio_net_hdr vnet_hdr = { 0 }; in packet_snd()
3455 vnet_hdr_len = sizeof(struct virtio_net_hdr); in packet_recvmsg()
/linux-6.1.9/drivers/vhost/
Dnet.c702 struct virtio_net_hdr *gso; in vhost_net_build_xdp()
1122 struct virtio_net_hdr hdr = { in handle_rx()
1629 sizeof(struct virtio_net_hdr); in vhost_net_set_features()