/Linux-v6.6/drivers/net/ |
D | tun.c | 1751 struct virtio_net_hdr gso = { 0 }; in tun_get_user() local 1777 if (!copy_from_iter_full(&gso, sizeof(gso), from)) in tun_get_user() 1780 if ((gso.flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in tun_get_user() 1781 …tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2 > tun16_to_cpu(tun, gso… in tun_get_user() 1782 …gso.hdr_len = cpu_to_tun16(tun, tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_off… in tun_get_user() 1784 if (tun16_to_cpu(tun, gso.hdr_len) > len) in tun_get_user() 1786 iov_iter_advance(from, vnet_hdr_sz - sizeof(gso)); in tun_get_user() 1792 (gso.hdr_len && tun16_to_cpu(tun, gso.hdr_len) < ETH_HLEN))) in tun_get_user() 1805 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user() 1819 skb = tun_build_skb(tun, tfile, from, &gso, len, &skb_xdp); in tun_get_user() [all …]
|
D | xen-netfront.c | 804 struct xen_netif_extra_info *gso; in xennet_start_xmit() local 806 gso = (struct xen_netif_extra_info *) in xennet_start_xmit() 811 gso->u.gso.size = skb_shinfo(skb)->gso_size; in xennet_start_xmit() 812 gso->u.gso.type = (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) ? in xennet_start_xmit() 815 gso->u.gso.pad = 0; in xennet_start_xmit() 816 gso->u.gso.features = 0; in xennet_start_xmit() 818 gso->type = XEN_NETIF_EXTRA_TYPE_GSO; in xennet_start_xmit() 819 gso->flags = 0; in xennet_start_xmit() 1129 struct xen_netif_extra_info *gso) in xennet_set_skb_gso() argument 1131 if (!gso->u.gso.size) { in xennet_set_skb_gso() [all …]
|
D | tap.c | 1173 struct virtio_net_hdr *gso = &hdr->gso; in tap_get_user_xdp() local 1197 err = virtio_net_hdr_to_skb(skb, gso, tap_is_little_endian(q)); in tap_get_user_xdp()
|
D | virtio_net.c | 30 static bool csum = true, gso = true, napi_tx = true; variable 32 module_param(gso, bool, 0444); 4398 if (gso) in virtnet_probe()
|
/Linux-v6.6/net/sctp/ |
D | output.c | 437 struct sk_buff *head, int gso, gfp_t gfp) in sctp_packet_pack() argument 447 if (gso) { in sctp_packet_pack() 530 if (gso) in sctp_packet_pack() 536 if (gso) { in sctp_packet_pack() 574 int pkt_count, gso = 0; in sctp_packet_transmit() local 593 gso = 1; in sctp_packet_transmit() 598 head = alloc_skb((gso ? packet->overhead : packet->size) + in sctp_packet_transmit() 621 pkt_count = sctp_packet_pack(packet, head, gso, gfp); in sctp_packet_transmit()
|
/Linux-v6.6/drivers/net/xen-netback/ |
D | netback.c | 744 struct xen_netif_extra_info *gso) in xenvif_set_skb_gso() argument 746 if (!gso->u.gso.size) { in xenvif_set_skb_gso() 752 switch (gso->u.gso.type) { in xenvif_set_skb_gso() 760 netdev_err(vif->dev, "Bad GSO type %d.\n", gso->u.gso.type); in xenvif_set_skb_gso() 765 skb_shinfo(skb)->gso_size = gso->u.gso.size; in xenvif_set_skb_gso() 1042 struct xen_netif_extra_info *gso; in xenvif_tx_build_gops() local 1043 gso = &extras[XEN_NETIF_EXTRA_TYPE_GSO - 1]; in xenvif_tx_build_gops() 1045 if (xenvif_set_skb_gso(queue->vif, skb, gso)) { in xenvif_tx_build_gops()
|
D | rx.c | 277 extra->u.gso.type = gso_type; in xenvif_rx_next_skb() 278 extra->u.gso.size = skb_shinfo(skb)->gso_size; in xenvif_rx_next_skb() 279 extra->u.gso.pad = 0; in xenvif_rx_next_skb() 280 extra->u.gso.features = 0; in xenvif_rx_next_skb()
|
/Linux-v6.6/drivers/vhost/ |
D | net.c | 703 struct virtio_net_hdr *gso; in vhost_net_build_xdp() local 730 offsetof(struct tun_xdp_hdr, gso), in vhost_net_build_xdp() 736 gso = &hdr->gso; in vhost_net_build_xdp() 738 if ((gso->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in vhost_net_build_xdp() 739 vhost16_to_cpu(vq, gso->csum_start) + in vhost_net_build_xdp() 740 vhost16_to_cpu(vq, gso->csum_offset) + 2 > in vhost_net_build_xdp() 741 vhost16_to_cpu(vq, gso->hdr_len)) { in vhost_net_build_xdp() 742 gso->hdr_len = cpu_to_vhost16(vq, in vhost_net_build_xdp() 743 vhost16_to_cpu(vq, gso->csum_start) + in vhost_net_build_xdp() 744 vhost16_to_cpu(vq, gso->csum_offset) + 2); in vhost_net_build_xdp() [all …]
|
/Linux-v6.6/include/linux/ |
D | if_tun.h | 24 struct virtio_net_hdr gso; member
|
/Linux-v6.6/net/core/ |
D | Makefile | 16 netdev-genl.o netdev-genl-gen.o gso.o
|
/Linux-v6.6/include/xen/interface/io/ |
D | netif.h | 870 } gso; member
|
/Linux-v6.6/drivers/net/ethernet/emulex/benet/ |
D | be_hw.h | 235 u8 gso[2]; member
|
/Linux-v6.6/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 1306 if (info->gso) in mtk_tx_set_dma_desc_v1() 1355 if (info->gso) in mtk_tx_set_dma_desc_v2() 1387 int tx_num, struct mtk_tx_ring *ring, bool gso) in mtk_tx_map() argument 1391 .gso = gso, in mtk_tx_map() 1587 bool gso = false; in mtk_start_xmit() local 1618 gso = true; in mtk_start_xmit() 1623 if (mtk_tx_map(skb, dev, tx_num, ring, gso) < 0) in mtk_start_xmit()
|
D | mtk_eth_soc.h | 1088 u8 gso:1; member
|
/Linux-v6.6/drivers/net/ethernet/microchip/ |
D | lan743x_main.c | 2099 bool gso = false; in lan743x_tx_xmit_frame() local 2133 gso = skb_is_gso(skb); in lan743x_tx_xmit_frame() 2134 if (gso) { in lan743x_tx_xmit_frame() 2149 if (gso) in lan743x_tx_xmit_frame()
|
/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_main.c | 4373 int gso = skb_shinfo(skb)->gso_type; in stmmac_xmit() local 4392 if (gso & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6)) in stmmac_xmit() 4394 if (priv->plat->has_gmac4 && (gso & SKB_GSO_UDP_L4)) in stmmac_xmit() 6104 int gso = skb_shinfo(skb)->gso_type; in stmmac_select_queue() local 6106 if (gso & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6 | SKB_GSO_UDP_L4)) { in stmmac_select_queue()
|
/Linux-v6.6/drivers/net/ethernet/intel/ice/ |
D | ice_main.c | 9198 bool gso = skb_is_gso(skb); in ice_features_check() local 9211 if (gso && (skb_shinfo(skb)->gso_size < ICE_TXD_CTX_MIN_MSS)) in ice_features_check() 9228 if (gso && (skb_shinfo(skb)->gso_type & in ice_features_check()
|