/linux/include/linux/ |
A D | virtio_net.h | 79 if (hdr->gso_size == 0) in virtio_net_hdr_to_skb() 143 u16 gso_size = __virtio16_to_cpu(little_endian, hdr->gso_size); in virtio_net_hdr_to_skb() local 152 if (skb->len - nh_off > gso_size) { in virtio_net_hdr_to_skb() 153 shinfo->gso_size = gso_size; in virtio_net_hdr_to_skb() 179 hdr->gso_size = __cpu_to_virtio16(little_endian, in virtio_net_hdr_from_skb() 180 sinfo->gso_size); in virtio_net_hdr_from_skb()
|
A D | udp.h | 62 __u16 gso_size; member 126 int gso_size; in udp_cmsg_recv() local 129 gso_size = skb_shinfo(skb)->gso_size; in udp_cmsg_recv() 130 put_cmsg(msg, SOL_UDP, UDP_GRO, sizeof(gso_size), &gso_size); in udp_cmsg_recv()
|
/linux/net/openvswitch/ |
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,
|
/linux/tools/testing/selftests/net/ |
A D | udpgso_bench_rx.c | 215 static int recv_msg(int fd, char *buf, int len, int *gso_size) in recv_msg() argument 233 *gso_size = -1; in recv_msg() 241 *gso_size = *gsosizeptr; in recv_msg() 253 int ret, len, gso_size, budget = 256; in do_flush_udp() local 261 ret = recv_msg(fd, rbuf, len, &gso_size); in do_flush_udp() 275 if (cfg_expected_gso_size && cfg_expected_gso_size != gso_size) in do_flush_udp() 277 "(-1 == no gso cmsg))\n", gso_size, in do_flush_udp()
|
/linux/include/trace/events/ |
A D | net.h | 35 __field( u16, gso_size ) 56 __entry->gso_size = skb_shinfo(skb)->gso_size; 68 __entry->gso_size, __entry->gso_segs, __entry->gso_type) 188 __field( u16, gso_size ) 214 __entry->gso_size = skb_shinfo(skb)->gso_size; 225 __entry->nr_frags, __entry->gso_size, __entry->gso_type)
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
A D | hns3_trace.h | 25 __field(unsigned short, gso_size) 36 __entry->gso_size = skb_shinfo(skb)->gso_size; 50 __entry->ip_summed, __entry->gso_size, __entry->gso_segs,
|
/linux/Documentation/networking/ |
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
|
A D | netdev-features.rst | 122 gso_size. On segmentation, it segments the payload on gso_size boundaries and 124 gso_size).
|
/linux/include/uapi/linux/ |
A D | virtio_net.h | 136 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */ member 188 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */ member
|
/linux/drivers/net/ethernet/sun/ |
A D | sunvnet_common.c | 1209 skb_shinfo(nskb)->gso_size = skb_shinfo(skb)->gso_size; in vnet_skb_shape() 1229 int gso_size, gso_type, gso_segs; in vnet_handle_offloads() local 1249 gso_size = skb_shinfo(skb)->gso_size; in vnet_handle_offloads() 1253 if (port->tso && gso_size < datalen) in vnet_handle_offloads() 1269 if (port->tso && gso_size < datalen) { in vnet_handle_offloads() 1274 skb_shinfo(skb)->gso_size = datalen; in vnet_handle_offloads() 1288 skb_shinfo(curr)->gso_size = gso_size; in vnet_handle_offloads() 1291 DIV_ROUND_UP(curr->len - hlen, gso_size); in vnet_handle_offloads() 1293 skb_shinfo(curr)->gso_size = 0; in vnet_handle_offloads() 1434 ->gso_size; in sunvnet_start_xmit_common()
|
/linux/drivers/net/ethernet/sfc/ |
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()
|
A D | ef100_tx.c | 67 mss = skb_shinfo(skb)->gso_size; in ef100_tx_can_tso() 195 u32 mss = skb_shinfo(skb)->gso_size; in ef100_make_tso_desc()
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_skb_ctx.c | 25 if (skb->gso_size != 10) in process()
|
/linux/drivers/net/ethernet/google/gve/ |
A D | gve_tx_dqo.c | 369 if (unlikely(skb_shinfo(skb)->gso_size < GVE_TX_MIN_TSO_MSS_DQO)) in gve_prep_tso() 422 desc->mss = skb_shinfo(skb)->gso_size; in gve_tx_fill_tso_ctx_desc() 604 const int gso_size = shinfo->gso_size; in gve_can_send_tso() local 613 if (cur_seg_size >= gso_size) { in gve_can_send_tso() 614 cur_seg_size %= gso_size; in gve_can_send_tso()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | skb_helpers.c | 10 .gso_size = 10, in test_skb_helpers()
|
A D | skb_ctx.c | 20 .gso_size = 10, in test_skb_ctx()
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_txrx.c | 600 if (skb_shinfo(skb)->gso_size) { in otx2_sqe_add_ext() 603 ext->lso_mps = skb_shinfo(skb)->gso_size; in otx2_sqe_add_ext() 833 seg_len = min_t(int, skb_shinfo(skb)->gso_size, tcp_data); in otx2_sq_append_tso() 910 last_seg_size = payload_len % skb_shinfo(skb)->gso_size; in is_hw_tso_supported() 919 if (!skb_shinfo(skb)->gso_size) in otx2_get_sqe_count() 935 if (!skb_shinfo(skb)->gso_size && in otx2_set_txtstamp() 976 if (skb_shinfo(skb)->gso_size && !is_hw_tso_supported(pfvf, skb)) { in otx2_sq_append_skb()
|
/linux/drivers/net/ethernet/cavium/thunder/ |
A D | nicvf_queues.c | 1265 unsigned int p_len = sh->gso_size; in nicvf_tso_count_subdescs() 1310 if (skb_shinfo(skb)->gso_size && !nic->hw_tso) { in nicvf_sq_subdesc_required() 1316 if (nic->t88 && nic->hw_tso && skb_shinfo(skb)->gso_size) in nicvf_sq_subdesc_required() 1345 if (nic->t88 && nic->hw_tso && skb_shinfo(skb)->gso_size) { in nicvf_sq_add_hdr_subdesc() 1382 if (nic->hw_tso && skb_shinfo(skb)->gso_size) { in nicvf_sq_add_hdr_subdesc() 1385 hdr->tso_max_paysize = skb_shinfo(skb)->gso_size; in nicvf_sq_add_hdr_subdesc() 1398 if (skb_shinfo(skb)->gso_size) in nicvf_sq_add_hdr_subdesc() 1503 data_left = min_t(int, skb_shinfo(skb)->gso_size, total_len); in nicvf_sq_append_tso() 1564 if (skb_shinfo(skb)->gso_size && !nic->hw_tso) in nicvf_sq_append_skb() 1612 if (nic->t88 && skb_shinfo(skb)->gso_size) { in nicvf_sq_append_skb()
|
/linux/net/ipv6/ |
A D | udp.c | 1200 if (cork->gso_size) { in udp_v6_send_skb() 1204 if (hlen + cork->gso_size > cork->fragsize) { in udp_v6_send_skb() 1208 if (datalen > cork->gso_size * UDP_MAX_SEGMENTS) { in udp_v6_send_skb() 1222 if (datalen > cork->gso_size) { in udp_v6_send_skb() 1223 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_v6_send_skb() 1226 cork->gso_size); in udp_v6_send_skb() 1314 ipc6.gso_size = READ_ONCE(up->gso_size); in udpv6_sendmsg() 1447 err = udp_cmsg_send(sk, msg, &ipc6.gso_size); in udpv6_sendmsg()
|
/linux/net/ipv4/ |
A D | udp.c | 911 if (cork->gso_size) { in udp_send_skb() 915 if (hlen + cork->gso_size > cork->fragsize) { in udp_send_skb() 933 if (datalen > cork->gso_size) { in udp_send_skb() 934 skb_shinfo(skb)->gso_size = cork->gso_size; in udp_send_skb() 937 cork->gso_size); in udp_send_skb() 1009 *gso_size = *(__u16 *)CMSG_DATA(cmsg); in __udp_cmsg_send() 1031 err = __udp_cmsg_send(cmsg, gso_size); in udp_cmsg_send() 1118 ipc.gso_size = READ_ONCE(up->gso_size); in udp_sendmsg() 1121 err = udp_cmsg_send(sk, msg, &ipc.gso_size); in udp_sendmsg() 2722 WRITE_ONCE(up->gso_size, val); in udp_lib_setsockopt() [all …]
|
A D | udp_offload.c | 124 uh->len = htons(skb_shinfo(skb)->gso_size + in __skb_udp_tunnel_segment() 252 unsigned int mss = skb_shinfo(skb)->gso_size; in __udp_gso_segment_list() 278 mss = skb_shinfo(gso_skb)->gso_size; in __udp_gso_segment() 392 mss = skb_shinfo(skb)->gso_size; in udp4_ufo_fragment()
|
A D | tcp_offload.c | 80 mss = skb_shinfo(skb)->gso_size; in tcp_gso_segment() 258 mss = skb_shinfo(p)->gso_size; in tcp_gro_receive()
|
/linux/drivers/net/ethernet/neterion/vxge/ |
A D | vxge-main.h | 513 #define vxge_tcp_mss(skb) (skb_shinfo(skb)->gso_size) 514 #define vxge_udp_mss(skb) (skb_shinfo(skb)->gso_size)
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | sge.c | 741 hdrlen = skb_shinfo(skb)->gso_size ? in is_eth_imm() 781 if (skb_shinfo(skb)->gso_size) { in calc_tx_flits() 1396 lso->mss = htons(ssi->gso_size); in write_tso_wr() 1484 if (skb_shinfo(skb)->gso_size) in write_eo_udp_wr() 1651 } else if (ssi->gso_size) { in cxgb4_eth_xmit() 1806 if (skb_shinfo(skb)->gso_size) in t4vf_calc_tx_flits() 1935 if (ssi->gso_size) { in cxgb4_vf_eth_xmit() 2177 if (skb_shinfo(skb)->gso_size && in ethofld_calc_tx_flits() 2213 if (skb_shinfo(skb)->gso_size && in write_eo_wr() 2244 if (ssi->gso_size) { in write_eo_wr() [all …]
|
/linux/tools/testing/selftests/bpf/verifier/ |
A D | ctx_skb.c | 1017 offsetof(struct __sk_buff, gso_size)), 1028 offsetof(struct __sk_buff, gso_size)), 1040 offsetof(struct __sk_buff, gso_size)), 1053 offsetof(struct __sk_buff, gso_size)), 1064 offsetofend(struct __sk_buff, gso_size)),
|