Lines Matching refs:__u16
69 static struct udphdr *filter_udphdr(struct xdp_md *ctx, __u16 port) in filter_udphdr()
110 static int xdp_mode_pass(struct xdp_md *ctx, __u16 port) in xdp_mode_pass()
123 static int xdp_mode_drop_handler(struct xdp_md *ctx, __u16 port) in xdp_mode_drop_handler()
146 static int xdp_mode_tx_handler(struct xdp_md *ctx, __u16 port) in xdp_mode_tx_handler()
225 __u16 total_len; in update_pkt()
239 __u16 payload_len; in update_pkt()
270 static __u16 csum_fold_helper(__u32 csum) in csum_fold_helper()
275 static int xdp_adjst_tail_shrnk_data(struct xdp_md *ctx, __u16 offset, in xdp_adjst_tail_shrnk_data()
303 udph->check = (__u16)csum_fold_helper(udp_csum); in xdp_adjst_tail_shrnk_data()
311 static int xdp_adjst_tail_grow_data(struct xdp_md *ctx, __u16 offset) in xdp_adjst_tail_grow_data()
347 udph->check = (__u16)csum_fold_helper(udp_csum); in xdp_adjst_tail_grow_data()
362 static int xdp_adjst_tail(struct xdp_md *ctx, __u16 port) in xdp_adjst_tail()
384 (__u16)(0 - *adjust_offset), in xdp_adjst_tail()
387 ret = xdp_adjst_tail_grow_data(ctx, (__u16)(*adjust_offset)); in xdp_adjst_tail()
428 udph->check = (__u16)csum_fold_helper(udp_csum); in xdp_adjst_head_shrnk_data()
485 udph->check = (__u16)csum_fold_helper(udp_csum); in xdp_adjst_head_grow_data()
514 static int xdp_head_adjst(struct xdp_md *ctx, __u16 port) in xdp_head_adjst()
594 return xdp_mode_pass(ctx, (__u16)(*port)); in xdp_prog_common()
596 return xdp_mode_drop_handler(ctx, (__u16)(*port)); in xdp_prog_common()
598 return xdp_mode_tx_handler(ctx, (__u16)(*port)); in xdp_prog_common()
600 return xdp_adjst_tail(ctx, (__u16)(*port)); in xdp_prog_common()
602 return xdp_head_adjst(ctx, (__u16)(*port)); in xdp_prog_common()