Home
last modified time | relevance | path

Searched refs:l3_offset (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/samples/bpf/
Dxdp_redirect_cpu_kern.c113 u16 *eth_proto, u64 *l3_offset) in parse_eth() argument
150 *l3_offset = offset; in parse_eth()
330 u64 l3_offset = 0; in xdp_prognum3_proto_separate() local
342 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum3_proto_separate()
348 ip_proto = get_proto_ipv4(ctx, l3_offset); in xdp_prognum3_proto_separate()
351 ip_proto = get_proto_ipv6(ctx, l3_offset); in xdp_prognum3_proto_separate()
398 u64 l3_offset = 0; in xdp_prognum4_ddos_filter_pktgen() local
411 if (!(parse_eth(eth, data_end, &eth_proto, &l3_offset))) in xdp_prognum4_ddos_filter_pktgen()
417 ip_proto = get_proto_ipv4(ctx, l3_offset); in xdp_prognum4_ddos_filter_pktgen()
420 ip_proto = get_proto_ipv6(ctx, l3_offset); in xdp_prognum4_ddos_filter_pktgen()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/gvt/
Dmmio_context.c395 i915_reg_t offset, l3_offset; in switch_mocs() local
435 l3_offset.reg = 0xb020; in switch_mocs()
438 old_v = vgpu_vreg_t(pre, l3_offset); in switch_mocs()
442 new_v = vgpu_vreg_t(next, l3_offset); in switch_mocs()
447 I915_WRITE_FW(l3_offset, new_v); in switch_mocs()
449 l3_offset.reg += 4; in switch_mocs()
/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dtest_xdp_vlan.c47 __u16 l3_offset; member
96 pkt->l3_offset = offset; in parse_eth_frame()
/Linux-v5.4/drivers/net/ethernet/google/gve/
Dgve_desc.h36 u8 l3_offset; /* TSO: 2 byte units to start of IPH */ member
Dgve_tx.c386 seg_desc->seg.l3_offset = skb_network_offset(skb) >> 1; in gve_tx_fill_seg_desc()
/Linux-v5.4/drivers/net/ethernet/cavium/thunder/
Dq_struct.h541 u64 l3_offset:8; member
554 u64 l3_offset:8;
Dnicvf_queues.c1364 hdr->l3_offset = skb_network_offset(skb); in nicvf_sq_add_hdr_subdesc()
/Linux-v5.4/drivers/net/ethernet/cortina/
Dgemini.h617 unsigned int l3_offset:8; member
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_net.h156 u8 l3_offset; /* L3 header offset */ member
Dnfp_net_common.c730 u32 l3_offset, l4_offset, hdrlen; in nfp_net_tx_tso() local
737 l3_offset = skb_network_offset(skb); in nfp_net_tx_tso()
741 l3_offset = skb_inner_network_offset(skb); in nfp_net_tx_tso()
751 txd->l3_offset = l3_offset - md_bytes; in nfp_net_tx_tso()