Lines Matching defs:nsh
1354 /* nsh header length = NSH_BASE_HDR_LEN + mdlen */
1362 struct ovs_key_nsh *nsh, struct ovs_key_nsh *nsh_mask)
1377 nsh->base = *base;
1385 memcpy(nsh->context, md1->context, sizeof(*md1));
1421 OVS_NLERR(log, "nsh attr %d is out of range max %d",
1430 "nsh attr %d has unexpected len %d expected %d",
1444 SW_FLOW_KEY_PUT(match, nsh.base.flags,
1446 SW_FLOW_KEY_PUT(match, nsh.base.ttl,
1448 SW_FLOW_KEY_PUT(match, nsh.base.mdtype,
1450 SW_FLOW_KEY_PUT(match, nsh.base.np,
1452 SW_FLOW_KEY_PUT(match, nsh.base.path_hdr,
1461 SW_FLOW_KEY_PUT(match, nsh.context[i],
1482 OVS_NLERR(log, "Unknown nsh attribute %d",
1489 OVS_NLERR(log, "nsh attribute has %d unknown bytes.", rem);
1496 "invalid nsh attribute: md1 and md2 are exclusive."
1504 OVS_NLERR(1, "nsh attribute has unmatched MD type %d.",
1995 static int nsh_key_to_nlattr(const struct ovs_key_nsh *nsh, bool is_mask,
2004 if (nla_put(skb, OVS_NSH_KEY_ATTR_BASE, sizeof(nsh->base), &nsh->base))
2007 if (is_mask || nsh->base.mdtype == NSH_M_TYPE1) {
2009 sizeof(nsh->context), nsh->context))
2161 if (nsh_key_to_nlattr(&output->nsh, is_mask, skb))
3436 inner_proto = tun_p_to_eth_p(key->nsh.base.np);
3439 if (key->nsh.base.np == TUN_P_ETHERNET)