Lines Matching defs:log

163 			   u64 key_attrs, u64 mask_attrs, bool log)
302 OVS_NLERR(log, "Missing key (keys=%llx, expected=%llx)",
310 OVS_NLERR(log, "Unexpected mask (mask=%llx, allowed=%llx)",
478 u64 *attrsp, bool log, bool nz)
490 OVS_NLERR(log, "Key type %d is out of range max %d",
498 OVS_NLERR(log, "Key type %d is not supported", type);
503 OVS_NLERR(log, "Duplicate key (type %d).", type);
509 OVS_NLERR(log, "Key %d has unexpected len %d expected %d",
520 OVS_NLERR(log, "Message has %d unknown bytes.", rem);
530 bool log)
532 return __parse_flow_nlattrs(attr, a, attrsp, log, true);
536 u64 *attrsp, bool log)
538 return __parse_flow_nlattrs(attr, a, attrsp, log, false);
543 bool log)
548 OVS_NLERR(log, "Geneve option length err (len %d, max %zu).",
554 OVS_NLERR(log, "Geneve opt len %d is not a multiple of 4.",
578 OVS_NLERR(log, "Geneve option len %d != mask len %d",
594 bool log)
608 OVS_NLERR(log, "VXLAN extension %d out of range max %d",
615 OVS_NLERR(log, "VXLAN extension %d has unexpected len %d expected %d",
626 OVS_NLERR(log, "Unknown VXLAN extension attribute %d",
632 OVS_NLERR(log, "VXLAN extension message has %d unknown bytes.",
650 bool log)
658 OVS_NLERR(log, "ERSPAN option length err (len %d, max %zu).",
677 bool log)
691 OVS_NLERR(log, "Tunnel attr %d out of range max %d",
698 OVS_NLERR(log, "Tunnel attr %d has unexpected len %d expected %d",
757 OVS_NLERR(log, "Multiple metadata blocks provided");
761 err = genev_tun_opt_from_nlattr(a, match, is_mask, log);
770 OVS_NLERR(log, "Multiple metadata blocks provided");
774 err = vxlan_tun_opt_from_nlattr(a, match, is_mask, log);
785 OVS_NLERR(log, "Multiple metadata blocks provided");
790 log);
802 OVS_NLERR(log, "Unknown IP tunnel attribute %d",
817 OVS_NLERR(log, "IP tunnel attribute has %d unknown bytes.",
823 OVS_NLERR(log, "Mixed IPv4 and IPv6 tunnel attributes");
829 OVS_NLERR(log, "IP tunnel dst address not specified");
843 OVS_NLERR(log, "IPv4 tun info is not correct");
847 OVS_NLERR(log, "IPv4 tunnel dst address is zero");
852 OVS_NLERR(log, "IPv6 tunnel dst address is zero");
857 OVS_NLERR(log, "IP tunnel TTL not specified.");
1012 const struct nlattr **a, bool log)
1025 OVS_NLERR(log, "Invalid %s frame", (inner) ? "C-VLAN" : "VLAN");
1034 OVS_NLERR(log, "%s TCI does not have VLAN_CFI_MASK bit set.",
1039 OVS_NLERR(log, "Truncated %s header has non-zero encap attribute.",
1050 const struct nlattr **a, bool log)
1065 OVS_NLERR(log, "Encap mask attribute is set for non-%s frame.",
1077 OVS_NLERR(log, "Must have an exact match on %s TPID (mask=%x).",
1082 OVS_NLERR(log, "%s TCI mask does not have exact match for VLAN_CFI_MASK bit.",
1093 bool log)
1100 a, log);
1103 a, log);
1118 err = parse_flow_nlattrs(encap, a, key_attrs, log);
1120 err = parse_flow_mask_nlattrs(encap, a, key_attrs, log);
1127 bool is_mask, bool log)
1133 is_mask, log);
1140 is_mask, log);
1150 bool is_mask, bool log)
1159 OVS_NLERR(log, "EtherType %x is less than min %x",
1171 bool is_mask, bool log)
1201 OVS_NLERR(log, "Port %d exceeds max allowable %d",
1220 is_mask, log) < 0)
1230 OVS_NLERR(log, "ct_state flags %08x unsupported",
1302 log);
1403 bool is_push_nsh, bool log)
1421 OVS_NLERR(log, "nsh attr %d is out of range max %d",
1429 log,
1473 log,
1482 OVS_NLERR(log, "Unknown nsh attribute %d",
1489 OVS_NLERR(log, "nsh attribute has %d unknown bytes.", rem);
1524 bool is_mask, bool log)
1528 err = metadata_from_nlattrs(net, match, &attrs, a, is_mask, log);
1546 OVS_NLERR(log, "VLAN attribute unexpected.");
1552 log);
1559 OVS_NLERR(log, "Either Ethernet header or EtherType is required.");
1568 OVS_NLERR(log, "IPv4 frag type %d is out of range max %d",
1592 OVS_NLERR(log, "IPv6 frag type %d is out of range max %d",
1598 OVS_NLERR(log, "IPv6 flow label %x is out of range (max=%x)",
1641 OVS_NLERR(log, "Unknown ARP opcode (opcode=%d).",
1662 is_mask, false, log) < 0)
1764 OVS_NLERR(log, "Unknown key attributes %llx",
1807 * @log: Boolean to allow kernel error logging. Normally true, but when
1814 bool log)
1822 err = parse_flow_nlattrs(nla_key, a, &key_attrs, log);
1826 err = parse_vlan_from_nlattrs(match, &key_attrs, a, false, log);
1830 err = ovs_key_from_nlattrs(net, match, key_attrs, a, false, log);
1864 err = parse_flow_mask_nlattrs(nla_mask, a, &mask_attrs, log);
1872 err = parse_vlan_from_nlattrs(match, &mask_attrs, a, true, log);
1877 log);
1882 if (!match_validate(match, key_attrs, mask_attrs, log))
1890 static size_t get_ufid_len(const struct nlattr *attr, bool log)
1899 OVS_NLERR(log, "ufid size %u bytes exceeds the range (1, %d)",
1911 bool log)
1913 sfid->ufid_len = get_ufid_len(attr, log);
1921 const struct sw_flow_key *key, bool log)
1925 if (ovs_nla_get_ufid(sfid, ufid, log))
1951 * @log: Boolean to allow kernel error logging. Normally true, but when
1965 u64 attrs, struct sw_flow_key *key, bool log)
1981 return metadata_from_nlattrs(net, &match, &attrs, a, false, log);
2468 int attr_len, bool log)
2484 OVS_NLERR(log, "Flow action size exceeds max %u",
2507 int attrtype, void *data, int len, bool log)
2511 a = reserve_sfa_size(sfa, nla_attr_size(len), log);
2526 int len, bool log)
2530 a = __add_action(sfa, attrtype, data, len, log);
2536 int attrtype, bool log)
2541 err = ovs_nla_add_action(sfa, attrtype, NULL, 0, log);
2561 u32 mpls_label_count, bool log,
2568 u32 mpls_label_count, bool log, bool last,
2596 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_SAMPLE, log);
2615 log);
2620 eth_type, vlan_tci, mpls_label_count, log,
2636 u32 mpls_label_count, bool log,
2652 OVS_NLERR(log, "Duplicate or invalid key (type %d).",
2661 OVS_NLERR(log, "Message has %d unknown bytes.", rem);
2667 OVS_NLERR(log, "Missing valid actions attribute.");
2671 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_DEC_TTL, log);
2675 action_start = add_nested_action_start(sfa, OVS_DEC_TTL_ATTR_ACTION, log);
2680 vlan_tci, mpls_label_count, log,
2695 u32 mpls_label_count, bool log, bool last,
2704 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_CLONE, log);
2711 sizeof(exec), log);
2716 eth_type, vlan_tci, mpls_label_count, log,
2774 struct sw_flow_actions **sfa, bool log)
2786 opts_type = ip_tun_from_nlattr(nla_data(attr), &match, false, log);
2808 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_SET, log);
2825 sizeof(*ovs_tun), log);
2855 bool is_push_nsh, bool log)
2863 is_push_nsh, log);
2884 u8 mac_proto, __be16 eth_type, bool masked, bool log)
2924 err = validate_and_copy_set_tun(a, sfa, log);
3014 if (!validate_nsh(nla_data(a), masked, false, log))
3031 log);
3035 at = __add_action(sfa, key_type, NULL, len, log);
3087 bool log, bool last, u32 depth)
3114 log);
3125 sizeof(arg), log);
3130 OVS_CHECK_PKT_LEN_ATTR_ACTIONS_IF_LESS_EQUAL, log);
3135 eth_type, vlan_tci, mpls_label_count, log,
3144 OVS_CHECK_PKT_LEN_ATTR_ACTIONS_IF_GREATER, log);
3149 eth_type, vlan_tci, mpls_label_count, log,
3161 struct sw_flow_actions **sfa, bool log)
3166 to = reserve_sfa_size(sfa, from->nla_len, log);
3178 u32 mpls_label_count, bool log,
3366 false, log);
3374 true, log);
3385 log, last, depth);
3393 err = ovs_ct_copy_action(net, a, key, sfa, log);
3456 log, last, depth);
3470 log, last,
3481 mpls_label_count, log,
3494 OVS_NLERR(log, "Unknown Action type %d", type);
3498 err = copy_action(a, sfa, log);
3513 struct sw_flow_actions **sfa, bool log)
3527 key->eth.vlan.tci, mpls_label_count, log,