Lines Matching defs:log
156 u64 key_attrs, u64 mask_attrs, bool log)
295 OVS_NLERR(log, "Missing key (keys=%llx, expected=%llx)",
303 OVS_NLERR(log, "Unexpected mask (mask=%llx, allowed=%llx)",
471 u64 *attrsp, bool log, bool nz)
483 OVS_NLERR(log, "Key type %d is out of range max %d",
491 OVS_NLERR(log, "Key type %d is not supported", type);
496 OVS_NLERR(log, "Duplicate key (type %d).", type);
502 OVS_NLERR(log, "Key %d has unexpected len %d expected %d",
513 OVS_NLERR(log, "Message has %d unknown bytes.", rem);
523 bool log)
525 return __parse_flow_nlattrs(attr, a, attrsp, log, true);
529 u64 *attrsp, bool log)
531 return __parse_flow_nlattrs(attr, a, attrsp, log, false);
536 bool log)
541 OVS_NLERR(log, "Geneve option length err (len %d, max %zu).",
547 OVS_NLERR(log, "Geneve opt len %d is not a multiple of 4.",
571 OVS_NLERR(log, "Geneve option len %d != mask len %d",
587 bool log)
601 OVS_NLERR(log, "VXLAN extension %d out of range max %d",
608 OVS_NLERR(log, "VXLAN extension %d has unexpected len %d expected %d",
619 OVS_NLERR(log, "Unknown VXLAN extension attribute %d",
625 OVS_NLERR(log, "VXLAN extension message has %d unknown bytes.",
643 bool log)
651 OVS_NLERR(log, "ERSPAN option length err (len %d, max %zu).",
670 bool log)
684 OVS_NLERR(log, "Tunnel attr %d out of range max %d",
691 OVS_NLERR(log, "Tunnel attr %d has unexpected len %d expected %d",
750 OVS_NLERR(log, "Multiple metadata blocks provided");
754 err = genev_tun_opt_from_nlattr(a, match, is_mask, log);
763 OVS_NLERR(log, "Multiple metadata blocks provided");
767 err = vxlan_tun_opt_from_nlattr(a, match, is_mask, log);
778 OVS_NLERR(log, "Multiple metadata blocks provided");
783 log);
795 OVS_NLERR(log, "Unknown IP tunnel attribute %d",
809 OVS_NLERR(log, "IP tunnel attribute has %d unknown bytes.",
815 OVS_NLERR(log, "Mixed IPv4 and IPv6 tunnel attributes");
821 OVS_NLERR(log, "IP tunnel dst address not specified");
833 OVS_NLERR(log, "IPv4 tun info is not correct");
837 OVS_NLERR(log, "IPv4 tunnel dst address is zero");
842 OVS_NLERR(log, "IPv6 tunnel dst address is zero");
847 OVS_NLERR(log, "IP tunnel TTL not specified.");
1000 const struct nlattr **a, bool log)
1013 OVS_NLERR(log, "Invalid %s frame", (inner) ? "C-VLAN" : "VLAN");
1022 OVS_NLERR(log, "%s TCI does not have VLAN_CFI_MASK bit set.",
1027 OVS_NLERR(log, "Truncated %s header has non-zero encap attribute.",
1038 const struct nlattr **a, bool log)
1053 OVS_NLERR(log, "Encap mask attribute is set for non-%s frame.",
1065 OVS_NLERR(log, "Must have an exact match on %s TPID (mask=%x).",
1070 OVS_NLERR(log, "%s TCI mask does not have exact match for VLAN_CFI_MASK bit.",
1081 bool log)
1088 a, log);
1091 a, log);
1106 err = parse_flow_nlattrs(encap, a, key_attrs, log);
1108 err = parse_flow_mask_nlattrs(encap, a, key_attrs, log);
1115 bool is_mask, bool log)
1121 is_mask, log);
1128 is_mask, log);
1138 bool is_mask, bool log)
1147 OVS_NLERR(log, "EtherType %x is less than min %x",
1159 bool is_mask, bool log)
1189 OVS_NLERR(log, "Port %d exceeds max allowable %d",
1208 is_mask, log) < 0)
1218 OVS_NLERR(log, "ct_state flags %08x unsupported",
1290 log);
1391 bool is_push_nsh, bool log)
1409 OVS_NLERR(log, "nsh attr %d is out of range max %d",
1417 log,
1461 log,
1470 OVS_NLERR(log, "Unknown nsh attribute %d",
1477 OVS_NLERR(log, "nsh attribute has %d unknown bytes.", rem);
1512 bool is_mask, bool log)
1516 err = metadata_from_nlattrs(net, match, &attrs, a, is_mask, log);
1534 OVS_NLERR(log, "VLAN attribute unexpected.");
1540 log);
1547 OVS_NLERR(log, "Either Ethernet header or EtherType is required.");
1556 OVS_NLERR(log, "IPv4 frag type %d is out of range max %d",
1580 OVS_NLERR(log, "IPv6 frag type %d is out of range max %d",
1586 OVS_NLERR(log, "IPv6 flow label %x is out of range (max=%x)",
1629 OVS_NLERR(log, "Unknown ARP opcode (opcode=%d).",
1650 is_mask, false, log) < 0)
1752 OVS_NLERR(log, "Unknown key attributes %llx",
1795 * @log: Boolean to allow kernel error logging. Normally true, but when
1802 bool log)
1810 err = parse_flow_nlattrs(nla_key, a, &key_attrs, log);
1814 err = parse_vlan_from_nlattrs(match, &key_attrs, a, false, log);
1818 err = ovs_key_from_nlattrs(net, match, key_attrs, a, false, log);
1852 err = parse_flow_mask_nlattrs(nla_mask, a, &mask_attrs, log);
1860 err = parse_vlan_from_nlattrs(match, &mask_attrs, a, true, log);
1865 log);
1870 if (!match_validate(match, key_attrs, mask_attrs, log))
1878 static size_t get_ufid_len(const struct nlattr *attr, bool log)
1887 OVS_NLERR(log, "ufid size %u bytes exceeds the range (1, %d)",
1899 bool log)
1901 sfid->ufid_len = get_ufid_len(attr, log);
1909 const struct sw_flow_key *key, bool log)
1913 if (ovs_nla_get_ufid(sfid, ufid, log))
1939 * @log: Boolean to allow kernel error logging. Normally true, but when
1953 u64 attrs, struct sw_flow_key *key, bool log)
1969 return metadata_from_nlattrs(net, &match, &attrs, a, false, log);
2456 int attr_len, bool log)
2472 OVS_NLERR(log, "Flow action size exceeds max %u",
2495 int attrtype, void *data, int len, bool log)
2499 a = reserve_sfa_size(sfa, nla_attr_size(len), log);
2514 int len, bool log)
2518 a = __add_action(sfa, attrtype, data, len, log);
2524 int attrtype, bool log)
2529 err = ovs_nla_add_action(sfa, attrtype, NULL, 0, log);
2549 u32 mpls_label_count, bool log,
2556 u32 mpls_label_count, bool log, bool last,
2584 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_SAMPLE, log);
2603 log);
2608 eth_type, vlan_tci, mpls_label_count, log,
2624 u32 mpls_label_count, bool log,
2640 OVS_NLERR(log, "Duplicate or invalid key (type %d).",
2649 OVS_NLERR(log, "Message has %d unknown bytes.", rem);
2655 OVS_NLERR(log, "Missing valid actions attribute.");
2659 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_DEC_TTL, log);
2663 action_start = add_nested_action_start(sfa, OVS_DEC_TTL_ATTR_ACTION, log);
2668 vlan_tci, mpls_label_count, log,
2683 u32 mpls_label_count, bool log, bool last,
2692 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_CLONE, log);
2699 sizeof(exec), log);
2704 eth_type, vlan_tci, mpls_label_count, log,
2761 struct sw_flow_actions **sfa, bool log)
2774 opts_type = ip_tun_from_nlattr(nla_data(attr), &match, false, log);
2795 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_SET, log);
2812 sizeof(*ovs_tun), log);
2842 bool is_push_nsh, bool log)
2850 is_push_nsh, log);
2871 u8 mac_proto, __be16 eth_type, bool masked, bool log)
2911 err = validate_and_copy_set_tun(a, sfa, log);
3001 if (!validate_nsh(nla_data(a), masked, false, log))
3018 log);
3022 at = __add_action(sfa, key_type, NULL, len, log);
3074 bool log, bool last, u32 depth)
3101 log);
3112 sizeof(arg), log);
3117 OVS_CHECK_PKT_LEN_ATTR_ACTIONS_IF_LESS_EQUAL, log);
3122 eth_type, vlan_tci, mpls_label_count, log,
3131 OVS_CHECK_PKT_LEN_ATTR_ACTIONS_IF_GREATER, log);
3136 eth_type, vlan_tci, mpls_label_count, log,
3148 struct sw_flow_actions **sfa, bool log)
3153 to = reserve_sfa_size(sfa, from->nla_len, log);
3165 u32 mpls_label_count, bool log,
3353 false, log);
3361 true, log);
3372 log, last, depth);
3380 err = ovs_ct_copy_action(net, a, key, sfa, log);
3443 log, last, depth);
3457 log, last,
3468 mpls_label_count, log,
3481 OVS_NLERR(log, "Unknown Action type %d", type);
3485 err = copy_action(a, sfa, log);
3500 struct sw_flow_actions **sfa, bool log)
3514 key->eth.vlan.tci, mpls_label_count, log,