/openbmc/linux/drivers/net/ |
H A D | tun.c | 1784 if (!copy_from_iter_full(&gso, sizeof(gso), from)) in tun_get_user() 1788 …tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2 > tun16_to_cpu(tun, gso… in tun_get_user() 1789 …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() 1799 (gso.hdr_len && tun16_to_cpu(tun, gso.hdr_len) < ETH_HLEN))) in tun_get_user() 1812 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user() 2076 if (unlikely(copy_to_iter(&gso, sizeof(gso), iter) != in tun_put_user_xdp() 2077 sizeof(gso))) in tun_put_user_xdp() 2126 struct virtio_net_hdr gso; in tun_put_user() local 2149 if (copy_to_iter(&gso, sizeof(gso), iter) != sizeof(gso)) in tun_put_user() 2452 struct virtio_net_hdr *gso = &hdr->gso; in tun_xdp_one() local [all …]
|
H A D | xen-netfront.c | 812 gso->u.gso.size = skb_shinfo(skb)->gso_size; in xennet_start_xmit() 813 gso->u.gso.type = (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) ? in xennet_start_xmit() 816 gso->u.gso.pad = 0; in xennet_start_xmit() 817 gso->u.gso.features = 0; in xennet_start_xmit() 820 gso->flags = 0; in xennet_start_xmit() 1132 if (!gso->u.gso.size) { in xennet_set_skb_gso() 1138 if (gso->u.gso.type != XEN_NETIF_GSO_TYPE_TCPV4 && in xennet_set_skb_gso() 1139 gso->u.gso.type != XEN_NETIF_GSO_TYPE_TCPV6) { in xennet_set_skb_gso() 1141 pr_warn("Bad GSO type %d\n", gso->u.gso.type); in xennet_set_skb_gso() 1145 skb_shinfo(skb)->gso_size = gso->u.gso.size; in xennet_set_skb_gso() [all …]
|
H A D | tap.c | 1173 struct virtio_net_hdr *gso = &hdr->gso; in tap_get_user_xdp() local 1202 err = virtio_net_hdr_to_skb(skb, gso, tap_is_little_endian(q)); in tap_get_user_xdp()
|
H A D | virtio_net.c | 30 static bool csum = true, gso = true, napi_tx = true; variable 32 module_param(gso, bool, 0444); 4476 if (gso) in virtnet_probe()
|
/openbmc/linux/net/sctp/ |
H A 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()
|
/openbmc/linux/drivers/net/xen-netback/ |
H A D | netback.c | 760 struct xen_netif_extra_info *gso) in xenvif_set_skb_gso() argument 762 if (!gso->u.gso.size) { in xenvif_set_skb_gso() 768 switch (gso->u.gso.type) { in xenvif_set_skb_gso() 776 netdev_err(vif->dev, "Bad GSO type %d.\n", gso->u.gso.type); in xenvif_set_skb_gso() 781 skb_shinfo(skb)->gso_size = gso->u.gso.size; in xenvif_set_skb_gso() 1056 struct xen_netif_extra_info *gso; in xenvif_tx_build_gops() local 1057 gso = &extras[XEN_NETIF_EXTRA_TYPE_GSO - 1]; in xenvif_tx_build_gops() 1059 if (xenvif_set_skb_gso(queue->vif, skb, gso)) { in xenvif_tx_build_gops()
|
H A 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()
|
/openbmc/linux/include/linux/ |
H A D | if_tun.h | 24 struct virtio_net_hdr gso; member
|
/openbmc/linux/drivers/vhost/ |
H A 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 …]
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | rt_link.yaml | 856 name: gso-max-segs 859 name: gso-max-size 929 name: gso-ipv4-max-size 1273 - gso-max-size 1274 - gso-max-segs 1276 - gso-ipv4-max-size 1351 - gso-max-segs 1352 - gso-max-size 1375 - gso-ipv4-max-size
|
/openbmc/linux/net/core/ |
H A D | Makefile | 16 netdev-genl.o netdev-genl-gen.o gso.o
|
/openbmc/linux/include/xen/interface/io/ |
H A D | netif.h | 870 } gso; member
|
/openbmc/qemu/include/hw/xen/interface/io/ |
H A D | netif.h | 1013 } gso; member
|
/openbmc/linux/drivers/net/ethernet/emulex/benet/ |
H A D | be_hw.h | 235 u8 gso[2]; member
|
/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 1305 if (info->gso) in mtk_tx_set_dma_desc_v1() 1354 if (info->gso) in mtk_tx_set_dma_desc_v2() 1386 int tx_num, struct mtk_tx_ring *ring, bool gso) in mtk_tx_map() argument 1390 .gso = gso, in mtk_tx_map() 1586 bool gso = false; in mtk_start_xmit() local 1617 gso = true; in mtk_start_xmit() 1622 if (mtk_tx_map(skb, dev, tx_num, ring, gso) < 0) in mtk_start_xmit()
|
H A D | mtk_eth_soc.h | 1088 u8 gso:1; member
|
/openbmc/linux/drivers/net/ethernet/microchip/ |
H A D | lan743x_main.c | 2101 bool gso = false; in lan743x_tx_xmit_frame() local 2135 gso = skb_is_gso(skb); in lan743x_tx_xmit_frame() 2136 if (gso) { in lan743x_tx_xmit_frame() 2151 if (gso) in lan743x_tx_xmit_frame()
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_main.c | 4384 int gso = skb_shinfo(skb)->gso_type; in stmmac_xmit() local 4402 if (gso & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6)) in stmmac_xmit() 4404 if (priv->plat->has_gmac4 && (gso & SKB_GSO_UDP_L4)) in stmmac_xmit() 6103 int gso = skb_shinfo(skb)->gso_type; in stmmac_select_queue() local 6105 if (gso & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6 | SKB_GSO_UDP_L4)) { in stmmac_select_queue()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_main.c | 9232 bool gso = skb_is_gso(skb); in ice_features_check() local 9245 if (gso && (skb_shinfo(skb)->gso_size < ICE_TXD_CTX_MIN_MSS)) in ice_features_check() 9262 if (gso && (skb_shinfo(skb)->gso_type & in ice_features_check()
|