Lines Matching refs:rc

127 	int rc;
147 rc = efx_mae_allocate_pedit_mac(efx, ped);
148 if (rc < 0) {
160 return ERR_PTR(rc);
471 int rc;
477 rc = efx_mae_unregister_encap_match(efx, encap);
478 if (rc)
483 "Failed to release encap match %#x, rc %d\n",
484 encap->fw_id, rc);
503 int rc;
558 rc = efx_tc_flower_record_encap_match(efx, &pmatch, type,
563 if (rc)
564 return rc;
569 rc = -EOPNOTSUPP;
573 rc = efx_mae_check_encap_match_caps(efx, ipv6, match->mask.enc_ip_tos,
575 if (rc)
580 rc = -ENOMEM;
674 rc = efx_mae_register_encap_match(efx, encap);
675 if (rc) {
691 return rc;
699 int rc;
723 rc = ida_alloc_range(&efx->tc->recirc_ida, 1, U8_MAX, GFP_USER);
724 if (rc < 0) {
729 return ERR_PTR(rc);
731 rid->fw_id = rc;
899 int rc = 0;
903 rc = -EOPNOTSUPP; \
910 rc; \
918 return rc;
930 return rc;
936 return rc;
1465 int rc;
1473 rc = efx_mae_check_encap_type_supported(efx, type);
1474 if (rc) {
1478 return rc;
1483 rc = efx_tc_flower_record_encap_match(efx, match, type,
1485 if (rc)
1486 return rc;
1491 rc = -EOPNOTSUPP;
1508 rc = efx_mae_match_check_caps(efx, &match->mask, extack);
1509 if (rc)
1514 rc = -ENOMEM;
1525 rc = -EEXIST;
1531 rc = efx_tc_flower_handle_lhs_actions(efx, tc, fr, net_dev, rule);
1532 if (rc)
1538 rc = efx_mae_insert_lhs_rule(efx, rule, EFX_TC_PRIO_TC);
1539 if (rc) {
1557 return rc;
1569 int rc;
1592 rc = efx_mae_check_encap_type_supported(efx, type);
1593 if (rc) {
1597 return rc;
1600 rc = efx_tc_flower_record_encap_match(efx, match, type,
1603 if (rc)
1604 return rc;
1608 rc = -EOPNOTSUPP;
1615 rc = efx_tc_flower_translate_flhs_match(match);
1616 if (rc) {
1621 rc = efx_mae_match_check_caps_lhs(efx, &match->mask, extack);
1622 if (rc)
1627 rc = -ENOMEM;
1637 rc = -EEXIST;
1643 rc = efx_tc_flower_handle_lhs_actions(efx, tc, fr, net_dev, rule);
1644 if (rc)
1650 rc = efx_mae_insert_lhs_rule(efx, rule, EFX_TC_PRIO_TC);
1651 if (rc) {
1669 return rc;
1684 s64 rc;
1689 rc = efx_tc_flower_parse_match(efx, fr, &match, extack);
1690 if (rc)
1691 return rc;
1697 rc = efx_tc_flower_external_mport(efx, EFX_EFV_PF);
1698 if (rc < 0) {
1700 return rc;
1702 match.value.ingress_port = rc;
1739 rc = -EOPNOTSUPP;
1761 rc = -EOPNOTSUPP;
1765 rc = efx_mae_match_check_caps(efx, &match.mask, extack);
1766 if (rc)
1776 rc = -EOPNOTSUPP;
1780 rc = efx_mae_check_encap_type_supported(efx, type);
1781 if (rc) {
1788 rc = efx_tc_flower_record_encap_match(efx, &match, type,
1791 if (rc)
1797 rc = -EOPNOTSUPP;
1803 rc = -ENOMEM;
1812 rc = PTR_ERR(old);
1818 rc = -EEXIST;
1824 rc = -ENOMEM;
1849 rc = -EOPNOTSUPP;
1854 rc = -EOPNOTSUPP;
1862 rc = PTR_ERR(ctr);
1872 rc = -EOPNOTSUPP;
1890 rc = efx_tc_flower_internal_mport(efx, to_efv);
1891 if (rc < 0) {
1895 act->dest_mport = rc;
1897 rc = efx_mae_alloc_action_set(efx, act);
1898 if (rc) {
1910 rc = -ENOMEM;
1917 rc = -EINVAL;
1931 rc = -EOPNOTSUPP;
1944 rc = efx_mae_alloc_action_set(efx, act);
1945 if (rc) {
1959 rc = efx_mae_alloc_action_set_list(efx, &rule->acts);
1960 if (rc) {
1964 rc = efx_mae_insert_rule(efx, &rule->match, EFX_TC_PRIO_TC,
1966 if (rc) {
1992 return rc;
2004 int rc;
2019 rc = efx_mae_match_check_caps_lhs(efx, &match->mask, extack);
2020 if (rc)
2021 return rc;
2031 rc = PTR_ERR(old);
2036 rc = -EEXIST;
2045 rc = efx_tc_flower_handle_lhs_actions(efx, tc, fr, efx->net_dev, rule);
2046 if (rc)
2051 rc = efx_mae_insert_lhs_rule(efx, rule, EFX_TC_PRIO_TC);
2052 if (rc) {
2067 return rc;
2085 s64 rc;
2111 rc = efx_tc_flower_external_mport(efx, from_efv);
2112 if (rc < 0) {
2114 return rc;
2116 match.value.ingress_port = rc;
2118 rc = efx_tc_flower_parse_match(efx, fr, &match, extack);
2119 if (rc)
2120 return rc;
2174 rc = -EOPNOTSUPP;
2180 rc = efx_mae_match_check_caps(efx, &match.mask, extack);
2181 if (rc)
2186 rc = -ENOMEM;
2195 rc = PTR_ERR(old);
2201 rc = -EEXIST;
2208 rc = -ENOMEM;
2243 rc = -EINVAL;
2267 rc = -EOPNOTSUPP;
2274 rc = -EOPNOTSUPP;
2281 rc = PTR_ERR(ctr);
2291 rc = efx_mae_alloc_action_set(efx, act);
2292 if (rc) {
2308 rc = -EOPNOTSUPP;
2315 rc = PTR_ERR(encap);
2316 if (!rc)
2317 rc = -EIO; /* arbitrary */
2335 rc = efx_mae_alloc_action_set(efx, act);
2336 if (rc) {
2349 rc = -ENOMEM;
2358 rc = -EOPNOTSUPP;
2366 rc = PTR_ERR(to_efv);
2369 rc = efx_tc_flower_external_mport(efx, to_efv);
2370 if (rc < 0) {
2374 act->dest_mport = rc;
2376 rc = efx_mae_alloc_action_set(efx, act);
2377 if (rc) {
2389 rc = -ENOMEM;
2402 rc = -EINVAL;
2408 rc = -EINVAL;
2420 rc = efx_tc_pedit_add(efx, act, fa, extack);
2421 if (rc < 0)
2425 rc = efx_tc_mangle(efx, act, fa, &mung, extack, &match);
2426 if (rc < 0)
2437 rc = -EINVAL;
2442 rc = -EOPNOTSUPP;
2458 rc = -EOPNOTSUPP;
2462 rc = -EOPNOTSUPP;
2471 rc = -EOPNOTSUPP;
2476 rc = efx_tc_incomplete_mangle(&mung, extack);
2477 if (rc < 0)
2494 rc = efx_mae_alloc_action_set(efx, act);
2495 if (rc) {
2509 rc = efx_mae_alloc_action_set_list(efx, &rule->acts);
2510 if (rc) {
2527 rc = efx_mae_insert_rule(efx, &rule->match, EFX_TC_PRIO_TC,
2529 if (rc) {
2553 return rc;
2645 int rc;
2653 rc = efx_tc_flower_replace(efx, net_dev, tc, efv);
2656 rc = efx_tc_flower_destroy(efx, net_dev, tc);
2659 rc = efx_tc_flower_stats(efx, net_dev, tc);
2662 rc = -EOPNOTSUPP;
2666 return rc;
2675 int rc;
2684 rc = efx_mae_alloc_action_set(efx, act);
2685 if (rc)
2689 rc = efx_mae_alloc_action_set_list(efx, acts);
2690 if (rc)
2692 rc = efx_mae_insert_rule(efx, match, EFX_TC_PRIO_DFLT,
2694 if (rc)
2704 return rc;
2750 int rc;
2757 rc = efx_mae_alloc_action_set(efx, act);
2758 if (rc)
2762 rc = efx_mae_alloc_action_set_list(efx, acts);
2763 if (rc)
2771 return rc;
2801 int rc;
2803 rc = efx_mae_allocate_mport(efx, &efx->tc->reps_mport_id, &rep_mport_label);
2804 if (rc)
2805 return rc;
2823 int rc;
2832 rc = efx_filter_insert_filter(efx, &promisc, false);
2833 if (rc < 0)
2834 return rc;
2835 efx->tc->reps_filter_uc = rc;
2839 rc = efx_filter_insert_filter(efx, &allmulti, false);
2840 if (rc < 0)
2841 return rc;
2842 efx->tc->reps_filter_mc = rc;
2862 int rc;
2864 rc = efx_mae_get_caps(efx, efx->tc->caps);
2865 if (rc)
2866 return rc;
2881 rc = efx_tc_configure_default_rule_pf(efx);
2882 if (rc)
2883 return rc;
2884 rc = efx_tc_configure_default_rule_wire(efx);
2885 if (rc)
2886 return rc;
2887 rc = efx_tc_configure_rep_mport(efx);
2888 if (rc)
2889 return rc;
2890 rc = efx_tc_configure_fallback_acts_pf(efx);
2891 if (rc)
2892 return rc;
2893 rc = efx_tc_configure_fallback_acts_reps(efx);
2894 if (rc)
2895 return rc;
2896 rc = efx_mae_get_tables(efx);
2897 if (rc)
2898 return rc;
2899 rc = flow_indr_dev_register(efx_tc_indr_setup_cb, efx);
2900 if (rc)
2906 return rc;
2990 int rc;
3000 rc = -ENOMEM;
3007 rc = efx_tc_init_encap_actions(efx);
3008 if (rc < 0)
3010 rc = efx_tc_init_counters(efx);
3011 if (rc < 0)
3013 rc = rhashtable_init(&efx->tc->mac_ht, &efx_tc_mac_ht_params);
3014 if (rc < 0)
3016 rc = rhashtable_init(&efx->tc->encap_match_ht, &efx_tc_encap_match_ht_params);
3017 if (rc < 0)
3019 rc = rhashtable_init(&efx->tc->match_action_ht, &efx_tc_match_action_ht_params);
3020 if (rc < 0)
3022 rc = rhashtable_init(&efx->tc->lhs_rule_ht, &efx_tc_lhs_rule_ht_params);
3023 if (rc < 0)
3025 rc = efx_tc_init_conntrack(efx);
3026 if (rc < 0)
3028 rc = rhashtable_init(&efx->tc->recirc_ht, &efx_tc_recirc_ht_params);
3029 if (rc < 0)
3064 return rc;