mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
1e453d39fd
commit
a948d7af15
@ -49,6 +49,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);
|
||||
@ -978,6 +980,9 @@ static void ipa_pkt_status_parse(
|
||||
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;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
@ -444,6 +444,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,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user