• Home
  • Raw
  • Download

Lines Matching refs:log

154 			   u64 key_attrs, u64 mask_attrs, bool log)  in match_validate()  argument
293 OVS_NLERR(log, "Missing key (keys=%llx, expected=%llx)", in match_validate()
301 OVS_NLERR(log, "Unexpected mask (mask=%llx, allowed=%llx)", in match_validate()
466 u64 *attrsp, bool log, bool nz) in __parse_flow_nlattrs() argument
478 OVS_NLERR(log, "Key type %d is out of range max %d", in __parse_flow_nlattrs()
484 OVS_NLERR(log, "Duplicate key (type %d).", type); in __parse_flow_nlattrs()
490 OVS_NLERR(log, "Key %d has unexpected len %d expected %d", in __parse_flow_nlattrs()
501 OVS_NLERR(log, "Message has %d unknown bytes.", rem); in __parse_flow_nlattrs()
511 bool log) in parse_flow_mask_nlattrs() argument
513 return __parse_flow_nlattrs(attr, a, attrsp, log, true); in parse_flow_mask_nlattrs()
517 u64 *attrsp, bool log) in parse_flow_nlattrs() argument
519 return __parse_flow_nlattrs(attr, a, attrsp, log, false); in parse_flow_nlattrs()
524 bool log) in genev_tun_opt_from_nlattr() argument
529 OVS_NLERR(log, "Geneve option length err (len %d, max %zu).", in genev_tun_opt_from_nlattr()
535 OVS_NLERR(log, "Geneve opt len %d is not a multiple of 4.", in genev_tun_opt_from_nlattr()
559 OVS_NLERR(log, "Geneve option len %d != mask len %d", in genev_tun_opt_from_nlattr()
575 bool log) in vxlan_tun_opt_from_nlattr() argument
589 OVS_NLERR(log, "VXLAN extension %d out of range max %d", in vxlan_tun_opt_from_nlattr()
596 OVS_NLERR(log, "VXLAN extension %d has unexpected len %d expected %d", in vxlan_tun_opt_from_nlattr()
607 OVS_NLERR(log, "Unknown VXLAN extension attribute %d", in vxlan_tun_opt_from_nlattr()
613 OVS_NLERR(log, "VXLAN extension message has %d unknown bytes.", in vxlan_tun_opt_from_nlattr()
631 bool log) in erspan_tun_opt_from_nlattr() argument
639 OVS_NLERR(log, "ERSPAN option length err (len %d, max %zu).", in erspan_tun_opt_from_nlattr()
658 bool log) in ip_tun_from_nlattr() argument
672 OVS_NLERR(log, "Tunnel attr %d out of range max %d", in ip_tun_from_nlattr()
679 OVS_NLERR(log, "Tunnel attr %d has unexpected len %d expected %d", in ip_tun_from_nlattr()
738 OVS_NLERR(log, "Multiple metadata blocks provided"); in ip_tun_from_nlattr()
742 err = genev_tun_opt_from_nlattr(a, match, is_mask, log); in ip_tun_from_nlattr()
751 OVS_NLERR(log, "Multiple metadata blocks provided"); in ip_tun_from_nlattr()
755 err = vxlan_tun_opt_from_nlattr(a, match, is_mask, log); in ip_tun_from_nlattr()
766 OVS_NLERR(log, "Multiple metadata blocks provided"); in ip_tun_from_nlattr()
771 log); in ip_tun_from_nlattr()
783 OVS_NLERR(log, "Unknown IP tunnel attribute %d", in ip_tun_from_nlattr()
797 OVS_NLERR(log, "IP tunnel attribute has %d unknown bytes.", in ip_tun_from_nlattr()
803 OVS_NLERR(log, "Mixed IPv4 and IPv6 tunnel attributes"); in ip_tun_from_nlattr()
809 OVS_NLERR(log, "IP tunnel dst address not specified"); in ip_tun_from_nlattr()
821 OVS_NLERR(log, "IPv4 tun info is not correct"); in ip_tun_from_nlattr()
825 OVS_NLERR(log, "IPv4 tunnel dst address is zero"); in ip_tun_from_nlattr()
830 OVS_NLERR(log, "IPv6 tunnel dst address is zero"); in ip_tun_from_nlattr()
835 OVS_NLERR(log, "IP tunnel TTL not specified."); in ip_tun_from_nlattr()
988 const struct nlattr **a, bool log) in validate_vlan_from_nlattrs() argument
1001 OVS_NLERR(log, "Invalid %s frame", (inner) ? "C-VLAN" : "VLAN"); in validate_vlan_from_nlattrs()
1010 OVS_NLERR(log, "%s TCI does not have VLAN_CFI_MASK bit set.", in validate_vlan_from_nlattrs()
1015 OVS_NLERR(log, "Truncated %s header has non-zero encap attribute.", in validate_vlan_from_nlattrs()
1026 const struct nlattr **a, bool log) in validate_vlan_mask_from_nlattrs() argument
1041 OVS_NLERR(log, "Encap mask attribute is set for non-%s frame.", in validate_vlan_mask_from_nlattrs()
1053 OVS_NLERR(log, "Must have an exact match on %s TPID (mask=%x).", in validate_vlan_mask_from_nlattrs()
1058 OVS_NLERR(log, "%s TCI mask does not have exact match for VLAN_CFI_MASK bit.", in validate_vlan_mask_from_nlattrs()
1069 bool log) in __parse_vlan_from_nlattrs() argument
1076 a, log); in __parse_vlan_from_nlattrs()
1079 a, log); in __parse_vlan_from_nlattrs()
1094 err = parse_flow_nlattrs(encap, a, key_attrs, log); in __parse_vlan_from_nlattrs()
1096 err = parse_flow_mask_nlattrs(encap, a, key_attrs, log); in __parse_vlan_from_nlattrs()
1103 bool is_mask, bool log) in parse_vlan_from_nlattrs() argument
1109 is_mask, log); in parse_vlan_from_nlattrs()
1116 is_mask, log); in parse_vlan_from_nlattrs()
1126 bool is_mask, bool log) in parse_eth_type_from_nlattrs() argument
1135 OVS_NLERR(log, "EtherType %x is less than min %x", in parse_eth_type_from_nlattrs()
1147 bool is_mask, bool log) in metadata_from_nlattrs() argument
1177 OVS_NLERR(log, "Port %d exceeds max allowable %d", in metadata_from_nlattrs()
1196 is_mask, log) < 0) in metadata_from_nlattrs()
1206 OVS_NLERR(log, "ct_state flags %08x unsupported", in metadata_from_nlattrs()
1278 log); in metadata_from_nlattrs()
1379 bool is_push_nsh, bool log) in nsh_key_put_from_nlattr() argument
1397 OVS_NLERR(log, "nsh attr %d is out of range max %d", in nsh_key_put_from_nlattr()
1405 log, in nsh_key_put_from_nlattr()
1449 log, in nsh_key_put_from_nlattr()
1458 OVS_NLERR(log, "Unknown nsh attribute %d", in nsh_key_put_from_nlattr()
1465 OVS_NLERR(log, "nsh attribute has %d unknown bytes.", rem); in nsh_key_put_from_nlattr()
1500 bool is_mask, bool log) in ovs_key_from_nlattrs() argument
1504 err = metadata_from_nlattrs(net, match, &attrs, a, is_mask, log); in ovs_key_from_nlattrs()
1522 OVS_NLERR(log, "VLAN attribute unexpected."); in ovs_key_from_nlattrs()
1528 log); in ovs_key_from_nlattrs()
1535 OVS_NLERR(log, "Either Ethernet header or EtherType is required."); in ovs_key_from_nlattrs()
1544 OVS_NLERR(log, "IPv4 frag type %d is out of range max %d", in ovs_key_from_nlattrs()
1568 OVS_NLERR(log, "IPv6 frag type %d is out of range max %d", in ovs_key_from_nlattrs()
1574 OVS_NLERR(log, "IPv6 flow label %x is out of range (max=%x)", in ovs_key_from_nlattrs()
1606 OVS_NLERR(log, "Unknown ARP opcode (opcode=%d).", in ovs_key_from_nlattrs()
1627 is_mask, false, log) < 0) in ovs_key_from_nlattrs()
1729 OVS_NLERR(log, "Unknown key attributes %llx", in ovs_key_from_nlattrs()
1779 bool log) in ovs_nla_get_match() argument
1787 err = parse_flow_nlattrs(nla_key, a, &key_attrs, log); in ovs_nla_get_match()
1791 err = parse_vlan_from_nlattrs(match, &key_attrs, a, false, log); in ovs_nla_get_match()
1795 err = ovs_key_from_nlattrs(net, match, key_attrs, a, false, log); in ovs_nla_get_match()
1829 err = parse_flow_mask_nlattrs(nla_mask, a, &mask_attrs, log); in ovs_nla_get_match()
1837 err = parse_vlan_from_nlattrs(match, &mask_attrs, a, true, log); in ovs_nla_get_match()
1842 log); in ovs_nla_get_match()
1847 if (!match_validate(match, key_attrs, mask_attrs, log)) in ovs_nla_get_match()
1855 static size_t get_ufid_len(const struct nlattr *attr, bool log) in get_ufid_len() argument
1864 OVS_NLERR(log, "ufid size %u bytes exceeds the range (1, %d)", in get_ufid_len()
1876 bool log) in ovs_nla_get_ufid() argument
1878 sfid->ufid_len = get_ufid_len(attr, log); in ovs_nla_get_ufid()
1886 const struct sw_flow_key *key, bool log) in ovs_nla_get_identifier() argument
1890 if (ovs_nla_get_ufid(sfid, ufid, log)) in ovs_nla_get_identifier()
1930 u64 attrs, struct sw_flow_key *key, bool log) in ovs_nla_get_flow_metadata() argument
1946 return metadata_from_nlattrs(net, &match, &attrs, a, false, log); in ovs_nla_get_flow_metadata()
2425 int attr_len, bool log) in reserve_sfa_size() argument
2441 OVS_NLERR(log, "Flow action size exceeds max %u", in reserve_sfa_size()
2464 int attrtype, void *data, int len, bool log) in __add_action() argument
2468 a = reserve_sfa_size(sfa, nla_attr_size(len), log); in __add_action()
2483 int len, bool log) in ovs_nla_add_action() argument
2487 a = __add_action(sfa, attrtype, data, len, log); in ovs_nla_add_action()
2493 int attrtype, bool log) in add_nested_action_start() argument
2498 err = ovs_nla_add_action(sfa, attrtype, NULL, 0, log); in add_nested_action_start()
2518 u32 mpls_label_count, bool log,
2525 u32 mpls_label_count, bool log, bool last, in validate_and_copy_sample() argument
2553 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_SAMPLE, log); in validate_and_copy_sample()
2572 log); in validate_and_copy_sample()
2577 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_sample()
2593 u32 mpls_label_count, bool log, in validate_and_copy_dec_ttl() argument
2609 OVS_NLERR(log, "Duplicate or invalid key (type %d).", in validate_and_copy_dec_ttl()
2618 OVS_NLERR(log, "Message has %d unknown bytes.", rem); in validate_and_copy_dec_ttl()
2624 OVS_NLERR(log, "Missing valid actions attribute."); in validate_and_copy_dec_ttl()
2628 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_DEC_TTL, log); in validate_and_copy_dec_ttl()
2632 action_start = add_nested_action_start(sfa, OVS_DEC_TTL_ATTR_ACTION, log); in validate_and_copy_dec_ttl()
2637 vlan_tci, mpls_label_count, log, in validate_and_copy_dec_ttl()
2652 u32 mpls_label_count, bool log, bool last, in validate_and_copy_clone() argument
2661 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_CLONE, log); in validate_and_copy_clone()
2668 sizeof(exec), log); in validate_and_copy_clone()
2673 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_clone()
2730 struct sw_flow_actions **sfa, bool log) in validate_and_copy_set_tun() argument
2743 opts_type = ip_tun_from_nlattr(nla_data(attr), &match, false, log); in validate_and_copy_set_tun()
2764 start = add_nested_action_start(sfa, OVS_ACTION_ATTR_SET, log); in validate_and_copy_set_tun()
2781 sizeof(*ovs_tun), log); in validate_and_copy_set_tun()
2811 bool is_push_nsh, bool log) in validate_nsh() argument
2819 is_push_nsh, log); in validate_nsh()
2840 u8 mac_proto, __be16 eth_type, bool masked, bool log) in validate_set() argument
2880 err = validate_and_copy_set_tun(a, sfa, log); in validate_set()
2970 if (!validate_nsh(nla_data(a), masked, false, log)) in validate_set()
2987 log); in validate_set()
2991 at = __add_action(sfa, key_type, NULL, len, log); in validate_set()
3043 bool log, bool last, u32 depth) in validate_and_copy_check_pkt_len() argument
3070 log); in validate_and_copy_check_pkt_len()
3081 sizeof(arg), log); in validate_and_copy_check_pkt_len()
3086 OVS_CHECK_PKT_LEN_ATTR_ACTIONS_IF_LESS_EQUAL, log); in validate_and_copy_check_pkt_len()
3091 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_check_pkt_len()
3100 OVS_CHECK_PKT_LEN_ATTR_ACTIONS_IF_GREATER, log); in validate_and_copy_check_pkt_len()
3105 eth_type, vlan_tci, mpls_label_count, log, in validate_and_copy_check_pkt_len()
3117 struct sw_flow_actions **sfa, bool log) in copy_action() argument
3122 to = reserve_sfa_size(sfa, from->nla_len, log); in copy_action()
3134 u32 mpls_label_count, bool log, in __ovs_nla_copy_actions() argument
3319 false, log); in __ovs_nla_copy_actions()
3327 true, log); in __ovs_nla_copy_actions()
3338 log, last, depth); in __ovs_nla_copy_actions()
3346 err = ovs_ct_copy_action(net, a, key, sfa, log); in __ovs_nla_copy_actions()
3409 log, last, depth); in __ovs_nla_copy_actions()
3423 log, last, in __ovs_nla_copy_actions()
3434 mpls_label_count, log, in __ovs_nla_copy_actions()
3442 OVS_NLERR(log, "Unknown Action type %d", type); in __ovs_nla_copy_actions()
3446 err = copy_action(a, sfa, log); in __ovs_nla_copy_actions()
3461 struct sw_flow_actions **sfa, bool log) in ovs_nla_copy_actions() argument
3475 key->eth.vlan.tci, mpls_label_count, log, in ovs_nla_copy_actions()