Lines Matching defs:opt
25 void *hdr, *opt;
34 opt = MLX5_ADDR_OF(create_geneve_tlv_option_in, in, geneve_tlv_opt);
39 MLX5_SET(geneve_tlv_option, opt, option_class, be16_to_cpu(class));
40 MLX5_SET(geneve_tlv_option, opt, option_type, type);
41 MLX5_SET(geneve_tlv_option, opt, option_data_length, len);
63 int mlx5_geneve_tlv_option_add(struct mlx5_geneve *geneve, struct geneve_opt *opt)
73 if (geneve->opt_class == opt->opt_class &&
74 geneve->opt_type == opt->type) {
83 "Won't create Geneve TLV opt object with class:type:len = 0x%x:0x%x:%d (another class:type already exists)\n",
84 be16_to_cpu(opt->opt_class),
85 opt->type,
86 opt->length);
94 opt->opt_class,
95 opt->type,
96 opt->length);
99 "Failed creating Geneve TLV opt object class:type:len = 0x%x:0x%x:%d (err=%d)\n",
100 be16_to_cpu(opt->opt_class),
101 opt->type, opt->length, res);
104 geneve->opt_class = opt->opt_class;
105 geneve->opt_type = opt->type;