Lines Matching refs:nsh
1347 struct ovs_key_nsh *nsh, struct ovs_key_nsh *nsh_mask) in nsh_key_from_nlattr() argument
1362 nsh->base = *base; in nsh_key_from_nlattr()
1370 memcpy(nsh->context, md1->context, sizeof(*md1)); in nsh_key_from_nlattr()
1429 SW_FLOW_KEY_PUT(match, nsh.base.flags, in nsh_key_put_from_nlattr()
1431 SW_FLOW_KEY_PUT(match, nsh.base.ttl, in nsh_key_put_from_nlattr()
1433 SW_FLOW_KEY_PUT(match, nsh.base.mdtype, in nsh_key_put_from_nlattr()
1435 SW_FLOW_KEY_PUT(match, nsh.base.np, in nsh_key_put_from_nlattr()
1437 SW_FLOW_KEY_PUT(match, nsh.base.path_hdr, in nsh_key_put_from_nlattr()
1446 SW_FLOW_KEY_PUT(match, nsh.context[i], in nsh_key_put_from_nlattr()
1980 static int nsh_key_to_nlattr(const struct ovs_key_nsh *nsh, bool is_mask, in nsh_key_to_nlattr() argument
1989 if (nla_put(skb, OVS_NSH_KEY_ATTR_BASE, sizeof(nsh->base), &nsh->base)) in nsh_key_to_nlattr()
1992 if (is_mask || nsh->base.mdtype == NSH_M_TYPE1) { in nsh_key_to_nlattr()
1994 sizeof(nsh->context), nsh->context)) in nsh_key_to_nlattr()
2146 if (nsh_key_to_nlattr(&output->nsh, is_mask, skb)) in __ovs_nla_put_key()
3404 inner_proto = tun_p_to_eth_p(key->nsh.base.np); in __ovs_nla_copy_actions()
3407 if (key->nsh.base.np == TUN_P_ETHERNET) in __ovs_nla_copy_actions()