Lines Matching refs:opts
478 struct ovs_vxlan_opts opts; in vxlan_tun_opt_from_nlattr() local
481 BUILD_BUG_ON(sizeof(opts) > sizeof(match->key->tun_opts)); in vxlan_tun_opt_from_nlattr()
487 memset(&opts, 0, sizeof(opts)); in vxlan_tun_opt_from_nlattr()
490 opts.gbp = nla_get_u32(tb[OVS_VXLAN_EXT_GBP]); in vxlan_tun_opt_from_nlattr()
493 SW_FLOW_KEY_PUT(match, tun_opts_len, sizeof(opts), false); in vxlan_tun_opt_from_nlattr()
497 opt_key_offset = TUN_METADATA_OFFSET(sizeof(opts)); in vxlan_tun_opt_from_nlattr()
498 SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, &opts, sizeof(opts), in vxlan_tun_opt_from_nlattr()
629 const struct ovs_vxlan_opts *opts = tun_opts; in vxlan_opt_to_nlattr() local
636 if (nla_put_u32(skb, OVS_VXLAN_EXT_GBP, opts->gbp) < 0) in vxlan_opt_to_nlattr()
1291 const void *opts = NULL; in __ovs_nla_put_key() local
1294 opts = TUN_METADATA_OPTS(output, swkey->tun_opts_len); in __ovs_nla_put_key()
1296 if (ipv4_tun_to_nlattr(skb, &output->tun_key, opts, in __ovs_nla_put_key()