Lines Matching refs:enc_opts

79 	struct flow_dissector_key_enc_opts enc_opts;  member
1250 if (key->enc_opts.len > FLOW_DIS_TUN_OPTS_MAX - 4) in fl_set_geneve_opt()
1253 opt = (struct geneve_opt *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_geneve_opt()
1290 int new_len = key->enc_opts.len; in fl_set_geneve_opt()
1334 md = (struct vxlan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_vxlan_opt()
1371 md = (struct erspan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_erspan_opt()
1434 u8 len = key->enc_opts.len; in fl_set_gtp_opt()
1437 sinfo = (struct gtp_pdu_session_info *)&key->enc_opts.data[len]; in fl_set_gtp_opt()
1479 md = (struct pfcp_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_pfcp_opt()
1543 if (key->enc_opts.dst_opt_type && in fl_set_enc_opt()
1544 key->enc_opts.dst_opt_type != in fl_set_enc_opt()
1550 key->enc_opts.dst_opt_type = IP_TUNNEL_GENEVE_OPT_BIT; in fl_set_enc_opt()
1557 key->enc_opts.len += option_len; in fl_set_enc_opt()
1561 mask->enc_opts.dst_opt_type = IP_TUNNEL_GENEVE_OPT_BIT; in fl_set_enc_opt()
1568 mask->enc_opts.len += option_len; in fl_set_enc_opt()
1569 if (key->enc_opts.len != mask->enc_opts.len) { in fl_set_enc_opt()
1575 if (key->enc_opts.dst_opt_type) { in fl_set_enc_opt()
1580 key->enc_opts.dst_opt_type = IP_TUNNEL_VXLAN_OPT_BIT; in fl_set_enc_opt()
1587 key->enc_opts.len += option_len; in fl_set_enc_opt()
1591 mask->enc_opts.dst_opt_type = IP_TUNNEL_VXLAN_OPT_BIT; in fl_set_enc_opt()
1598 mask->enc_opts.len += option_len; in fl_set_enc_opt()
1599 if (key->enc_opts.len != mask->enc_opts.len) { in fl_set_enc_opt()
1605 if (key->enc_opts.dst_opt_type) { in fl_set_enc_opt()
1610 key->enc_opts.dst_opt_type = IP_TUNNEL_ERSPAN_OPT_BIT; in fl_set_enc_opt()
1617 key->enc_opts.len += option_len; in fl_set_enc_opt()
1621 mask->enc_opts.dst_opt_type = IP_TUNNEL_ERSPAN_OPT_BIT; in fl_set_enc_opt()
1628 mask->enc_opts.len += option_len; in fl_set_enc_opt()
1629 if (key->enc_opts.len != mask->enc_opts.len) { in fl_set_enc_opt()
1635 if (key->enc_opts.dst_opt_type) { in fl_set_enc_opt()
1641 key->enc_opts.dst_opt_type = IP_TUNNEL_GTP_OPT_BIT; in fl_set_enc_opt()
1648 key->enc_opts.len += option_len; in fl_set_enc_opt()
1652 mask->enc_opts.dst_opt_type = IP_TUNNEL_GTP_OPT_BIT; in fl_set_enc_opt()
1659 mask->enc_opts.len += option_len; in fl_set_enc_opt()
1660 if (key->enc_opts.len != mask->enc_opts.len) { in fl_set_enc_opt()
1667 if (key->enc_opts.dst_opt_type) { in fl_set_enc_opt()
1672 key->enc_opts.dst_opt_type = IP_TUNNEL_PFCP_OPT_BIT; in fl_set_enc_opt()
1679 key->enc_opts.len += option_len; in fl_set_enc_opt()
1683 mask->enc_opts.dst_opt_type = IP_TUNNEL_PFCP_OPT_BIT; in fl_set_enc_opt()
1690 mask->enc_opts.len += option_len; in fl_set_enc_opt()
1691 if (key->enc_opts.len != mask->enc_opts.len) { in fl_set_enc_opt()
2214 FLOW_DISSECTOR_KEY_ENC_OPTS, enc_opts); in fl_init_dissector()
3160 struct flow_dissector_key_enc_opts *enc_opts) in fl_dump_key_geneve_opt() argument
3170 while (enc_opts->len > opt_off) { in fl_dump_key_geneve_opt()
3171 opt = (struct geneve_opt *)&enc_opts->data[opt_off]; in fl_dump_key_geneve_opt()
3194 struct flow_dissector_key_enc_opts *enc_opts) in fl_dump_key_vxlan_opt() argument
3203 md = (struct vxlan_metadata *)&enc_opts->data[0]; in fl_dump_key_vxlan_opt()
3216 struct flow_dissector_key_enc_opts *enc_opts) in fl_dump_key_erspan_opt() argument
3225 md = (struct erspan_metadata *)&enc_opts->data[0]; in fl_dump_key_erspan_opt()
3249 struct flow_dissector_key_enc_opts *enc_opts) in fl_dump_key_gtp_opt() argument
3259 session_info = (struct gtp_pdu_session_info *)&enc_opts->data[0]; in fl_dump_key_gtp_opt()
3277 struct flow_dissector_key_enc_opts *enc_opts) in fl_dump_key_pfcp_opt() argument
3286 md = (struct pfcp_metadata *)&enc_opts->data[0]; in fl_dump_key_pfcp_opt()
3374 struct flow_dissector_key_enc_opts *enc_opts) in fl_dump_key_options() argument
3379 if (!enc_opts->len) in fl_dump_key_options()
3386 switch (enc_opts->dst_opt_type) { in fl_dump_key_options()
3388 err = fl_dump_key_geneve_opt(skb, enc_opts); in fl_dump_key_options()
3393 err = fl_dump_key_vxlan_opt(skb, enc_opts); in fl_dump_key_options()
3398 err = fl_dump_key_erspan_opt(skb, enc_opts); in fl_dump_key_options()
3403 err = fl_dump_key_gtp_opt(skb, enc_opts); in fl_dump_key_options()
3408 err = fl_dump_key_pfcp_opt(skb, enc_opts); in fl_dump_key_options()
3657 fl_dump_key_enc_opt(skb, &key->enc_opts, &mask->enc_opts)) in fl_dump_key()