From 1d2f235dc4b274e144fe1a6133499c4488b1ce9b Mon Sep 17 00:00:00 2001 From: Subash Abhinov Kasiviswanathan Date: Fri, 21 Feb 2020 16:12:11 -0700 Subject: [PATCH] dfc: Not flow control NDP packets Allow all NDP packets to be sent regardless of flow control state. These packets are needed for address configuration even if the default flow is disabled from the beginning of the call such as in 5G SA. Change-Id: Ia10e41c5ec8e163b9682c6b4f553f9b102020042 Acked-by: Weiyi Chen Signed-off-by: Subash Abhinov Kasiviswanathan --- core/qmi_rmnet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/qmi_rmnet.c b/core/qmi_rmnet.c index 5818ebda32ca..7c1a6857500f 100644 --- a/core/qmi_rmnet.c +++ b/core/qmi_rmnet.c @@ -812,11 +812,11 @@ static int qmi_rmnet_get_queue_sa(struct qos_info *qos, struct sk_buff *skb) int ip_type; int txq = DEFAULT_MQ_NUM; - /* Put RS/NS in default mq */ + /* Put NDP in default mq */ if (skb->protocol == htons(ETH_P_IPV6) && ipv6_hdr(skb)->nexthdr == IPPROTO_ICMPV6 && - (icmp6_hdr(skb)->icmp6_type == 133 || - icmp6_hdr(skb)->icmp6_type == 135)) { + icmp6_hdr(skb)->icmp6_type >= 133 && + icmp6_hdr(skb)->icmp6_type <= 137) { return DEFAULT_MQ_NUM; }