msm: ipahal: Add uCP exception case for status pkt

Add a new enum for uCP exception pkt status.
Handle the case where this pkt status exception is received.

Change-Id: Ib69e307548efed3482d4636db9161f423c051570
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Tento commit je obsažen v:
Michael Adisumarta
2020-07-01 17:03:58 -07:00
odevzdal Gerrit - the friendly Code Review server
rodič d10d7d54b9
revize 2390ccee5c
2 změnil soubory, kde provedl 6 přidání a 0 odebrání

Zobrazit soubor

@@ -42,6 +42,8 @@ static const char *ipahal_pkt_status_exception_to_str
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_SW_FILT),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_NAT),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_IPV6CT),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_UCP),
__stringify(IPAHAL_PKT_STATUS_EXCEPTION_CSUM),
};
static u16 ipahal_imm_cmd_get_opcode(enum ipahal_imm_cmd_name cmd);
@@ -925,6 +927,9 @@ static enum ipahal_pkt_status_exception pkt_status_parse_exception(
else
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_NAT;
break;
case 128:
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_UCP;
break;
case 229:
exception_type = IPAHAL_PKT_STATUS_EXCEPTION_CSUM;
break;

Zobrazit soubor

@@ -437,6 +437,7 @@ enum ipahal_pkt_status_exception {
*/
IPAHAL_PKT_STATUS_EXCEPTION_NAT,
IPAHAL_PKT_STATUS_EXCEPTION_IPV6CT,
IPAHAL_PKT_STATUS_EXCEPTION_UCP,
IPAHAL_PKT_STATUS_EXCEPTION_CSUM,
IPAHAL_PKT_STATUS_EXCEPTION_MAX,
};