/openbmc/linux/include/linux/ |
H A D | virtio_net.h | 90 if (hdr->gso_size == 0) in virtio_net_hdr_to_skb() 157 u16 gso_size = __virtio16_to_cpu(little_endian, hdr->gso_size); in virtio_net_hdr_to_skb() local 171 if (skb->len - p_off > gso_size * UDP_MAX_SEGMENTS) in virtio_net_hdr_to_skb() 185 if (gso_size == GSO_BY_FRAGS) in virtio_net_hdr_to_skb() 189 if (skb->len - nh_off > gso_size) { in virtio_net_hdr_to_skb() 190 shinfo->gso_size = gso_size; in virtio_net_hdr_to_skb() 216 hdr->gso_size = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb() 217 sinfo->gso_size); in virtio_net_hdr_from_skb()
|
H A D | udp.h | 64 __u16 gso_size; member 135 int gso_size; in udp_cmsg_recv() local 138 gso_size = skb_shinfo(skb)->gso_size; in udp_cmsg_recv() 139 put_cmsg(msg, SOL_UDP, UDP_GRO, sizeof(gso_size), &gso_size); in udp_cmsg_recv()
|
/openbmc/linux/net/openvswitch/ |
H A D | openvswitch_trace.h | 28 __field( u16, gso_size ) 53 __entry->gso_size = skb_shinfo(skb)->gso_size; 72 __entry->truesize, __entry->nr_frags, __entry->gso_size, 99 __field( u16, gso_size ) 123 __entry->gso_size = skb_shinfo(skb)->gso_size; 141 __entry->truesize, __entry->nr_frags, __entry->gso_size,
|
/openbmc/linux/include/trace/events/ |
H A D | net.h | 35 __field( u16, gso_size ) 57 __entry->gso_size = skb_shinfo(skb)->gso_size; 69 __entry->gso_size, __entry->gso_segs, __entry->gso_type) 189 __field( u16, gso_size ) 215 __entry->gso_size = skb_shinfo(skb)->gso_size; 226 __entry->nr_frags, __entry->gso_size, __entry->gso_type)
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | udpgso_bench_rx.c | 215 static int recv_msg(int fd, char *buf, int len, int *gso_size) in recv_msg() argument 232 *gso_size = -1; in recv_msg() 239 *gso_size = *(int *)CMSG_DATA(cmsg); in recv_msg() 251 int ret, len, gso_size = 0, budget = 256; in do_flush_udp() local 259 ret = recv_msg(fd, rbuf, len, &gso_size); in do_flush_udp() 273 if (cfg_expected_gso_size && cfg_expected_gso_size != gso_size) in do_flush_udp() 275 "(-1 == no gso cmsg))\n", gso_size, in do_flush_udp()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_trace.h | 25 __field(unsigned short, gso_size) 36 __entry->gso_size = skb_shinfo(skb)->gso_size; 49 __entry->ip_summed, __entry->gso_size, __entry->gso_segs,
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_net.h | 116 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */ member 136 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */ member
|
/openbmc/linux/net/ipv4/ |
H A D | tcp_offload.c | 85 mss = skb_shinfo(skb)->gso_size; in tcp_gso_segment() 259 mss = skb_shinfo(p)->gso_size; in tcp_gro_receive() 266 flush |= (mss != skb_shinfo(skb)->gso_size); in tcp_gro_receive() 285 flush = len != NAPI_GRO_CB(skb)->count * skb_shinfo(skb)->gso_size; in tcp_gro_receive()
|
H A D | udp_offload.c | 126 uh->len = htons(skb_shinfo(skb)->gso_size + in __skb_udp_tunnel_segment() 254 unsigned int mss = skb_shinfo(skb)->gso_size; in __udp_gso_segment_list() 277 mss = skb_shinfo(gso_skb)->gso_size; in __udp_gso_segment() 295 if (skb_pagelen(gso_skb) - sizeof(*uh) == skb_shinfo(gso_skb)->gso_size) in __udp_gso_segment() 424 mss = skb_shinfo(skb)->gso_size; in udp4_ufo_fragment()
|
H A D | udp.c | 929 if (cork->gso_size) { in udp_send_skb() 933 if (hlen + cork->gso_size > cork->fragsize) { in udp_send_skb() 951 if (datalen > cork->gso_size) { in udp_send_skb() 952 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_send_skb() 955 cork->gso_size); in udp_send_skb() 1028 *gso_size = *(__u16 *)CMSG_DATA(cmsg); in __udp_cmsg_send() 1050 err = __udp_cmsg_send(cmsg, gso_size); in udp_cmsg_send() 1137 ipc.gso_size = READ_ONCE(up->gso_size); in udp_sendmsg() 1140 err = udp_cmsg_send(sk, msg, &ipc.gso_size); in udp_sendmsg() 2734 WRITE_ONCE(up->gso_size, val); in udp_lib_setsockopt() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | net_tx_pkt.c | 325 bool csum_enable, uint32_t gso_size) in net_tx_pkt_build_vheader() argument 339 pkt->virt_hdr.gso_size = 0; in net_tx_pkt_build_vheader() 343 pkt->virt_hdr.gso_size = gso_size; in net_tx_pkt_build_vheader() 357 pkt->virt_hdr.gso_size = gso_size; in net_tx_pkt_build_vheader() 634 *src_len = pkt->virt_hdr.gso_size; in net_tx_pkt_tcp_fragment_init() 696 *src_len = IP_FRAG_ALIGN_SIZE(pkt->virt_hdr.gso_size); in net_tx_pkt_udp_fragment_init()
|
H A D | net_tx_pkt.h | 66 bool csum_enable, uint32_t gso_size);
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_net.h | 142 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */ member 194 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */ member
|
/openbmc/linux/Documentation/networking/ |
H A D | segmentation-offloads.rst | 28 frames with a data payload size specified in skb_shinfo()->gso_size. 31 skb_shinfo()->gso_size should be set to a non-zero value. 114 via skb_shinfo()->gso_size. 161 generate a big skb, set gso_size to the fragmentation point and deliver it 166 To signal this, gso_size is set to the special value GSO_BY_FRAGS. 169 possibility that gso_size will be GSO_BY_FRAGS and handle that case
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_skb_ctx.c | 25 if (skb->gso_size != 10) in process()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | skb_helpers.c | 10 .gso_size = 10, in test_skb_helpers()
|
H A D | skb_ctx.c | 20 .gso_size = 10, in test_skb_ctx()
|
/openbmc/linux/net/core/ |
H A D | gso.c | 165 return thlen + shinfo->gso_size; in skb_gso_transport_seglen() 229 if (shinfo->gso_size != GSO_BY_FRAGS) in skb_gso_size_check()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tx_tso.c | 291 bool is_last = st->out_len <= skb_shinfo(skb)->gso_size; in tso_start_new_packet() 295 st->packet_space = skb_shinfo(skb)->gso_size; in tso_start_new_packet() 341 st->seqnum += skb_shinfo(skb)->gso_size; in tso_start_new_packet()
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_net.h | 143 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */ member 195 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */ member
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | sunvnet_common.c | 1210 skb_shinfo(nskb)->gso_size = skb_shinfo(skb)->gso_size; in vnet_skb_shape() 1230 int gso_size, gso_type, gso_segs; in vnet_handle_offloads() local 1250 gso_size = skb_shinfo(skb)->gso_size; in vnet_handle_offloads() 1254 if (port->tso && gso_size < datalen) in vnet_handle_offloads() 1270 if (port->tso && gso_size < datalen) { in vnet_handle_offloads() 1275 skb_shinfo(skb)->gso_size = datalen; in vnet_handle_offloads() 1289 skb_shinfo(curr)->gso_size = gso_size; in vnet_handle_offloads() 1292 DIV_ROUND_UP(curr->len - hlen, gso_size); in vnet_handle_offloads() 1294 skb_shinfo(curr)->gso_size = 0; in vnet_handle_offloads() 1435 ->gso_size; in sunvnet_start_xmit_common()
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.c | 1266 unsigned int p_len = sh->gso_size; in nicvf_tso_count_subdescs() 1311 if (skb_shinfo(skb)->gso_size && !nic->hw_tso) { in nicvf_sq_subdesc_required() 1317 if (nic->t88 && nic->hw_tso && skb_shinfo(skb)->gso_size) in nicvf_sq_subdesc_required() 1346 if (nic->t88 && nic->hw_tso && skb_shinfo(skb)->gso_size) { in nicvf_sq_add_hdr_subdesc() 1383 if (nic->hw_tso && skb_shinfo(skb)->gso_size) { in nicvf_sq_add_hdr_subdesc() 1386 hdr->tso_max_paysize = skb_shinfo(skb)->gso_size; in nicvf_sq_add_hdr_subdesc() 1399 if (skb_shinfo(skb)->gso_size) in nicvf_sq_add_hdr_subdesc() 1504 data_left = min_t(int, skb_shinfo(skb)->gso_size, total_len); in nicvf_sq_append_tso() 1565 if (skb_shinfo(skb)->gso_size && !nic->hw_tso) in nicvf_sq_append_skb() 1613 if (nic->t88 && skb_shinfo(skb)->gso_size) { in nicvf_sq_append_skb()
|
/openbmc/linux/net/ipv6/ |
H A D | udp.c | 1248 if (cork->gso_size) { in udp_v6_send_skb() 1252 if (hlen + cork->gso_size > cork->fragsize) { in udp_v6_send_skb() 1256 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_v6_send_skb() 1270 if (datalen > cork->gso_size) { in udp_v6_send_skb() 1271 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_v6_send_skb() 1274 cork->gso_size); in udp_v6_send_skb() 1357 ipc6.gso_size = READ_ONCE(up->gso_size); in udpv6_sendmsg() 1491 err = udp_cmsg_send(sk, msg, &ipc6.gso_size); in udpv6_sendmsg()
|
/openbmc/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_tx_dqo.c | 501 if (unlikely(skb_shinfo(skb)->gso_size < GVE_TX_MIN_TSO_MSS_DQO)) in gve_prep_tso() 544 desc->mss = skb_shinfo(skb)->gso_size; in gve_tx_fill_tso_ctx_desc() 813 const int gso_size = shinfo->gso_size; in gve_can_send_tso() local 824 if (cur_seg_size >= gso_size) { in gve_can_send_tso() 825 cur_seg_size %= gso_size; in gve_can_send_tso()
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | virtio-net.c | 38 uint16_t gso_size; member
|