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;
1476 struct efx_tc_encap_match *encap)
1484 rc = efx_mae_encap_type_to_mae_type(encap->tun_type);
1494 if (encap->src_ip | encap->dst_ip) {
1497 encap->src_ip);
1501 encap->dst_ip);
1509 &encap->src_ip6, sizeof(encap->src_ip6));
1511 0xff, sizeof(encap->src_ip6));
1513 &encap->dst_ip6, sizeof(encap->dst_ip6));
1515 0xff, sizeof(encap->dst_ip6));
1523 encap->udp_dport);
1527 encap->udp_sport);
1529 encap->udp_sport_mask);
1533 encap->ip_tos);
1535 encap->ip_tos_mask);
1542 encap->fw_id = MCDI_DWORD(outbuf, MAE_OUTER_RULE_INSERT_OUT_OR_ID);
1547 struct efx_tc_encap_match *encap)
1554 MCDI_SET_DWORD(inbuf, MAE_OUTER_RULE_REMOVE_IN_OR_ID, encap->fw_id);
1565 if (WARN_ON(MCDI_DWORD(outbuf, MAE_OUTER_RULE_REMOVE_OUT_REMOVED_OR_ID) != encap->fw_id))
1567 /* We're probably about to free @encap, but let's just make sure its
1570 encap->fw_id = MC_CMD_MAE_OUTER_RULE_INSERT_OUT_OUTER_RULE_ID_NULL;
1665 if (WARN_ON_ONCE(match->encap && !match->encap->type))
2205 if (match->encap) {
2207 match->encap->fw_id);