Lines Matching refs:encap
712 * (and thus identified the encap protocol to use to extract it).
719 NL_SET_ERR_MSG_MOD(extack, "No support for encap rule ID matches");
725 NL_SET_ERR_MSG_MOD(extack, "Match on enc_keyid requires other encap fields");
801 NL_SET_ERR_MSG_MOD(extack, "Unexpected encap match in LHS rule");
825 /* Checks that the fields needed for encap-rule matches are supported by the
955 struct efx_tc_encap_action *encap)
962 rc = efx_mae_encap_type_to_mae_type(encap->type);
966 inlen = MC_CMD_MAE_ENCAP_HEADER_ALLOC_IN_LEN(encap->encap_hdr_len);
970 encap->encap_hdr,
971 encap->encap_hdr_len);
978 encap->fw_id = MCDI_DWORD(outbuf, MAE_ENCAP_HEADER_ALLOC_OUT_ENCAP_HEADER_ID);
983 struct efx_tc_encap_action *encap)
989 rc = efx_mae_encap_type_to_mae_type(encap->type);
994 encap->fw_id);
995 inlen = MC_CMD_MAE_ENCAP_HEADER_UPDATE_IN_LEN(encap->encap_hdr_len);
999 encap->encap_hdr,
1000 encap->encap_hdr_len);
1008 struct efx_tc_encap_action *encap)
1015 MCDI_SET_DWORD(inbuf, MAE_ENCAP_HEADER_FREE_IN_EH_ID, encap->fw_id);
1026 if (WARN_ON(MCDI_DWORD(outbuf, MAE_ENCAP_HEADER_FREE_OUT_FREED_EH_ID) != encap->fw_id))
1028 /* We're probably about to free @encap, but let's just make sure its
1031 encap->fw_id = MC_CMD_MAE_ENCAP_HEADER_ALLOC_OUT_ENCAP_HEADER_ID_NULL;
1475 struct efx_tc_encap_match *encap)
1483 rc = efx_mae_encap_type_to_mae_type(encap->tun_type);
1493 if (encap->src_ip | encap->dst_ip) {
1496 encap->src_ip);
1500 encap->dst_ip);
1508 &encap->src_ip6, sizeof(encap->src_ip6));
1510 0xff, sizeof(encap->src_ip6));
1512 &encap->dst_ip6, sizeof(encap->dst_ip6));
1514 0xff, sizeof(encap->dst_ip6));
1522 encap->udp_dport);
1526 encap->udp_sport);
1528 encap->udp_sport_mask);
1532 encap->ip_tos);
1534 encap->ip_tos_mask);
1541 encap->fw_id = MCDI_DWORD(outbuf, MAE_OUTER_RULE_INSERT_OUT_OR_ID);
1546 struct efx_tc_encap_match *encap)
1553 MCDI_SET_DWORD(inbuf, MAE_OUTER_RULE_REMOVE_IN_OR_ID, encap->fw_id);
1564 if (WARN_ON(MCDI_DWORD(outbuf, MAE_OUTER_RULE_REMOVE_OUT_REMOVED_OR_ID) != encap->fw_id))
1566 /* We're probably about to free @encap, but let's just make sure its
1569 encap->fw_id = MC_CMD_MAE_OUTER_RULE_INSERT_OUT_OUTER_RULE_ID_NULL;
1664 if (WARN_ON_ONCE(match->encap && !match->encap->type))
2149 if (match->encap) {
2151 match->encap->fw_id);