Update hnat_nf_hook.c

This commit is contained in:
padavanonly 2024-10-10 11:40:30 +08:00 committed by GitHub
parent 0e9dc20fd9
commit d5fd45db01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1960,6 +1960,8 @@ static unsigned int skb_to_hnat_info(struct sk_buff *skb,
qid = (dscp>>2)& (MTK_QDMA_TX_MASK);
if (IS_PPPQ_MODE) {
qid+= gmac;
if (gmac == 0) qid+= 12;
if (ntohs(eth->h_proto) == ETH_P_IP) {
iph = ip_hdr(skb);
if (iph->protocol == IPPROTO_TCP) {