Home
last modified time | relevance | path

Searched refs:gso (Results 1 – 16 of 16) sorted by relevance

/linux-6.3-rc2/drivers/net/
A Dtun.c1774 if (!copy_from_iter_full(&gso, sizeof(gso), from)) in tun_get_user()
1778 …tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2 > tun16_to_cpu(tun, gso in tun_get_user()
1779gso.hdr_len = cpu_to_tun16(tun, tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_off… in tun_get_user()
1789 (gso.hdr_len && tun16_to_cpu(tun, gso.hdr_len) < ETH_HLEN))) in tun_get_user()
1802 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user()
2055 if (unlikely(copy_to_iter(&gso, sizeof(gso), iter) != in tun_put_user_xdp()
2056 sizeof(gso))) in tun_put_user_xdp()
2105 struct virtio_net_hdr gso; in tun_put_user() local
2126 if (copy_to_iter(&gso, sizeof(gso), iter) != sizeof(gso)) in tun_put_user()
2429 struct virtio_net_hdr *gso = &hdr->gso; in tun_xdp_one() local
[all …]
A Dxen-netfront.c811 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()
819 gso->flags = 0; in xennet_start_xmit()
1131 if (!gso->u.gso.size) { in xennet_set_skb_gso()
1137 if (gso->u.gso.type != XEN_NETIF_GSO_TYPE_TCPV4 && in xennet_set_skb_gso()
1138 gso->u.gso.type != XEN_NETIF_GSO_TYPE_TCPV6) { in xennet_set_skb_gso()
1140 pr_warn("Bad GSO type %d\n", gso->u.gso.type); in xennet_set_skb_gso()
1144 skb_shinfo(skb)->gso_size = gso->u.gso.size; in xennet_set_skb_gso()
[all …]
A Dtap.c1158 struct virtio_net_hdr *gso = &hdr->gso; in tap_get_user_xdp() local
1182 err = virtio_net_hdr_to_skb(skb, gso, tap_is_little_endian(q)); in tap_get_user_xdp()
A Dvirtio_net.c29 static bool csum = true, gso = true, napi_tx = true; variable
31 module_param(gso, bool, 0444);
3912 if (gso) in virtnet_probe()
/linux-6.3-rc2/net/sctp/
A Doutput.c437 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-6.3-rc2/drivers/net/xen-netback/
A Dnetback.c718 struct xen_netif_extra_info *gso) in xenvif_set_skb_gso() argument
720 if (!gso->u.gso.size) { in xenvif_set_skb_gso()
726 switch (gso->u.gso.type) { in xenvif_set_skb_gso()
734 netdev_err(vif->dev, "Bad GSO type %d.\n", gso->u.gso.type); in xenvif_set_skb_gso()
739 skb_shinfo(skb)->gso_size = gso->u.gso.size; in xenvif_set_skb_gso()
1018 struct xen_netif_extra_info *gso; in xenvif_tx_build_gops() local
1019 gso = &extras[XEN_NETIF_EXTRA_TYPE_GSO - 1]; in xenvif_tx_build_gops()
1021 if (xenvif_set_skb_gso(queue->vif, skb, gso)) { in xenvif_tx_build_gops()
A Drx.c277 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-6.3-rc2/drivers/vhost/
A Dnet.c703 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-6.3-rc2/include/linux/
A Dif_tun.h24 struct virtio_net_hdr gso; member
/linux-6.3-rc2/include/xen/interface/io/
A Dnetif.h870 } gso; member
/linux-6.3-rc2/drivers/net/ethernet/emulex/benet/
A Dbe_hw.h235 u8 gso[2]; member
/linux-6.3-rc2/drivers/net/ethernet/mediatek/
A Dmtk_eth_soc.c1237 if (info->gso) in mtk_tx_set_dma_desc_v1()
1270 if (info->gso) in mtk_tx_set_dma_desc_v2()
1300 int tx_num, struct mtk_tx_ring *ring, bool gso) in mtk_tx_map() argument
1304 .gso = gso, in mtk_tx_map()
1502 bool gso = false; in mtk_start_xmit() local
1533 gso = true; in mtk_start_xmit()
1538 if (mtk_tx_map(skb, dev, tx_num, ring, gso) < 0) in mtk_start_xmit()
A Dmtk_eth_soc.h968 u8 gso:1; member
/linux-6.3-rc2/drivers/net/ethernet/microchip/
A Dlan743x_main.c2097 bool gso = false; in lan743x_tx_xmit_frame() local
2131 gso = skb_is_gso(skb); in lan743x_tx_xmit_frame()
2132 if (gso) { in lan743x_tx_xmit_frame()
2147 if (gso) in lan743x_tx_xmit_frame()
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_main.c4328 int gso = skb_shinfo(skb)->gso_type; in stmmac_xmit() local
4344 if (gso & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6)) in stmmac_xmit()
4346 if (priv->plat->has_gmac4 && (gso & SKB_GSO_UDP_L4)) in stmmac_xmit()
6017 int gso = skb_shinfo(skb)->gso_type; in stmmac_select_queue() local
6019 if (gso & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6 | SKB_GSO_UDP_L4)) { in stmmac_select_queue()
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_main.c9297 bool gso = skb_is_gso(skb); in ice_features_check() local
9310 if (gso && (skb_shinfo(skb)->gso_size < ICE_TXD_CTX_MIN_MSS)) in ice_features_check()
9327 if (gso && (skb_shinfo(skb)->gso_type & in ice_features_check()

Completed in 85 milliseconds