AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/08/31 07:26 flow patch-triage
0m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch adds LRO/GRO HW support to the Airoha SoC Gigabit Ethernet driver (drivers/net/ethernet/airoha/). This is a platform driver specifically for Airoha EN7581/AN7583 SoCs, which requires specific SoC hardware not emulated in standard virtualized fuzzing environments (e.g., QEMU or GCE). Hence, these code paths are unreachable during fuzzing.",
  "WorthFuzzing": false
}

1/1 2026/08/31 07:26 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit fd1d3449234e1546063eaaa9536f1eb12cbebec4\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Mon Aug 31 07:26:53 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/airoha/airoha_eth.c b/drivers/net/ethernet/airoha/airoha_eth.c\nindex 64619e9a704dd..57b19d7b5bd79 100644\n--- a/drivers/net/ethernet/airoha/airoha_eth.c\n+++ b/drivers/net/ethernet/airoha/airoha_eth.c\n@@ -10,8 +10,10 @@\n #include \u003clinux/tcp.h\u003e\n #include \u003clinux/u64_stats_sync.h\u003e\n #include \u003cnet/dst_metadata.h\u003e\n+#include \u003cnet/ip6_checksum.h\u003e\n #include \u003cnet/page_pool/helpers.h\u003e\n #include \u003cnet/pkt_cls.h\u003e\n+#include \u003cnet/tcp.h\u003e\n #include \u003cuapi/linux/ppp_defs.h\u003e\n \n #include \"airoha_regs.h\"\n@@ -491,6 +493,88 @@ static void airoha_fe_crsn_qsel_init(struct airoha_eth *eth)\n \t\t\t\t CDM_CRSN_QSEL_Q1));\n }\n \n+static void airoha_fe_lro_rxq_enable(struct airoha_eth *eth, int qdma_id,\n+\t\t\t\t     int lro_queue_index, int qid,\n+\t\t\t\t     int buf_size)\n+{\n+\tint id = qdma_id + 1;\n+\n+\tairoha_fe_rmw(eth, REG_CDM_LRO_LIMIT(id),\n+\t\t      CDM_LRO_AGG_NUM_MASK | CDM_LRO_AGG_SIZE_MASK,\n+\t\t      FIELD_PREP(CDM_LRO_AGG_SIZE_MASK, buf_size) |\n+\t\t      FIELD_PREP(CDM_LRO_AGG_NUM_MASK,\n+\t\t\t\t AIROHA_RXQ_LRO_MAX_AGG_COUNT));\n+\tairoha_fe_rmw(eth, REG_CDM_LRO_AGE_TIME(id),\n+\t\t      CDM_LRO_AGE_TIME_MASK | CDM_LRO_AGG_TIME_MASK,\n+\t\t      FIELD_PREP(CDM_LRO_AGE_TIME_MASK,\n+\t\t\t\t AIROHA_RXQ_LRO_MAX_AGE_TIME) |\n+\t\t      FIELD_PREP(CDM_LRO_AGG_TIME_MASK,\n+\t\t\t\t AIROHA_RXQ_LRO_MAX_AGG_TIME));\n+\tairoha_fe_rmw(eth, REG_CDM_LRO_RXQ(id, lro_queue_index),\n+\t\t      LRO_RXQ_MASK(lro_queue_index),\n+\t\t      __field_prep(LRO_RXQ_MASK(lro_queue_index), qid));\n+\tairoha_fe_set(eth, REG_CDM_LRO_EN(id), BIT(lro_queue_index));\n+}\n+\n+static void airoha_fe_lro_disable(struct airoha_eth *eth, int qdma_id)\n+{\n+\tint i, id = qdma_id + 1;\n+\n+\tairoha_fe_clear(eth, REG_CDM_LRO_EN(id), LRO_RXQ_EN_MASK);\n+\tairoha_fe_clear(eth, REG_CDM_LRO_LIMIT(id),\n+\t\t\tCDM_LRO_AGG_NUM_MASK | CDM_LRO_AGG_SIZE_MASK);\n+\tairoha_fe_clear(eth, REG_CDM_LRO_AGE_TIME(id),\n+\t\t\tCDM_LRO_AGE_TIME_MASK | CDM_LRO_AGG_TIME_MASK);\n+\tfor (i = 0; i \u003c AIROHA_MAX_NUM_LRO_QUEUES; i++)\n+\t\tairoha_fe_clear(eth, REG_CDM_LRO_RXQ(id, i), LRO_RXQ_MASK(i));\n+}\n+\n+static bool airoha_fe_lro_is_enabled(struct airoha_eth *eth, int qdma_id)\n+{\n+\treturn airoha_fe_get(eth, REG_CDM_LRO_EN(qdma_id + 1),\n+\t\t\t     LRO_RXQ_EN_MASK);\n+}\n+\n+static void airoha_dev_lro_enable(struct airoha_gdm_dev *dev)\n+{\n+\tstruct airoha_qdma *qdma = airoha_qdma_deref(dev);\n+\tstruct airoha_eth *eth = qdma-\u003eeth;\n+\tint qdma_id = qdma - \u0026eth-\u003eqdma[0];\n+\tint i, lro_queue_index = 0;\n+\n+\tif (airoha_fe_lro_is_enabled(eth, qdma_id))\n+\t\treturn;\n+\n+\tfor (i = 0; i \u003c ARRAY_SIZE(qdma-\u003eq_rx); i++) {\n+\t\tstruct airoha_queue *q = \u0026qdma-\u003eq_rx[i];\n+\t\tu32 size;\n+\n+\t\tif (!q-\u003endesc)\n+\t\t\tcontinue;\n+\n+\t\tif (!airoha_qdma_is_lro_queue(q))\n+\t\t\tcontinue;\n+\n+\t\tsize = SKB_WITH_OVERHEAD(AIROHA_RX_LEN(q-\u003ebuf_size));\n+\t\tsize = min_t(u32, size, AIROHA_MAX_RX_SIZE);\n+\t\tairoha_fe_lro_rxq_enable(eth, qdma_id, lro_queue_index, i,\n+\t\t\t\t\t size);\n+\t\tlro_queue_index++;\n+\t}\n+}\n+\n+static void airoha_dev_lro_disable(struct airoha_gdm_dev *dev)\n+{\n+\tstruct airoha_qdma *qdma = airoha_qdma_deref(dev);\n+\tstruct airoha_eth *eth = qdma-\u003eeth;\n+\tint qdma_id = qdma - \u0026eth-\u003eqdma[0];\n+\n+\tif (!airoha_fe_lro_is_enabled(eth, qdma_id))\n+\t\treturn;\n+\n+\tairoha_fe_lro_disable(eth, qdma_id);\n+}\n+\n static int airoha_fe_init(struct airoha_eth *eth)\n {\n \tairoha_fe_maccr_init(eth);\n@@ -616,6 +700,7 @@ static int airoha_qdma_fill_rx_queue(struct airoha_queue *q)\n \t\te-\u003edma_addr = page_pool_get_dma_addr(page) + offset;\n \t\te-\u003edma_len = SKB_WITH_OVERHEAD(AIROHA_RX_LEN(q-\u003ebuf_size));\n \n+\t\tWRITE_ONCE(desc-\u003etcp_ts_reply, 0);\n \t\tval = FIELD_PREP(QDMA_DESC_LEN_MASK, e-\u003edma_len);\n \t\tWRITE_ONCE(desc-\u003ectrl, cpu_to_le32(val));\n \t\tWRITE_ONCE(desc-\u003eaddr, cpu_to_le32(e-\u003edma_addr));\n@@ -657,12 +742,191 @@ airoha_qdma_get_gdm_dev(struct airoha_eth *eth, struct airoha_qdma_desc *desc)\n \treturn port-\u003edevs[d] ? port-\u003edevs[d] : ERR_PTR(-ENODEV);\n }\n \n+static struct sk_buff *airoha_qdma_lro_rx_skb(struct airoha_queue *q,\n+\t\t\t\t\t      struct airoha_qdma_desc *desc,\n+\t\t\t\t\t      struct airoha_queue_entry *e,\n+\t\t\t\t\t      u32 msg1, u32 msg2, u32 len,\n+\t\t\t\t\t      u32 agg_count)\n+{\n+\tu32 msg3 = le32_to_cpu(READ_ONCE(desc-\u003emsg3));\n+\tu32 th_off, tcp_ack_seq, data_off, data_len;\n+\tstruct skb_shared_info *shinfo;\n+\tu16 tcp_win, l2_len;\n+\tstruct sk_buff *skb;\n+\tstruct tcphdr *th;\n+\tstruct page *page;\n+\tbool ipv4, ipv6;\n+\n+\tipv4 = FIELD_GET(QDMA_ETH_RXMSG_IP4_MASK, msg1);\n+\tipv6 = FIELD_GET(QDMA_ETH_RXMSG_IP6_MASK, msg1);\n+\tif (!ipv4 \u0026\u0026 !ipv6)\n+\t\treturn NULL;\n+\n+\tl2_len = FIELD_GET(QDMA_ETH_RXMSG_L2_LEN_MASK, msg2);\n+\n+\tif (ipv4) {\n+\t\tstruct iphdr *iph;\n+\n+\t\tif (len \u003c l2_len + sizeof(*iph))\n+\t\t\treturn NULL;\n+\n+\t\tiph = (struct iphdr *)(e-\u003ebuf + l2_len);\n+\t\tif (iph-\u003eprotocol != IPPROTO_TCP)\n+\t\t\treturn NULL;\n+\n+\t\tif (iph-\u003eihl \u003c 5)\n+\t\t\treturn NULL;\n+\n+\t\tth_off = l2_len + (iph-\u003eihl \u003c\u003c 2);\n+\t\tif (len \u003c th_off)\n+\t\t\treturn NULL;\n+\n+\t\tiph-\u003etot_len = cpu_to_be16(len - l2_len);\n+\t\tiph-\u003echeck = 0;\n+\t\tiph-\u003echeck = ip_fast_csum((void *)iph, iph-\u003eihl);\n+\t} else {\n+\t\tstruct ipv6hdr *ip6h;\n+\n+\t\tth_off = l2_len + sizeof(*ip6h);\n+\t\tif (len \u003c th_off)\n+\t\t\treturn NULL;\n+\n+\t\tip6h = (struct ipv6hdr *)(e-\u003ebuf + l2_len);\n+\t\tif (ip6h-\u003enexthdr != NEXTHDR_TCP)\n+\t\t\treturn NULL;\n+\n+\t\tip6h-\u003epayload_len = cpu_to_be16(len - th_off);\n+\t}\n+\n+\tif (len \u003c th_off + sizeof(*th))\n+\t\treturn NULL;\n+\n+\tth = (struct tcphdr *)(e-\u003ebuf + th_off);\n+\tif (th-\u003edoff \u003c 5)\n+\t\treturn NULL;\n+\n+\tdata_off = th_off + (th-\u003edoff \u003c\u003c 2);\n+\tif (len \u003c= data_off)\n+\t\treturn NULL;\n+\n+\ttcp_win = FIELD_GET(QDMA_ETH_RXMSG_TCP_WIN_MASK, msg3);\n+\ttcp_ack_seq = le32_to_cpu(READ_ONCE(desc-\u003edata));\n+\tth-\u003eack_seq = cpu_to_be32(tcp_ack_seq);\n+\tth-\u003ewindow = cpu_to_be16(tcp_win);\n+\n+\t/* Check tcp timestamp option */\n+\tif (th-\u003edoff == (sizeof(*th) + TCPOLEN_TSTAMP_ALIGNED) / 4) {\n+\t\tu32 topt = get_unaligned_be32(th + 1);\n+\n+\t\tif (topt == ((TCPOPT_NOP \u003c\u003c 24) | (TCPOPT_NOP \u003c\u003c 16) |\n+\t\t\t     (TCPOPT_TIMESTAMP \u003c\u003c 8) | TCPOLEN_TIMESTAMP)) {\n+\t\t\tu8 *ptr = (u8 *)th + sizeof(*th) + 2 * sizeof(__be32);\n+\t\t\t__le32 tcp_ts_reply = READ_ONCE(desc-\u003etcp_ts_reply);\n+\n+\t\t\t/* The field is pre-zeroed in the posted descriptor,\n+\t\t\t * so a non-zero value is the hardware confirming the\n+\t\t\t * timestamp echo reply is valid. Leave TSecr\n+\t\t\t * untouched otherwise, since the hardware may not\n+\t\t\t * populate it for every aggregate.\n+\t\t\t */\n+\t\t\tif (tcp_ts_reply)\n+\t\t\t\tput_unaligned_be32(le32_to_cpu(tcp_ts_reply),\n+\t\t\t\t\t\t   ptr);\n+\t\t}\n+\t}\n+\n+\tif (ipv4) {\n+\t\tstruct iphdr *iph = (struct iphdr *)(e-\u003ebuf + l2_len);\n+\n+\t\tth-\u003echeck = ~tcp_v4_check(len - th_off, iph-\u003esaddr,\n+\t\t\t\t\t  iph-\u003edaddr, 0);\n+\t} else {\n+\t\tstruct ipv6hdr *ip6h = (struct ipv6hdr *)(e-\u003ebuf + l2_len);\n+\n+\t\tth-\u003echeck = ~tcp_v6_check(len - th_off, \u0026ip6h-\u003esaddr,\n+\t\t\t\t\t  \u0026ip6h-\u003edaddr, 0);\n+\t}\n+\n+\t/* Split network headers and payload to rely on GRO.\n+\t * We need to do it in the driver since the NIC does\n+\t * not support it.\n+\t */\n+\tskb = napi_alloc_skb(\u0026q-\u003enapi, data_off);\n+\tif (!skb)\n+\t\treturn NULL;\n+\n+\t__skb_put(skb, data_off);\n+\tmemcpy(skb-\u003edata, e-\u003ebuf, data_off);\n+\n+\tpage = virt_to_head_page(e-\u003ebuf);\n+\tdata_len = len - data_off;\n+\tshinfo = skb_shinfo(skb);\n+\tskb_add_rx_frag(skb, shinfo-\u003enr_frags, page,\n+\t\t\te-\u003ebuf + data_off - page_address(page), data_len,\n+\t\t\tq-\u003ebuf_size);\n+\n+\tshinfo-\u003egso_type = ipv4 ? SKB_GSO_TCPV4 : SKB_GSO_TCPV6;\n+\t/* HW does not report the per-segment MSS, so approximate it as\n+\t * the average segment size. The LRO engine always aggregates\n+\t * n-1 MSS-sized TCP segments plus one shorter tail for an\n+\t * aggregate of n segments, so this still re-segments into\n+\t * exactly agg_count segments, keeping gso_size/gso_segs and the\n+\t * packet accounting coherent, while never overestimating the MSS.\n+\t */\n+\tshinfo-\u003egso_size = DIV_ROUND_UP(data_len, agg_count);\n+\tshinfo-\u003egso_segs = agg_count;\n+\n+\tskb-\u003ecsum_start = skb_headroom(skb) + th_off;\n+\tskb-\u003ecsum_offset = offsetof(struct tcphdr, check);\n+\tskb-\u003eip_summed = CHECKSUM_PARTIAL;\n+\n+\treturn skb;\n+}\n+\n+static struct sk_buff *airoha_qdma_build_rx_skb(struct airoha_queue *q,\n+\t\t\t\t\t\tstruct airoha_qdma_desc *desc,\n+\t\t\t\t\t\tstruct airoha_queue_entry *e,\n+\t\t\t\t\t\tstruct net_device *dev,\n+\t\t\t\t\t\tu32 msg1, u32 len)\n+{\n+\tu32 msg2 = le32_to_cpu(READ_ONCE(desc-\u003emsg2));\n+\tint qid = q - \u0026q-\u003eqdma-\u003eq_rx[0];\n+\tstruct sk_buff *skb;\n+\tu32 agg_count = 1;\n+\n+\tif (airoha_qdma_is_lro_queue(q)) {\n+\t\tagg_count = FIELD_GET(QDMA_ETH_RXMSG_AGG_COUNT_MASK, msg2);\n+\t\tif (agg_count \u003e AIROHA_RXQ_LRO_MAX_AGG_COUNT)\n+\t\t\treturn NULL;\n+\t}\n+\n+\tif (agg_count \u003e 1) { /* LRO */\n+\t\tskb = airoha_qdma_lro_rx_skb(q, desc, e, msg1, msg2, len,\n+\t\t\t\t\t     agg_count);\n+\t\tif (!skb)\n+\t\t\treturn NULL;\n+\t} else {\n+\t\tskb = napi_build_skb(e-\u003ebuf - AIROHA_RX_HEADROOM, q-\u003ebuf_size);\n+\t\tif (!skb)\n+\t\t\treturn NULL;\n+\n+\t\tskb_reserve(skb, AIROHA_RX_HEADROOM);\n+\t\t__skb_put(skb, len);\n+\t\tskb-\u003eip_summed = CHECKSUM_UNNECESSARY;\n+\t}\n+\n+\tskb_mark_for_recycle(skb);\n+\tskb-\u003edev = dev;\n+\tskb_record_rx_queue(skb, qid);\n+\tskb-\u003eprotocol = eth_type_trans(skb, dev);\n+\n+\treturn skb;\n+}\n+\n static int airoha_qdma_rx_process(struct airoha_queue *q, int budget)\n {\n \tenum dma_data_direction dir = page_pool_get_dma_dir(q-\u003epage_pool);\n-\tstruct airoha_qdma *qdma = q-\u003eqdma;\n-\tstruct airoha_eth *eth = qdma-\u003eeth;\n-\tint qid = q - \u0026qdma-\u003eq_rx[0];\n+\tstruct airoha_eth *eth = q-\u003eqdma-\u003eeth;\n \tint done = 0;\n \n \twhile (done \u003c budget) {\n@@ -696,20 +960,14 @@ static int airoha_qdma_rx_process(struct airoha_queue *q, int budget)\n \t\tif (IS_ERR(dev))\n \t\t\tgoto free_frag;\n \n+\t\tmsg1 = le32_to_cpu(READ_ONCE(desc-\u003emsg1));\n \t\tnetdev = netdev_from_priv(dev);\n+\n \t\tif (!q-\u003eskb) { /* first buffer */\n-\t\t\tq-\u003eskb = napi_build_skb(e-\u003ebuf - AIROHA_RX_HEADROOM,\n-\t\t\t\t\t\tq-\u003ebuf_size);\n+\t\t\tq-\u003eskb = airoha_qdma_build_rx_skb(q, desc, e, netdev,\n+\t\t\t\t\t\t\t  msg1, len);\n \t\t\tif (!q-\u003eskb)\n \t\t\t\tgoto free_frag;\n-\n-\t\t\tskb_reserve(q-\u003eskb, AIROHA_RX_HEADROOM);\n-\t\t\t__skb_put(q-\u003eskb, len);\n-\t\t\tskb_mark_for_recycle(q-\u003eskb);\n-\t\t\tq-\u003eskb-\u003edev = netdev;\n-\t\t\tq-\u003eskb-\u003eprotocol = eth_type_trans(q-\u003eskb, netdev);\n-\t\t\tq-\u003eskb-\u003eip_summed = CHECKSUM_UNNECESSARY;\n-\t\t\tskb_record_rx_queue(q-\u003eskb, qid);\n \t\t} else { /* scattered frame */\n \t\t\tstruct skb_shared_info *shinfo = skb_shinfo(q-\u003eskb);\n \t\t\tint nr_frags = shinfo-\u003enr_frags;\n@@ -742,7 +1000,6 @@ static int airoha_qdma_rx_process(struct airoha_queue *q, int budget)\n \t\t\t\t\t\t  \u0026port-\u003edsa_meta[sptag]-\u003edst);\n \t\t}\n \n-\t\tmsg1 = le32_to_cpu(READ_ONCE(desc-\u003emsg1));\n \t\thash = FIELD_GET(AIROHA_RXD4_FOE_ENTRY, msg1);\n \t\tif (hash != AIROHA_RXD4_FOE_ENTRY)\n \t\t\tskb_set_hash(q-\u003eskb, jhash_1word(hash, 0),\n@@ -800,12 +1057,10 @@ static int airoha_qdma_rx_napi_poll(struct napi_struct *napi, int budget)\n static int airoha_qdma_init_rx_queue(struct airoha_queue *q,\n \t\t\t\t     struct airoha_qdma *qdma, int ndesc)\n {\n-\tconst struct page_pool_params pp_params = {\n-\t\t.order = 0,\n+\tstruct page_pool_params pp_params = {\n \t\t.pool_size = 256,\n \t\t.flags = PP_FLAG_DMA_MAP | PP_FLAG_DMA_SYNC_DEV,\n \t\t.dma_dir = DMA_FROM_DEVICE,\n-\t\t.max_len = PAGE_SIZE,\n \t\t.nid = NUMA_NO_NODE,\n \t\t.dev = qdma-\u003eeth-\u003edev,\n \t\t.napi = \u0026q-\u003enapi,\n@@ -813,9 +1068,10 @@ static int airoha_qdma_init_rx_queue(struct airoha_queue *q,\n \tstruct airoha_eth *eth = qdma-\u003eeth;\n \tint qid = q - \u0026qdma-\u003eq_rx[0], thr;\n \tdma_addr_t dma_addr;\n+\tbool lro_q;\n \n-\tq-\u003ebuf_size = PAGE_SIZE / 2;\n \tq-\u003eqdma = qdma;\n+\tlro_q = airoha_qdma_is_lro_queue(q);\n \n \tq-\u003eentry = devm_kzalloc(eth-\u003edev, ndesc * sizeof(*q-\u003eentry),\n \t\t\t\tGFP_KERNEL);\n@@ -827,6 +1083,9 @@ static int airoha_qdma_init_rx_queue(struct airoha_queue *q,\n \tif (!q-\u003edesc)\n \t\treturn -ENOMEM;\n \n+\tpp_params.order = lro_q ? AIROHA_LRO_PAGE_ORDER : 0;\n+\tpp_params.max_len = PAGE_SIZE \u003c\u003c pp_params.order;\n+\n \tq-\u003epage_pool = page_pool_create(\u0026pp_params);\n \tif (IS_ERR(q-\u003epage_pool)) {\n \t\tint err = PTR_ERR(q-\u003epage_pool);\n@@ -835,6 +1094,7 @@ static int airoha_qdma_init_rx_queue(struct airoha_queue *q,\n \t\treturn err;\n \t}\n \n+\tq-\u003ebuf_size = lro_q ? pp_params.max_len : pp_params.max_len / 2;\n \tq-\u003endesc = ndesc;\n \tnetif_napi_add(eth-\u003enapi_dev, \u0026q-\u003enapi, airoha_qdma_rx_napi_poll);\n \n@@ -848,7 +1108,12 @@ static int airoha_qdma_init_rx_queue(struct airoha_queue *q,\n \t\t\tFIELD_PREP(RX_RING_THR_MASK, thr));\n \tairoha_qdma_rmw(qdma, REG_RX_DMA_IDX(qid), RX_RING_DMA_IDX_MASK,\n \t\t\tFIELD_PREP(RX_RING_DMA_IDX_MASK, q-\u003ehead));\n-\tairoha_qdma_set(qdma, REG_RX_SCATTER_CFG(qid), RX_RING_SG_EN_MASK);\n+\tif (lro_q)\n+\t\tairoha_qdma_clear(qdma, REG_RX_SCATTER_CFG(qid),\n+\t\t\t\t  RX_RING_SG_EN_MASK);\n+\telse\n+\t\tairoha_qdma_set(qdma, REG_RX_SCATTER_CFG(qid),\n+\t\t\t\tRX_RING_SG_EN_MASK);\n \n \tairoha_qdma_fill_rx_queue(q);\n \n@@ -870,6 +1135,7 @@ static void airoha_qdma_cleanup_rx_queue(struct airoha_queue *q)\n \t\t\t\t\tpage_pool_get_dma_dir(q-\u003epage_pool));\n \t\tpage_pool_put_full_page(q-\u003epage_pool, page, false);\n \t\t/* Reset DMA descriptor */\n+\t\tWRITE_ONCE(desc-\u003etcp_ts_reply, 0);\n \t\tWRITE_ONCE(desc-\u003ectrl, 0);\n \t\tWRITE_ONCE(desc-\u003eaddr, 0);\n \t\tWRITE_ONCE(desc-\u003edata, 0);\n@@ -1896,6 +2162,34 @@ static void airoha_update_hw_stats(struct airoha_gdm_dev *dev)\n \tspin_unlock(\u0026port-\u003estats_lock);\n }\n \n+static void airoha_update_netdev_features(struct airoha_gdm_dev *dev)\n+{\n+\tstruct airoha_eth *eth = dev-\u003eeth;\n+\tint i;\n+\n+\tfor (i = 0; i \u003c ARRAY_SIZE(eth-\u003eports); i++) {\n+\t\tstruct airoha_gdm_port *port = eth-\u003eports[i];\n+\t\tint j;\n+\n+\t\tif (!port)\n+\t\t\tcontinue;\n+\n+\t\tfor (j = 0; j \u003c ARRAY_SIZE(port-\u003edevs); j++) {\n+\t\t\tstruct airoha_gdm_dev *iter_dev = port-\u003edevs[j];\n+\t\t\tstruct net_device *netdev;\n+\n+\t\t\tif (!iter_dev)\n+\t\t\t\tcontinue;\n+\n+\t\t\tnetdev = netdev_from_priv(iter_dev);\n+\t\t\tif (netdev-\u003ereg_state != NETREG_REGISTERED)\n+\t\t\t\tcontinue;\n+\n+\t\t\tnetdev_update_features(netdev);\n+\t\t}\n+\t}\n+}\n+\n static void airoha_dev_set_xmit_frame_size(struct net_device *netdev)\n {\n \tstruct airoha_gdm_dev *dev = netdev_priv(netdev);\n@@ -1913,14 +2207,28 @@ static int airoha_dev_open(struct net_device *netdev)\n \tstruct airoha_gdm_port *port = dev-\u003eport;\n \tu32 pse_port = FE_PSE_PORT_PPE1;\n \tstruct airoha_qdma *qdma;\n-\tint err;\n+\tint qdma_id, err;\n+\n+\t/* HW GRO is configured on the QDMA and it is shared between\n+\t * all the devices using it. Refuse to open a second device on\n+\t * the same QDMA if HW GRO is enabled on any device sharing it\n+\t * or if this device has HW GRO enabled in its feature set.\n+\t */\n+\tqdma = airoha_qdma_deref(dev);\n+\tqdma_id = qdma - \u0026qdma-\u003eeth-\u003eqdma[0];\n+\n+\tif (qdma-\u003eusers \u003e 1 \u0026\u0026 (airoha_fe_lro_is_enabled(qdma-\u003eeth, qdma_id) ||\n+\t\t\t\t(netdev-\u003efeatures \u0026 NETIF_F_GRO_HW))) {\n+\t\tnetdev_warn(netdev, \"required to disable HW GRO on QDMA%d\\n\",\n+\t\t\t    qdma_id);\n+\t\treturn -EBUSY;\n+\t}\n \n \tnetif_tx_start_all_queues(netdev);\n \terr = airoha_set_vip_for_gdm_port(dev, true);\n \tif (err)\n \t\treturn err;\n \n-\tqdma = airoha_qdma_deref(dev);\n \tif (netdev_uses_dsa(netdev))\n \t\tairoha_fe_set(qdma-\u003eeth, REG_GDM_INGRESS_CFG(port-\u003eid),\n \t\t\t      GDM_STAG_EN_MASK);\n@@ -1937,6 +2245,9 @@ static int airoha_dev_open(struct net_device *netdev)\n \tairoha_set_gdm_port_fwd_cfg(qdma-\u003eeth, REG_GDM_FWD_CFG(port-\u003eid),\n \t\t\t\t    pse_port);\n \n+\tif (netdev-\u003efeatures \u0026 NETIF_F_GRO_HW)\n+\t\tairoha_dev_lro_enable(dev);\n+\n \treturn 0;\n }\n \n@@ -1954,6 +2265,10 @@ static int airoha_dev_stop(struct net_device *netdev)\n \t\tairoha_set_gdm_port_fwd_cfg(dev-\u003eeth,\n \t\t\t\t\t    REG_GDM_FWD_CFG(port-\u003eid),\n \t\t\t\t\t    FE_PSE_PORT_DROP);\n+\n+\tif (netdev-\u003efeatures \u0026 NETIF_F_GRO_HW)\n+\t\tairoha_dev_lro_disable(dev);\n+\n \treturn 0;\n }\n \n@@ -2115,11 +2430,14 @@ static void airoha_dev_set_qdma(struct airoha_gdm_dev *dev)\n \tqdma = \u0026eth-\u003eqdma[!airoha_is_lan_gdm_dev(dev)];\n \tcur_qdma = airoha_qdma_deref(dev);\n \n-\tif (cur_qdma)\n+\tif (cur_qdma) {\n \t\tnetif_tx_stop_all_queues(netdev);\n+\t\tairoha_dev_lro_disable(dev);\n+\t}\n \n \trcu_assign_pointer(dev-\u003eqdma, qdma);\n \tnetdev-\u003eirq = qdma-\u003eirq_banks[0].irq;\n+\tqdma-\u003eusers++;\n \tsynchronize_rcu();\n \n \tppe_id = !airoha_is_lan_gdm_dev(dev) \u0026\u0026 airoha_ppe_is_enabled(eth, 1);\n@@ -2136,8 +2454,12 @@ static void airoha_dev_set_qdma(struct airoha_gdm_dev *dev)\n \t\t\tairoha_qdma_rr(qdma, REG_CNTR_VAL((i \u003c\u003c 1) + 1));\n \t}\n \n-\tif (cur_qdma)\n+\tif (cur_qdma) {\n+\t\tcur_qdma-\u003eusers--;\n \t\tnetif_tx_wake_all_queues(netdev);\n+\t}\n+\n+\tairoha_update_netdev_features(dev);\n }\n \n static int airoha_dev_init(struct net_device *netdev)\n@@ -2288,6 +2610,32 @@ int airoha_get_fe_port(struct airoha_gdm_dev *dev)\n \t}\n }\n \n+static netdev_features_t airoha_dev_fix_features(struct net_device *netdev,\n+\t\t\t\t\t\t netdev_features_t features)\n+{\n+\tstruct airoha_gdm_dev *dev = netdev_priv(netdev);\n+\tstruct airoha_qdma *qdma;\n+\n+\tqdma = airoha_qdma_deref(dev);\n+\tif (qdma-\u003eusers \u003e 1)\n+\t\tfeatures \u0026= ~NETIF_F_GRO_HW;\n+\n+\treturn features;\n+}\n+\n+static int airoha_dev_set_features(struct net_device *netdev,\n+\t\t\t\t   netdev_features_t features)\n+{\n+\tstruct airoha_gdm_dev *dev = netdev_priv(netdev);\n+\n+\tif (features \u0026 NETIF_F_GRO_HW)\n+\t\tairoha_dev_lro_enable(dev);\n+\telse\n+\t\tairoha_dev_lro_disable(dev);\n+\n+\treturn 0;\n+}\n+\n static netdev_tx_t airoha_dev_xmit(struct sk_buff *skb,\n \t\t\t\t   struct net_device *netdev)\n {\n@@ -3199,7 +3547,7 @@ static int airoha_enable_qos_for_gdm34(struct net_device *netdev,\n \tstruct airoha_gdm_dev *wan_dev, *dev = netdev_priv(netdev);\n \tstruct airoha_gdm_port *port = dev-\u003eport;\n \tstruct airoha_eth *eth = dev-\u003eeth;\n-\tint err = -EBUSY;\n+\tint err;\n \n \tif (port-\u003eid != AIROHA_GDM3_IDX \u0026\u0026\n \t    port-\u003eid != AIROHA_GDM4_IDX) {\n@@ -3218,6 +3566,7 @@ static int airoha_enable_qos_for_gdm34(struct net_device *netdev,\n \t\t    wan_dev-\u003eport-\u003eid == AIROHA_GDM2_IDX) {\n \t\t\tNL_SET_ERR_MSG_MOD(extack,\n \t\t\t\t\t   \"QoS configured for WAN device\");\n+\t\t\terr = -EBUSY;\n \t\t\tgoto error_unlock;\n \t\t}\n \t\tairoha_disable_qos_for_gdm34(netdev_from_priv(wan_dev));\n@@ -3343,6 +3692,8 @@ static const struct net_device_ops airoha_netdev_ops = {\n \t.ndo_stop\t\t= airoha_dev_stop,\n \t.ndo_change_mtu\t\t= airoha_dev_change_mtu,\n \t.ndo_select_queue\t= airoha_dev_select_queue,\n+\t.ndo_fix_features\t= airoha_dev_fix_features,\n+\t.ndo_set_features\t= airoha_dev_set_features,\n \t.ndo_start_xmit\t\t= airoha_dev_xmit,\n \t.ndo_get_stats64        = airoha_dev_get_stats64,\n \t.ndo_set_mac_address\t= airoha_dev_set_macaddr,\n@@ -3430,11 +3781,9 @@ static int airoha_alloc_gdm_device(struct airoha_eth *eth,\n \tnetdev-\u003eethtool_ops = \u0026airoha_ethtool_ops;\n \tnetdev-\u003emax_mtu = AIROHA_MAX_MTU;\n \tnetdev-\u003ewatchdog_timeo = 5 * HZ;\n-\tnetdev-\u003ehw_features = NETIF_F_IP_CSUM | NETIF_F_RXCSUM | NETIF_F_TSO6 |\n-\t\t\t      NETIF_F_IPV6_CSUM | NETIF_F_SG | NETIF_F_TSO |\n-\t\t\t      NETIF_F_HW_TC;\n-\tnetdev-\u003efeatures |= netdev-\u003ehw_features;\n-\tnetdev-\u003evlan_features = netdev-\u003ehw_features;\n+\tnetdev-\u003ehw_features = AIROHA_HW_FEATURES | NETIF_F_GRO_HW;\n+\tnetdev-\u003efeatures |= AIROHA_HW_FEATURES;\n+\tnetdev-\u003evlan_features = AIROHA_HW_FEATURES;\n \tSET_NETDEV_DEV(netdev, eth-\u003edev);\n \n \t/* reserve hw queues for HTB offloading */\ndiff --git a/drivers/net/ethernet/airoha/airoha_eth.h b/drivers/net/ethernet/airoha/airoha_eth.h\nindex fa9a8edce22ff..84cadbb538666 100644\n--- a/drivers/net/ethernet/airoha/airoha_eth.h\n+++ b/drivers/net/ethernet/airoha/airoha_eth.h\n@@ -45,6 +45,18 @@\n \t (_n) == 15 ? 128 :\t\t\\\n \t (_n) ==  0 ? 1024 : 16)\n \n+#define AIROHA_LRO_PAGE_ORDER\t\tget_order(SZ_16K)\n+#define AIROHA_MAX_NUM_LRO_QUEUES\t8\n+#define AIROHA_RXQ_LRO_EN_MASK\t\tGENMASK(31, 24)\n+#define AIROHA_RXQ_LRO_MAX_AGG_COUNT\t64\n+#define AIROHA_RXQ_LRO_MAX_AGG_TIME\t100\n+#define AIROHA_RXQ_LRO_MAX_AGE_TIME\t2000\n+\n+#define AIROHA_HW_FEATURES\t\t\t\\\n+\t(NETIF_F_IP_CSUM | NETIF_F_RXCSUM |\t\\\n+\t NETIF_F_TSO6 | NETIF_F_IPV6_CSUM |\t\\\n+\t NETIF_F_SG | NETIF_F_TSO | NETIF_F_HW_TC)\n+\n #define PSE_RSV_PAGES\t\t\t128\n #define PSE_QUEUE_RSV_PAGES\t\t64\n \n@@ -560,6 +572,8 @@ struct airoha_qdma {\n \tstruct airoha_eth *eth;\n \tvoid __iomem *regs;\n \n+\tint users;\n+\n \tstruct airoha_irq_bank irq_banks[AIROHA_MAX_NUM_IRQ_BANKS];\n \n \tstruct airoha_tx_irq_queue q_tx_irq[AIROHA_NUM_TX_IRQ];\n@@ -714,6 +728,18 @@ static inline bool airoha_is_7583(struct airoha_eth *eth)\n \treturn eth-\u003esoc-\u003eversion == 0x7583;\n }\n \n+static inline bool airoha_qdma_is_lro_queue(struct airoha_queue *q)\n+{\n+\tstruct airoha_qdma *qdma = q-\u003eqdma;\n+\tint qid = q - \u0026qdma-\u003eq_rx[0];\n+\n+\t/* EN7581 SoC supports at most 8 LRO rx queues */\n+\tBUILD_BUG_ON(hweight32(AIROHA_RXQ_LRO_EN_MASK) \u003e\n+\t\t     AIROHA_MAX_NUM_LRO_QUEUES);\n+\n+\treturn !!(AIROHA_RXQ_LRO_EN_MASK \u0026 BIT(qid));\n+}\n+\n int airoha_get_fe_port(struct airoha_gdm_dev *dev);\n bool airoha_is_valid_gdm_dev(struct airoha_eth *eth,\n \t\t\t     struct airoha_gdm_dev *dev);\ndiff --git a/drivers/net/ethernet/airoha/airoha_regs.h b/drivers/net/ethernet/airoha/airoha_regs.h\nindex 442b48c9b991e..07dd04859fde8 100644\n--- a/drivers/net/ethernet/airoha/airoha_regs.h\n+++ b/drivers/net/ethernet/airoha/airoha_regs.h\n@@ -122,6 +122,20 @@\n #define CDM_CRSN_QSEL_REASON_MASK(_n)\t\\\n \tGENMASK(4 + (((_n) % 4) \u003c\u003c 3),\t(((_n) % 4) \u003c\u003c 3))\n \n+#define REG_CDM_LRO_RXQ(_n, _m)\t\t(CDM_BASE(_n) + 0x78 + ((_m) \u0026 0x4))\n+#define LRO_RXQ_MASK(_n)\t\tGENMASK(4 + (((_n) \u0026 0x3) \u003c\u003c 3), ((_n) \u0026 0x3) \u003c\u003c 3)\n+\n+#define REG_CDM_LRO_EN(_n)\t\t(CDM_BASE(_n) + 0x80)\n+#define LRO_RXQ_EN_MASK\t\t\tGENMASK(7, 0)\n+\n+#define REG_CDM_LRO_LIMIT(_n)\t\t(CDM_BASE(_n) + 0x84)\n+#define CDM_LRO_AGG_NUM_MASK\t\tGENMASK(23, 16)\n+#define CDM_LRO_AGG_SIZE_MASK\t\tGENMASK(15, 0)\n+\n+#define REG_CDM_LRO_AGE_TIME(_n)\t(CDM_BASE(_n) + 0x88)\n+#define CDM_LRO_AGE_TIME_MASK\t\tGENMASK(31, 16)\n+#define CDM_LRO_AGG_TIME_MASK\t\tGENMASK(15, 0)\n+\n #define REG_GDM_FWD_CFG(_n)\t\tGDM_BASE(_n)\n #define GDM_PAD_EN_MASK\t\t\tBIT(28)\n #define GDM_DROP_CRC_ERR_MASK\t\tBIT(23)\n@@ -887,9 +901,16 @@\n #define QDMA_ETH_RXMSG_SPORT_MASK\tGENMASK(25, 21)\n #define QDMA_ETH_RXMSG_CRSN_MASK\tGENMASK(20, 16)\n #define QDMA_ETH_RXMSG_PPE_ENTRY_MASK\tGENMASK(15, 0)\n+/* RX MSG2 */\n+#define QDMA_ETH_RXMSG_AGG_COUNT_MASK\tGENMASK(31, 24)\n+#define QDMA_ETH_RXMSG_L2_LEN_MASK\tGENMASK(6, 0)\n+/* RX MSG3 */\n+/* max aggregated size in bytes */\n+#define QDMA_ETH_RXMSG_AGG_LEN_MASK\tGENMASK(31, 16)\n+#define QDMA_ETH_RXMSG_TCP_WIN_MASK\tGENMASK(15, 0)\n \n struct airoha_qdma_desc {\n-\t__le32 rsv;\n+\t__le32 tcp_ts_reply;\n \t__le32 ctrl;\n \t__le32 addr;\n \t__le32 data;\n"
}

2/1 2026/08/31 07:26 agent patch-evaluator
0m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch adds LRO/GRO HW support to the Airoha SoC Gigabit Ethernet driver (drivers/net/ethernet/airoha/). This is a platform driver specifically for Airoha EN7581/AN7583 SoCs, which requires specific SoC hardware not emulated in standard virtualized fuzzing environments (e.g., QEMU or GCE). Hence, these code paths are unreachable during fuzzing.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer.
Your job is to review a provided patch series and determine
if it makes functional changes to the kernel that should be fuzzed.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively
use your code access tools to examine the actual source code and confirm any assumptions.

Return WorthFuzzing=false if the patch only contains:
- Modifications to Documentation/, Kconfig files, or code comments.
- Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints.
- Changes to numeric constants or macros that do not functionally alter execution flow.
- Code paths that are impossible to reach in virtualized environments like GCE or QEMU,
  even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim).
- Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed,
  ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU.
- Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove)
  that are executed only during PCI hot-unplug or sysfs driver unbind operations.

If it modifies reachable core kernel logic, drivers, or architectures, use your code search
tools to verify the code can be executed, then return WorthFuzzing=true.

When returning WorthFuzzing=true, you MUST ALSO:
1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols.
   Avoid listing generic hot-path functions to prevent skewed test distributions.
   Prefer non-static, non-inlined API entrypoint functions over internal static helper functions
   (which are inlined by the compiler and do not have distinct symbol addresses).
2. Identify any specific CONFIG_ options required to properly test this new/modified feature.
   Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions.
   Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs
   needed for Kbuild to compile the code statically into vmlinux. List them in the EnableConfigs
   output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
For your convenience, here is the diff of the changes:
commit fd1d3449234e1546063eaaa9536f1eb12cbebec4
Author: syz-cluster <triage@syzkaller.com>
Date:   Mon Aug 31 07:26:53 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/ethernet/airoha/airoha_eth.c b/drivers/net/ethernet/airoha/airoha_eth.c
index 64619e9a704dd..57b19d7b5bd79 100644
--- a/drivers/net/ethernet/airoha/airoha_eth.c
+++ b/drivers/net/ethernet/airoha/airoha_eth.c
@@ -10,8 +10,10 @@
 #include <linux/tcp.h>
 #include <linux/u64_stats_sync.h>
 #include <net/dst_metadata.h>
+#include <net/ip6_checksum.h>
 #include <net/page_pool/helpers.h>
 #include <net/pkt_cls.h>
+#include <net/tcp.h>
 #include <uapi/linux/ppp_defs.h>
 
 #include "airoha_regs.h"
@@ -491,6 +493,88 @@ static void airoha_fe_crsn_qsel_init(struct airoha_eth *eth)
 				 CDM_CRSN_QSEL_Q1));
 }
 
+static void airoha_fe_lro_rxq_enable(struct airoha_eth *eth, int qdma_id,
+				     int lro_queue_index, int qid,
+				     int buf_size)
+{
+	int id = qdma_id + 1;
+
+	airoha_fe_rmw(eth, REG_CDM_LRO_LIMIT(id),
+		      CDM_LRO_AGG_NUM_MASK | CDM_LRO_AGG_SIZE_MASK,
+		      FIELD_PREP(CDM_LRO_AGG_SIZE_MASK, buf_size) |
+		      FIELD_PREP(CDM_LRO_AGG_NUM_MASK,
+				 AIROHA_RXQ_LRO_MAX_AGG_COUNT));
+	airoha_fe_rmw(eth, REG_CDM_LRO_AGE_TIME(id),
+		      CDM_LRO_AGE_TIME_MASK | CDM_LRO_AGG_TIME_MASK,
+		      FIELD_PREP(CDM_LRO_AGE_TIME_MASK,
+				 AIROHA_RXQ_LRO_MAX_AGE_TIME) |
+		      FIELD_PREP(CDM_LRO_AGG_TIME_MASK,
+				 AIROHA_RXQ_LRO_MAX_AGG_TIME));
+	airoha_fe_rmw(eth, REG_CDM_LRO_RXQ(id, lro_queue_index),
+		      LRO_RXQ_MASK(lro_queue_index),
+		      __field_prep(LRO_RXQ_MASK(lro_queue_index), qid));
+	airoha_fe_set(eth, REG_CDM_LRO_EN(id), BIT(lro_queue_index));
+}
+
+static void airoha_fe_lro_disable(struct airoha_eth *eth, int qdma_id)
+{
+	int i, id = qdma_id + 1;
+
+	airoha_fe_clear(eth, REG_CDM_LRO_EN(id), LRO_RXQ_EN_MASK);
+	airoha_fe_clear(eth, REG_CDM_LRO_LIMIT(id),
+			CDM_LRO_AGG_NUM_MASK | CDM_LRO_AGG_SIZE_MASK);
+	airoha_fe_clear(eth, REG_CDM_LRO_AGE_TIME(id),
+			CDM_LRO_AGE_TIME_MASK | CDM_LRO_AGG_TIME_MASK);
+	for (i = 0; i < AIROHA_MAX_NUM_LRO_QUEUES; i++)
+		airoha_fe_clear(eth, REG_CDM_LRO_RXQ(id, i), LRO_RXQ_MASK(i));
+}
+
+static bool airoha_fe_lro_is_enabled(struct airoha_eth *eth, int qdma_id)
+{
+	return airoha_fe_get(eth, REG_CDM_LRO_EN(qdma_id + 1),
+			     LRO_RXQ_EN_MASK);
+}
+
+static void airoha_dev_lro_enable(struct airoha_gdm_dev *dev)
+{
+	struct airoha_qdma *qdma = airoha_qdma_deref(dev);
+	struct airoha_eth *eth = qdma->eth;
+	int qdma_id = qdma - &eth->qdma[0];
+	int i, lro_queue_index = 0;
+
+	if (airoha_fe_lro_is_enabled(eth, qdma_id))
+		return;
+
+	for (i = 0; i < ARRAY_SIZE(qdma->q_rx); i++) {
+		struct airoha_queue *q = &qdma->q_rx[i];
+		u32 size;
+
+		if (!q->ndesc)
+			continue;
+
+		if (!airoha_qdma_is_lro_queue(q))
+			continue;
+
+		size = SKB_WITH_OVERHEAD(AIROHA_RX_LEN(q->buf_size));
+		size = min_t(u32, size, AIROHA_MAX_RX_SIZE);
+		airoha_fe_lro_rxq_enable(eth, qdma_id, lro_queue_index, i,
+					 size);
+		lro_queue_index++;
+	}
+}
+
+static void airoha_dev_lro_disable(struct airoha_gdm_dev *dev)
+{
+	struct airoha_qdma *qdma = airoha_qdma_deref(dev);
+	struct airoha_eth *eth = qdma->eth;
+	int qdma_id = qdma - &eth->qdma[0];
+
+	if (!airoha_fe_lro_is_enabled(eth, qdma_id))
+		return;
+
+	airoha_fe_lro_disable(eth, qdma_id);
+}
+
 static int airoha_fe_init(struct airoha_eth *eth)
 {
 	airoha_fe_maccr_init(eth);
@@ -616,6 +700,7 @@ static int airoha_qdma_fill_rx_queue(struct airoha_queue *q)
 		e->dma_addr = page_pool_get_dma_addr(page) + offset;
 		e->dma_len = SKB_WITH_OVERHEAD(AIROHA_RX_LEN(q->buf_size));
 
+		WRITE_ONCE(desc->tcp_ts_reply, 0);
 		val = FIELD_PREP(QDMA_DESC_LEN_MASK, e->dma_len);
 		WRITE_ONCE(desc->ctrl, cpu_to_le32(val));
 		WRITE_ONCE(desc->addr, cpu_to_le32(e->dma_addr));
@@ -657,12 +742,191 @@ airoha_qdma_get_gdm_dev(struct airoha_eth *eth, struct airoha_qdma_desc *desc)
 	return port->devs[d] ? port->devs[d] : ERR_PTR(-ENODEV);
 }
 
+static struct sk_buff *airoha_qdma_lro_rx_skb(struct airoha_queue *q,
+					      struct airoha_qdma_desc *desc,
+					      struct airoha_queue_entry *e,
+					      u32 msg1, u32 msg2, u32 len,
+					      u32 agg_count)
+{
+	u32 msg3 = le32_to_cpu(READ_ONCE(desc->msg3));
+	u32 th_off, tcp_ack_seq, data_off, data_len;
+	struct skb_shared_info *shinfo;
+	u16 tcp_win, l2_len;
+	struct sk_buff *skb;
+	struct tcphdr *th;
+	struct page *page;
+	bool ipv4, ipv6;
+
+	ipv4 = FIELD_GET(QDMA_ETH_RXMSG_IP4_MASK, msg1);
+	ipv6 = FIELD_GET(QDMA_ETH_RXMSG_IP6_MASK, msg1);
+	if (!ipv4 && !ipv6)
+		return NULL;
+
+	l2_len = FIELD_GET(QDMA_ETH_RXMSG_L2_LEN_MASK, msg2);
+
+	if (ipv4) {
+		struct iphdr *iph;
+
+		if (len < l2_len + sizeof(*iph))
+			return NULL;
+
+		iph = (struct iphdr *)(e->buf + l2_len);
+		if (iph->protocol != IPPROTO_TCP)
+			return NULL;
+
+		if (iph->ihl < 5)
+			return NULL;
+
+		th_off = l2_len + (iph->ihl << 2);
+		if (len < th_off)
+			return NULL;
+
+		iph->tot_len = cpu_to_be16(len - l2_len);
+		iph->check = 0;
+		iph->check = ip_fast_csum((void *)iph, iph->ihl);
+	} else {
+		struct ipv6hdr *ip6h;
+
+		th_off = l2_len + sizeof(*ip6h);
+		if (len < th_off)
+			return NULL;
+
+		ip6h = (struct ipv6hdr *)(e->buf + l2_len);
+		if (ip6h->nexthdr != NEXTHDR_TCP)
+			return NULL;
+
+		ip6h->payload_len = cpu_to_be16(len - th_off);
+	}
+
+	if (len < th_off + sizeof(*th))
+		return NULL;
+
+	th = (struct tcphdr *)(e->buf + th_off);
+	if (th->doff < 5)
+		return NULL;
+
+	data_off = th_off + (th->doff << 2);
+	if (len <= data_off)
+		return NULL;
+
+	tcp_win = FIELD_GET(QDMA_ETH_RXMSG_TCP_WIN_MASK, msg3);
+	tcp_ack_seq = le32_to_cpu(READ_ONCE(desc->data));
+	th->ack_seq = cpu_to_be32(tcp_ack_seq);
+	th->window = cpu_to_be16(tcp_win);
+
+	/* Check tcp timestamp option */
+	if (th->doff == (sizeof(*th) + TCPOLEN_TSTAMP_ALIGNED) / 4) {
+		u32 topt = get_unaligned_be32(th + 1);
+
+		if (topt == ((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |
+			     (TCPOPT_TIMESTAMP << 8) | TCPOLEN_TIMESTAMP)) {
+			u8 *ptr = (u8 *)th + sizeof(*th) + 2 * sizeof(__be32);
+			__le32 tcp_ts_reply = READ_ONCE(desc->tcp_ts_reply);
+
+			/* The field is pre-zeroed in the posted descriptor,
+			 * so a non-zero value is the hardware confirming the
+			 * timestamp echo reply is valid. Leave TSecr
+			 * untouched otherwise, since the hardware may not
+			 * populate it for every aggregate.
+			 */
+			if (tcp_ts_reply)
+				put_unaligned_be32(le32_to_cpu(tcp_ts_reply),
+						   ptr);
+		}
+	}
+
+	if (ipv4) {
+		struct iphdr *iph = (struct iphdr *)(e->buf + l2_len);
+
+		th->check = ~tcp_v4_check(len - th_off, iph->saddr,
+					  iph->daddr, 0);
+	} else {
+		struct ipv6hdr *ip6h = (struct ipv6hdr *)(e->buf + l2_len);
+
+		th->check = ~tcp_v6_check(len - th_off, &ip6h->saddr,
+					  &ip6h->daddr, 0);
+	}
+
+	/* Split network headers and payload to rely on GRO.
+	 * We need to do it in the driver since the NIC does
+	 * not support it.
+	 */
+	skb = napi_alloc_skb(&q->napi, data_off);
+	if (!skb)
+		return NULL;
+
+	__skb_put(skb, data_off);
+	memcpy(skb->data, e->buf, data_off);
+
+	page = virt_to_head_page(e->buf);
+	data_len = len - data_off;
+	shinfo = skb_shinfo(skb);
+	skb_add_rx_frag(skb, shinfo->nr_frags, page,
+			e->buf + data_off - page_address(page), data_len,
+			q->buf_size);
+
+	shinfo->gso_type = ipv4 ? SKB_GSO_TCPV4 : SKB_GSO_TCPV6;
+	/* HW does not report the per-segment MSS, so approximate it as
+	 * the average segment size. The LRO engine always aggregates
+	 * n-1 MSS-sized TCP segments plus one shorter tail for an
+	 * aggregate of n segments, so this still re-segments into
+	 * exactly agg_count segments, keeping gso_size/gso_segs and the
+	 * packet accounting coherent, while never overestimating the MSS.
+	 */
+	shinfo->gso_size = DIV_ROUND_UP(data_len, agg_count);
+	shinfo->gso_segs = agg_count;
+
+	skb->csum_start = skb_headroom(skb) + th_off;
+	skb->csum_offset = offsetof(struct tcphdr, check);
+	skb->ip_summed = CHECKSUM_PARTIAL;
+
+	return skb;
+}
+
+static struct sk_buff *airoha_qdma_build_rx_skb(struct airoha_queue *q,
+						struct airoha_qdma_desc *desc,
+						struct airoha_queue_entry *e,
+						struct net_device *dev,
+						u32 msg1, u32 len)
+{
+	u32 msg2 = le32_to_cpu(READ_ONCE(desc->msg2));
+	int qid = q - &q->qdma->q_rx[0];
+	struct sk_buff *skb;
+	u32 agg_count = 1;
+
+	if (airoha_qdma_is_lro_queue(q)) {
+		agg_count = FIELD_GET(QDMA_ETH_RXMSG_AGG_COUNT_MASK, msg2);
+		if (agg_count > AIROHA_RXQ_LRO_MAX_AGG_COUNT)
+			return NULL;
+	}
+
+	if (agg_count > 1) { /* LRO */
+		skb = airoha_qdma_lro_rx_skb(q, desc, e, msg1, msg2, len,
+					     agg_count);
+		if (!skb)
+			return NULL;
+	} else {
+		skb = napi_build_skb(e->buf - AIROHA_RX_HEADROOM, q->buf_size);
+		if (!skb)
+			return NULL;
+
+		skb_reserve(skb, AIROHA_RX_HEADROOM);
+		__skb_put(skb, len);
+		skb->ip_summed = CHECKSUM_UNNECESSARY;
+	}
+
+	skb_mark_for_recycle(skb);
+	skb->dev = dev;
+	skb_record_rx_queue(skb, qid);
+	skb->protocol = eth_type_trans(skb, dev);
+
+	return skb;
+}
+
 static int airoha_qdma_rx_process(struct airoha_queue *q, int budget)
 {
 	enum dma_data_direction dir = page_pool_get_dma_dir(q->page_pool);
-	struct airoha_qdma *qdma = q->qdma;
-	struct airoha_eth *eth = qdma->eth;
-	int qid = q - &qdma->q_rx[0];
+	struct airoha_eth *eth = q->qdma->eth;
 	int done = 0;
 
 	while (done < budget) {
@@ -696,20 +960,14 @@ static int airoha_qdma_rx_process(struct airoha_queue *q, int budget)
 		if (IS_ERR(dev))
 			goto free_frag;
 
+		msg1 = le32_to_cpu(READ_ONCE(desc->msg1));
 		netdev = netdev_from_priv(dev);
+
 		if (!q->skb) { /* first buffer */
-			q->skb = napi_build_skb(e->buf - AIROHA_RX_HEADROOM,
-						q->buf_size);
+			q->skb = airoha_qdma_build_rx_skb(q, desc, e, netdev,
+							  msg1, len);
 			if (!q->skb)
 				goto free_frag;
-
-			skb_reserve(q->skb, AIROHA_RX_HEADROOM);
-			__skb_put(q->skb, len);
-			skb_mark_for_recycle(q->skb);
-			q->skb->dev = netdev;
-			q->skb->protocol = eth_type_trans(q->skb, netdev);
-			q->skb->ip_summed = CHECKSUM_UNNECESSARY;
-			skb_record_rx_queue(q->skb, qid);
 		} else { /* scattered frame */
 			struct skb_shared_info *shinfo = skb_shinfo(q->skb);
 			int nr_frags = shinfo->nr_frags;
@@ -742,7 +1000,6 @@ static int airoha_qdma_rx_process(struct airoha_queue *q, int budget)
 						  &port->dsa_meta[sptag]->dst);
 		}
 
-		msg1 = le32_to_cpu(READ_ONCE(desc->msg1));
 		hash = FIELD_GET(AIROHA_RXD4_FOE_ENTRY, msg1);
 		if (hash != AIROHA_RXD4_FOE_ENTRY)
 			skb_set_hash(q->skb, jhash_1word(hash, 0),
@@ -800,12 +1057,10 @@ static int airoha_qdma_rx_napi_poll(struct napi_struct *napi, int budget)
 static int airoha_qdma_init_rx_queue(struct airoha_queue *q,
 				     struct airoha_qdma *qdma, int ndesc)
 {
-	const struct page_pool_params pp_params = {
-		.order = 0,
+	struct page_pool_params pp_params = {
 		.pool_size = 256,
 		.flags = PP_FLAG_DMA_MAP | PP_FLAG_DMA_SYNC_DEV,
 		.dma_dir = DMA_FROM_DEVICE,
-		.max_len = PAGE_SIZE,
 		.nid = NUMA_NO_NODE,
 		.dev = qdma->eth->dev,
 		.napi = &q->napi,
@@ -813,9 +1068,10 @@ static int airoha_qdma_init_rx_queue(struct airoha_queue *q,
 	struct airoha_eth *eth = qdma->eth;
 	int qid = q - &qdma->q_rx[0], thr;
 	dma_addr_t dma_addr;
+	bool lro_q;
 
-	q->buf_size = PAGE_SIZE / 2;
 	q->qdma = qdma;
+	lro_q = airoha_qdma_is_lro_queue(q);
 
 	q->entry = devm_kzalloc(eth->dev, ndesc * sizeof(*q->entry),
 				GFP_KERNEL);
@@ -827,6 +1083,9 @@ static int airoha_qdma_init_rx_queue(struct airoha_queue *q,
 	if (!q->desc)
 		return -ENOMEM;
 
+	pp_params.order = lro_q ? AIROHA_LRO_PAGE_ORDER : 0;
+	pp_params.max_len = PAGE_SIZE << pp_params.order;
+
 	q->page_pool = page_pool_create(&pp_params);
 	if (IS_ERR(q->page_pool)) {
 		int err = PTR_ERR(q->page_pool);
@@ -835,6 +1094,7 @@ static int airoha_qdma_init_rx_queue(struct airoha_queue *q,
 		return err;
 	}
 
+	q->buf_size = lro_q ? pp_params.max_len : pp_params.max_len / 2;
 	q->ndesc = ndesc;
 	netif_napi_add(eth->napi_dev, &q->napi, airoha_qdma_rx_napi_poll);
 
@@ -848,7 +1108,12 @@ static int airoha_qdma_init_rx_queue(struct airoha_queue *q,
 			FIELD_PREP(RX_RING_THR_MASK, thr));
 	airoha_qdma_rmw(qdma, REG_RX_DMA_IDX(qid), RX_RING_DMA_IDX_MASK,
 			FIELD_PREP(RX_RING_DMA_IDX_MASK, q->head));
-	airoha_qdma_set(qdma, REG_RX_SCATTER_CFG(qid), RX_RING_SG_EN_MASK);
+	if (lro_q)
+		airoha_qdma_clear(qdma, REG_RX_SCATTER_CFG(qid),
+				  RX_RING_SG_EN_MASK);
+	else
+		airoha_qdma_set(qdma, REG_RX_SCATTER_CFG(qid),
+				RX_RING_SG_EN_MASK);
 
 	airoha_qdma_fill_rx_queue(q);
 
@@ -870,6 +1135,7 @@ static void airoha_qdma_cleanup_rx_queue(struct airoha_queue *q)
 					page_pool_get_dma_dir(q->page_pool));
 		page_pool_put_full_page(q->page_pool, page, false);
 		/* Reset DMA descriptor */
+		WRITE_ONCE(desc->tcp_ts_reply, 0);
 		WRITE_ONCE(desc->ctrl, 0);
 		WRITE_ONCE(desc->addr, 0);
 		WRITE_ONCE(desc->data, 0);
@@ -1896,6 +2162,34 @@ static void airoha_update_hw_stats(struct airoha_gdm_dev *dev)
 	spin_unlock(&port->stats_lock);
 }
 
+static void airoha_update_netdev_features(struct airoha_gdm_dev *dev)
+{
+	struct airoha_eth *eth = dev->eth;
+	int i;
+
+	for (i = 0; i < ARRAY_SIZE(eth->ports); i++) {
+		struct airoha_gdm_port *port = eth->ports[i];
+		int j;
+
+		if (!port)
+			continue;
+
+		for (j = 0; j < ARRAY_SIZE(port->devs); j++) {
+			struct airoha_gdm_dev *iter_dev = port->devs[j];
+			struct net_device *netdev;
+
+			if (!iter_dev)
+				continue;
+
+			netdev = netdev_from_priv(iter_dev);
+			if (netdev->reg_state != NETREG_REGISTERED)
+				continue;
+
+			netdev_update_features(netdev);
+		}
+	}
+}
+
 static void airoha_dev_set_xmit_frame_size(struct net_device *netdev)
 {
 	struct airoha_gdm_dev *dev = netdev_priv(netdev);
@@ -1913,14 +2207,28 @@ static int airoha_dev_open(struct net_device *netdev)
 	struct airoha_gdm_port *port = dev->port;
 	u32 pse_port = FE_PSE_PORT_PPE1;
 	struct airoha_qdma *qdma;
-	int err;
+	int qdma_id, err;
+
+	/* HW GRO is configured on the QDMA and it is shared between
+	 * all the devices using it. Refuse to open a second device on
+	 * the same QDMA if HW GRO is enabled on any device sharing it
+	 * or if this device has HW GRO enabled in its feature set.
+	 */
+	qdma = airoha_qdma_deref(dev);
+	qdma_id = qdma - &qdma->eth->qdma[0];
+
+	if (qdma->users > 1 && (airoha_fe_lro_is_enabled(qdma->eth, qdma_id) ||
+				(netdev->features & NETIF_F_GRO_HW))) {
+		netdev_warn(netdev, "required to disable HW GRO on QDMA%d\n",
+			    qdma_id);
+		return -EBUSY;
+	}
 
 	netif_tx_start_all_queues(netdev);
 	err = airoha_set_vip_for_gdm_port(dev, true);
 	if (err)
 		return err;
 
-	qdma = airoha_qdma_deref(dev);
 	if (netdev_uses_dsa(netdev))
 		airoha_fe_set(qdma->eth, REG_GDM_INGRESS_CFG(port->id),
 			      GDM_STAG_EN_MASK);
@@ -1937,6 +2245,9 @@ static int airoha_dev_open(struct net_device *netdev)
 	airoha_set_gdm_port_fwd_cfg(qdma->eth, REG_GDM_FWD_CFG(port->id),
 				    pse_port);
 
+	if (netdev->features & NETIF_F_GRO_HW)
+		airoha_dev_lro_enable(dev);
+
 	return 0;
 }
 
@@ -1954,6 +2265,10 @@ static int airoha_dev_stop(struct net_device *netdev)
 		airoha_set_gdm_port_fwd_cfg(dev->eth,
 					    REG_GDM_FWD_CFG(port->id),
 					    FE_PSE_PORT_DROP);
+
+	if (netdev->features & NETIF_F_GRO_HW)
+		airoha_dev_lro_disable(dev);
+
 	return 0;
 }
 
@@ -2115,11 +2430,14 @@ static void airoha_dev_set_qdma(struct airoha_gdm_dev *dev)
 	qdma = &eth->qdma[!airoha_is_lan_gdm_dev(dev)];
 	cur_qdma = airoha_qdma_deref(dev);
 
-	if (cur_qdma)
+	if (cur_qdma) {
 		netif_tx_stop_all_queues(netdev);
+		airoha_dev_lro_disable(dev);
+	}
 
 	rcu_assign_pointer(dev->qdma, qdma);
 	netdev->irq = qdma->irq_banks[0].irq;
+	qdma->users++;
 	synchronize_rcu();
 
 	ppe_id = !airoha_is_lan_gdm_dev(dev) && airoha_ppe_is_enabled(eth, 1);
@@ -2136,8 +2454,12 @@ static void airoha_dev_set_qdma(struct airoha_gdm_dev *dev)
 			airoha_qdma_rr(qdma, REG_CNTR_VAL((i << 1) + 1));
 	}
 
-	if (cur_qdma)
+	if (cur_qdma) {
+		cur_qdma->users--;
 		netif_tx_wake_all_queues(netdev);
+	}
+
+	airoha_update_netdev_features(dev);
 }
 
 static int airoha_dev_init(struct net_device *netdev)
@@ -2288,6 +2610,32 @@ int airoha_get_fe_port(struct airoha_gdm_dev *dev)
 	}
 }
 
+static netdev_features_t airoha_dev_fix_features(struct net_device *netdev,
+						 netdev_features_t features)
+{
+	struct airoha_gdm_dev *dev = netdev_priv(netdev);
+	struct airoha_qdma *qdma;
+
+	qdma = airoha_qdma_deref(dev);
+	if (qdma->users > 1)
+		features &= ~NETIF_F_GRO_HW;
+
+	return features;
+}
+
+static int airoha_dev_set_features(struct net_device *netdev,
+				   netdev_features_t features)
+{
+	struct airoha_gdm_dev *dev = netdev_priv(netdev);
+
+	if (features & NETIF_F_GRO_HW)
+		airoha_dev_lro_enable(dev);
+	else
+		airoha_dev_lro_disable(dev);
+
+	return 0;
+}
+
 static netdev_tx_t airoha_dev_xmit(struct sk_buff *skb,
 				   struct net_device *netdev)
 {
@@ -3199,7 +3547,7 @@ static int airoha_enable_qos_for_gdm34(struct net_device *netdev,
 	struct airoha_gdm_dev *wan_dev, *dev = netdev_priv(netdev);
 	struct airoha_gdm_port *port = dev->port;
 	struct airoha_eth *eth = dev->eth;
-	int err = -EBUSY;
+	int err;
 
 	if (port->id != AIROHA_GDM3_IDX &&
 	    port->id != AIROHA_GDM4_IDX) {
@@ -3218,6 +3566,7 @@ static int airoha_enable_qos_for_gdm34(struct net_device *netdev,
 		    wan_dev->port->id == AIROHA_GDM2_IDX) {
 			NL_SET_ERR_MSG_MOD(extack,
 					   "QoS configured for WAN device");
+			err = -EBUSY;
 			goto error_unlock;
 		}
 		airoha_disable_qos_for_gdm34(netdev_from_priv(wan_dev));
@@ -3343,6 +3692,8 @@ static const struct net_device_ops airoha_netdev_ops = {
 	.ndo_stop		= airoha_dev_stop,
 	.ndo_change_mtu		= airoha_dev_change_mtu,
 	.ndo_select_queue	= airoha_dev_select_queue,
+	.ndo_fix_features	= airoha_dev_fix_features,
+	.ndo_set_features	= airoha_dev_set_features,
 	.ndo_start_xmit		= airoha_dev_xmit,
 	.ndo_get_stats64        = airoha_dev_get_stats64,
 	.ndo_set_mac_address	= airoha_dev_set_macaddr,
@@ -3430,11 +3781,9 @@ static int airoha_alloc_gdm_device(struct airoha_eth *eth,
 	netdev->ethtool_ops = &airoha_ethtool_ops;
 	netdev->max_mtu = AIROHA_MAX_MTU;
 	netdev->watchdog_timeo = 5 * HZ;
-	netdev->hw_features = NETIF_F_IP_CSUM | NETIF_F_RXCSUM | NETIF_F_TSO6 |
-			      NETIF_F_IPV6_CSUM | NETIF_F_SG | NETIF_F_TSO |
-			      NETIF_F_HW_TC;
-	netdev->features |= netdev->hw_features;
-	netdev->vlan_features = netdev->hw_features;
+	netdev->hw_features = AIROHA_HW_FEATURES | NETIF_F_GRO_HW;
+	netdev->features |= AIROHA_HW_FEATURES;
+	netdev->vlan_features = AIROHA_HW_FEATURES;
 	SET_NETDEV_DEV(netdev, eth->dev);
 
 	/* reserve hw queues for HTB offloading */
diff --git a/drivers/net/ethernet/airoha/airoha_eth.h b/drivers/net/ethernet/airoha/airoha_eth.h
index fa9a8edce22ff..84cadbb538666 100644
--- a/drivers/net/ethernet/airoha/airoha_eth.h
+++ b/drivers/net/ethernet/airoha/airoha_eth.h
@@ -45,6 +45,18 @@
 	 (_n) == 15 ? 128 :		\
 	 (_n) ==  0 ? 1024 : 16)
 
+#define AIROHA_LRO_PAGE_ORDER		get_order(SZ_16K)
+#define AIROHA_MAX_NUM_LRO_QUEUES	8
+#define AIROHA_RXQ_LRO_EN_MASK		GENMASK(31, 24)
+#define AIROHA_RXQ_LRO_MAX_AGG_COUNT	64
+#define AIROHA_RXQ_LRO_MAX_AGG_TIME	100
+#define AIROHA_RXQ_LRO_MAX_AGE_TIME	2000
+
+#define AIROHA_HW_FEATURES			\
+	(NETIF_F_IP_CSUM | NETIF_F_RXCSUM |	\
+	 NETIF_F_TSO6 | NETIF_F_IPV6_CSUM |	\
+	 NETIF_F_SG | NETIF_F_TSO | NETIF_F_HW_TC)
+
 #define PSE_RSV_PAGES			128
 #define PSE_QUEUE_RSV_PAGES		64
 
@@ -560,6 +572,8 @@ struct airoha_qdma {
 	struct airoha_eth *eth;
 	void __iomem *regs;
 
+	int users;
+
 	struct airoha_irq_bank irq_banks[AIROHA_MAX_NUM_IRQ_BANKS];
 
 	struct airoha_tx_irq_queue q_tx_irq[AIROHA_NUM_TX_IRQ];
@@ -714,6 +728,18 @@ static inline bool airoha_is_7583(struct airoha_eth *eth)
 	return eth->soc->version == 0x7583;
 }
 
+static inline bool airoha_qdma_is_lro_queue(struct airoha_queue *q)
+{
+	struct airoha_qdma *qdma = q->qdma;
+	int qid = q - &qdma->q_rx[0];
+
+	/* EN7581 SoC supports at most 8 LRO rx queues */
+	BUILD_BUG_ON(hweight32(AIROHA_RXQ_LRO_EN_MASK) >
+		     AIROHA_MAX_NUM_LRO_QUEUES);
+
+	return !!(AIROHA_RXQ_LRO_EN_MASK & BIT(qid));
+}
+
 int airoha_get_fe_port(struct airoha_gdm_dev *dev);
 bool airoha_is_valid_gdm_dev(struct airoha_eth *eth,
 			     struct airoha_gdm_dev *dev);
diff --git a/drivers/net/ethernet/airoha/airoha_regs.h b/drivers/net/ethernet/airoha/airoha_regs.h
index 442b48c9b991e..07dd04859fde8 100644
--- a/drivers/net/ethernet/airoha/airoha_regs.h
+++ b/drivers/net/ethernet/airoha/airoha_regs.h
@@ -122,6 +122,20 @@
 #define CDM_CRSN_QSEL_REASON_MASK(_n)	\
 	GENMASK(4 + (((_n) % 4) << 3),	(((_n) % 4) << 3))
 
+#define REG_CDM_LRO_RXQ(_n, _m)		(CDM_BASE(_n) + 0x78 + ((_m) & 0x4))
+#define LRO_RXQ_MASK(_n)		GENMASK(4 + (((_n) & 0x3) << 3), ((_n) & 0x3) << 3)
+
+#define REG_CDM_LRO_EN(_n)		(CDM_BASE(_n) + 0x80)
+#define LRO_RXQ_EN_MASK			GENMASK(7, 0)
+
+#define REG_CDM_LRO_LIMIT(_n)		(CDM_BASE(_n) + 0x84)
+#define CDM_LRO_AGG_NUM_MASK		GENMASK(23, 16)
+#define CDM_LRO_AGG_SIZE_MASK		GENMASK(15, 0)
+
+#define REG_CDM_LRO_AGE_TIME(_n)	(CDM_BASE(_n) + 0x88)
+#define CDM_LRO_AGE_TIME_MASK		GENMASK(31, 16)
+#define CDM_LRO_AGG_TIME_MASK		GENMASK(15, 0)
+
 #define REG_GDM_FWD_CFG(_n)		GDM_BASE(_n)
 #define GDM_PAD_EN_MASK			BIT(28)
 #define GDM_DROP_CRC_ERR_MASK		BIT(23)
@@ -887,9 +901,16 @@
 #define QDMA_ETH_RXMSG_SPORT_MASK	GENMASK(25, 21)
 #define QDMA_ETH_RXMSG_CRSN_MASK	GENMASK(20, 16)
 #define QDMA_ETH_RXMSG_PPE_ENTRY_MASK	GENMASK(15, 0)
+/* RX MSG2 */
+#define QDMA_ETH_RXMSG_AGG_COUNT_MASK	GENMASK(31, 24)
+#define QDMA_ETH_RXMSG_L2_LEN_MASK	GENMASK(6, 0)
+/* RX MSG3 */
+/* max aggregated size in bytes */
+#define QDMA_ETH_RXMSG_AGG_LEN_MASK	GENMASK(31, 16)
+#define QDMA_ETH_RXMSG_TCP_WIN_MASK	GENMASK(15, 0)
 
 struct airoha_qdma_desc {
-	__le32 rsv;
+	__le32 tcp_ts_reply;
 	__le32 ctrl;
 	__le32 addr;
 	__le32 data;

3/2 2026/08/31 07:26 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 12292
							output: 30
							thoughts: 122
						

Thoughts:
**Analyzing the Patch for Fuzzing Potential**

Okay, let's dive in. I need to quickly assess this patch and figure out if it's a good candidate for fuzzing. The goal here is to determine fuzzing worthiness, the configuration needs, and identify any critical symbols to focus on.

First, I see the affected files: `drivers/net/ethernet/airoha/airoha_eth.c`, `drivers/net/ethernet/airoha/airoha_eth.h`, and `drivers/net/ethernet/airoha/airoha_regs.h`. That narrows things down – it's network-related, and within the `airoha` driver. Hmm, *airoha*... I'm not immediately familiar with that one, so I need to understand what type of driver we're dealing with. Is it a specific NIC, a generic framework, or something else entirely?

I'll quickly use grep to search for "AIROHA" within the kernel source to get more context, or failing that I'll look at the Kconfig options within the driver directory to understand the driver's purpose. Understanding the driver is key before going further. This is a crucial first step; I need to know what kind of network interface it's responsible for.



4/2 2026/08/31 07:26 tool grepper
0m Args:
{
  "Expression": "AIROHA",
  "PathPrefix": "drivers/net/ethernet/"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 936 lines.\nUse more precise expression if possible.\n\ndrivers/net/ethernet/Makefile=12=obj-$(CONFIG_NET_VENDOR_AGERE) += agere/\ndrivers/net/ethernet/Makefile:13:obj-$(CONFIG_NET_VENDOR_AIROHA) += airoha/\ndrivers/net/ethernet/Makefile-14-obj-$(CONFIG_NET_VENDOR_ALACRITECH) += alacritech/\n--\ndrivers/net/ethernet/airoha/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/ethernet/airoha/Kconfig:2:config NET_VENDOR_AIROHA\ndrivers/net/ethernet/airoha/Kconfig-3-\tbool \"Airoha devices\"\ndrivers/net/ethernet/airoha/Kconfig:4:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/net/ethernet/airoha/Kconfig-5-\thelp\n--\ndrivers/net/ethernet/airoha/Kconfig-7-\ndrivers/net/ethernet/airoha/Kconfig:8:if NET_VENDOR_AIROHA\ndrivers/net/ethernet/airoha/Kconfig-9-\ndrivers/net/ethernet/airoha/Kconfig:10:config NET_AIROHA_NPU\ndrivers/net/ethernet/airoha/Kconfig-11-\ttristate \"Airoha NPU support\"\n--\ndrivers/net/ethernet/airoha/Kconfig-17-\ndrivers/net/ethernet/airoha/Kconfig:18:config NET_AIROHA\ndrivers/net/ethernet/airoha/Kconfig-19-\ttristate \"Airoha SoC Gigabit Ethernet support\"\ndrivers/net/ethernet/airoha/Kconfig-20-\tdepends on NET_DSA || !NET_DSA\ndrivers/net/ethernet/airoha/Kconfig:21:\tselect NET_AIROHA_NPU\ndrivers/net/ethernet/airoha/Kconfig-22-\tselect PAGE_POOL\n--\ndrivers/net/ethernet/airoha/Kconfig-26-\ndrivers/net/ethernet/airoha/Kconfig:27:config NET_AIROHA_FLOW_STATS\ndrivers/net/ethernet/airoha/Kconfig-28-\tdefault y\ndrivers/net/ethernet/airoha/Kconfig-29-\tbool \"Airoha flow stats\"\ndrivers/net/ethernet/airoha/Kconfig:30:\tdepends on NET_AIROHA \u0026\u0026 NET_AIROHA_NPU\ndrivers/net/ethernet/airoha/Kconfig-31-\thelp\n--\ndrivers/net/ethernet/airoha/Kconfig-33-\ndrivers/net/ethernet/airoha/Kconfig:34:endif #NET_VENDOR_AIROHA\n--\ndrivers/net/ethernet/airoha/Makefile-5-\ndrivers/net/ethernet/airoha/Makefile:6:obj-$(CONFIG_NET_AIROHA) += airoha-eth.o\ndrivers/net/ethernet/airoha/Makefile-7-airoha-eth-y := airoha_eth.o airoha_ppe.o\ndrivers/net/ethernet/airoha/Makefile=8=airoha-eth-$(CONFIG_DEBUG_FS) += airoha_ppe_debugfs.o\ndrivers/net/ethernet/airoha/Makefile:9:obj-$(CONFIG_NET_AIROHA_NPU) += airoha_npu.o\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2-/*\ndrivers/net/ethernet/airoha/airoha_eth.c:3: * Copyright (c) 2024 AIROHA Inc\ndrivers/net/ethernet/airoha/airoha_eth.c-4- * Author: Lorenzo Bianconi \u003clorenzo@kernel.org\u003e\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=179=static void airoha_fe_maccr_init(struct airoha_eth *eth)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-189-\t\t\t      FIELD_PREP(GDM_SHORT_LEN_MASK, 60) |\ndrivers/net/ethernet/airoha/airoha_eth.c:190:\t\t\t      FIELD_PREP(GDM_LONG_LEN_MASK, AIROHA_MAX_RX_SIZE));\ndrivers/net/ethernet/airoha/airoha_eth.c-191-\t}\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=410=static int airoha_fe_mc_vlan_clear(struct airoha_eth *eth)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-413-\ndrivers/net/ethernet/airoha/airoha_eth.c:414:\tfor (i = 0; i \u003c AIROHA_FE_MC_MAX_VLAN_TABLE; i++) {\ndrivers/net/ethernet/airoha/airoha_eth.c-415-\t\tint err, j;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-429-\ndrivers/net/ethernet/airoha/airoha_eth.c:430:\t\tfor (j = 0; j \u003c AIROHA_FE_MC_MAX_VLAN_PORT; j++) {\ndrivers/net/ethernet/airoha/airoha_eth.c-431-\t\t\tairoha_fe_wr(eth, REG_MC_VLAN_DATA, 0x0);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=496=static void airoha_fe_lro_rxq_enable(struct airoha_eth *eth, int qdma_id,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-505-\t\t      FIELD_PREP(CDM_LRO_AGG_NUM_MASK,\ndrivers/net/ethernet/airoha/airoha_eth.c:506:\t\t\t\t AIROHA_RXQ_LRO_MAX_AGG_COUNT));\ndrivers/net/ethernet/airoha/airoha_eth.c-507-\tairoha_fe_rmw(eth, REG_CDM_LRO_AGE_TIME(id),\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-509-\t\t      FIELD_PREP(CDM_LRO_AGE_TIME_MASK,\ndrivers/net/ethernet/airoha/airoha_eth.c:510:\t\t\t\t AIROHA_RXQ_LRO_MAX_AGE_TIME) |\ndrivers/net/ethernet/airoha/airoha_eth.c-511-\t\t      FIELD_PREP(CDM_LRO_AGG_TIME_MASK,\ndrivers/net/ethernet/airoha/airoha_eth.c:512:\t\t\t\t AIROHA_RXQ_LRO_MAX_AGG_TIME));\ndrivers/net/ethernet/airoha/airoha_eth.c-513-\tairoha_fe_rmw(eth, REG_CDM_LRO_RXQ(id, lro_queue_index),\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=519=static void airoha_fe_lro_disable(struct airoha_eth *eth, int qdma_id)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-527-\t\t\tCDM_LRO_AGE_TIME_MASK | CDM_LRO_AGG_TIME_MASK);\ndrivers/net/ethernet/airoha/airoha_eth.c:528:\tfor (i = 0; i \u003c AIROHA_MAX_NUM_LRO_QUEUES; i++)\ndrivers/net/ethernet/airoha/airoha_eth.c-529-\t\tairoha_fe_clear(eth, REG_CDM_LRO_RXQ(id, i), LRO_RXQ_MASK(i));\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=538=static void airoha_dev_lro_enable(struct airoha_gdm_dev *dev)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-557-\ndrivers/net/ethernet/airoha/airoha_eth.c:558:\t\tsize = SKB_WITH_OVERHEAD(AIROHA_RX_LEN(q-\u003ebuf_size));\ndrivers/net/ethernet/airoha/airoha_eth.c:559:\t\tsize = min_t(u32, size, AIROHA_MAX_RX_SIZE);\ndrivers/net/ethernet/airoha/airoha_eth.c-560-\t\tairoha_fe_lro_rxq_enable(eth, qdma_id, lro_queue_index, i,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=578=static int airoha_fe_init(struct airoha_eth *eth)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-644-\ndrivers/net/ethernet/airoha/airoha_eth.c:645:\tairoha_fe_set(eth, REG_GDM_FWD_CFG(AIROHA_GDM3_IDX), GDM_PAD_EN_MASK);\ndrivers/net/ethernet/airoha/airoha_eth.c:646:\tairoha_fe_set(eth, REG_GDM_FWD_CFG(AIROHA_GDM4_IDX), GDM_PAD_EN_MASK);\ndrivers/net/ethernet/airoha/airoha_eth.c-647-\ndrivers/net/ethernet/airoha/airoha_eth.c-648-\t/* Enable split for MIB counters for GDM3 and GDM4 */\ndrivers/net/ethernet/airoha/airoha_eth.c:649:\tairoha_fe_set(eth, REG_FE_GDM_MIB_CFG(AIROHA_GDM3_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-650-\t\t      FE_GDM_TX_MIB_SPLIT_EN_MASK |\ndrivers/net/ethernet/airoha/airoha_eth.c-651-\t\t      FE_GDM_RX_MIB_SPLIT_EN_MASK);\ndrivers/net/ethernet/airoha/airoha_eth.c:652:\tairoha_fe_set(eth, REG_FE_GDM_MIB_CFG(AIROHA_GDM4_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-653-\t\t      FE_GDM_TX_MIB_SPLIT_EN_MASK |\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=676=static int airoha_qdma_fill_rx_queue(struct airoha_queue *q)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-697-\ndrivers/net/ethernet/airoha/airoha_eth.c:698:\t\toffset += AIROHA_RX_HEADROOM;\ndrivers/net/ethernet/airoha/airoha_eth.c-699-\t\te-\u003ebuf = page_address(page) + offset;\ndrivers/net/ethernet/airoha/airoha_eth.c-700-\t\te-\u003edma_addr = page_pool_get_dma_addr(page) + offset;\ndrivers/net/ethernet/airoha/airoha_eth.c:701:\t\te-\u003edma_len = SKB_WITH_OVERHEAD(AIROHA_RX_LEN(q-\u003ebuf_size));\ndrivers/net/ethernet/airoha/airoha_eth.c-702-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=886=static struct sk_buff *airoha_qdma_build_rx_skb(struct airoha_queue *q,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-898-\t\tagg_count = FIELD_GET(QDMA_ETH_RXMSG_AGG_COUNT_MASK, msg2);\ndrivers/net/ethernet/airoha/airoha_eth.c:899:\t\tif (agg_count \u003e AIROHA_RXQ_LRO_MAX_AGG_COUNT)\ndrivers/net/ethernet/airoha/airoha_eth.c-900-\t\t\treturn NULL;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-908-\t} else {\ndrivers/net/ethernet/airoha/airoha_eth.c:909:\t\tskb = napi_build_skb(e-\u003ebuf - AIROHA_RX_HEADROOM, q-\u003ebuf_size);\ndrivers/net/ethernet/airoha/airoha_eth.c-910-\t\tif (!skb)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-912-\ndrivers/net/ethernet/airoha/airoha_eth.c:913:\t\tskb_reserve(skb, AIROHA_RX_HEADROOM);\ndrivers/net/ethernet/airoha/airoha_eth.c-914-\t\t__skb_put(skb, len);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=926=static int airoha_qdma_rx_process(struct airoha_queue *q, int budget)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-954-\t\tlen = FIELD_GET(QDMA_DESC_LEN_MASK, desc_ctrl);\ndrivers/net/ethernet/airoha/airoha_eth.c:955:\t\tdata_len = q-\u003eskb ? AIROHA_RX_LEN(q-\u003ebuf_size) : e-\u003edma_len;\ndrivers/net/ethernet/airoha/airoha_eth.c-956-\t\tif (!len || data_len \u003c len)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1002-\ndrivers/net/ethernet/airoha/airoha_eth.c:1003:\t\thash = FIELD_GET(AIROHA_RXD4_FOE_ENTRY, msg1);\ndrivers/net/ethernet/airoha/airoha_eth.c:1004:\t\tif (hash != AIROHA_RXD4_FOE_ENTRY)\ndrivers/net/ethernet/airoha/airoha_eth.c-1005-\t\t\tskb_set_hash(q-\u003eskb, jhash_1word(hash, 0),\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1007-\ndrivers/net/ethernet/airoha/airoha_eth.c:1008:\t\treason = FIELD_GET(AIROHA_RXD4_PPE_CPU_REASON, msg1);\ndrivers/net/ethernet/airoha/airoha_eth.c-1009-\t\tif (reason == PPE_CPU_REASON_HIT_UNBIND_RATE_REACHED)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=1057=static int airoha_qdma_init_rx_queue(struct airoha_queue *q,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1085-\ndrivers/net/ethernet/airoha/airoha_eth.c:1086:\tpp_params.order = lro_q ? AIROHA_LRO_PAGE_ORDER : 0;\ndrivers/net/ethernet/airoha/airoha_eth.c-1087-\tpp_params.max_len = PAGE_SIZE \u003c\u003c pp_params.order;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=1218=static void airoha_unmap_xmit_buf(struct airoha_eth *eth,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1221-\tswitch (e-\u003edma_type) {\ndrivers/net/ethernet/airoha/airoha_eth.c:1222:\tcase AIROHA_DMA_MAP_PAGE:\ndrivers/net/ethernet/airoha/airoha_eth.c-1223-\t\tdma_unmap_page(eth-\u003edev, e-\u003edma_addr, e-\u003edma_len,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1225-\t\tbreak;\ndrivers/net/ethernet/airoha/airoha_eth.c:1226:\tcase AIROHA_DMA_MAP_SINGLE:\ndrivers/net/ethernet/airoha/airoha_eth.c-1227-\t\tdma_unmap_single(eth-\u003edev, e-\u003edma_addr, e-\u003edma_len,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1229-\t\tbreak;\ndrivers/net/ethernet/airoha/airoha_eth.c:1230:\tcase AIROHA_DMA_UNMAPPED:\ndrivers/net/ethernet/airoha/airoha_eth.c-1231-\tdefault:\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1233-\t}\ndrivers/net/ethernet/airoha/airoha_eth.c:1234:\te-\u003edma_type = AIROHA_DMA_UNMAPPED;\ndrivers/net/ethernet/airoha/airoha_eth.c-1235-}\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=1445=static void airoha_qdma_tx_cleanup(struct airoha_qdma *qdma)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1473-\ndrivers/net/ethernet/airoha/airoha_eth.c:1474:\t\t\tif (e-\u003edma_type == AIROHA_DMA_UNMAPPED)\ndrivers/net/ethernet/airoha/airoha_eth.c-1475-\t\t\t\tcontinue;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=1515=static int airoha_qdma_init_hfwd_queues(struct airoha_qdma *qdma)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1527-\ndrivers/net/ethernet/airoha/airoha_eth.c:1528:\tbuf_size = id ? AIROHA_MAX_PACKET_SIZE / 2 : AIROHA_MAX_PACKET_SIZE;\ndrivers/net/ethernet/airoha/airoha_eth.c-1529-\tindex = of_property_match_string(eth-\u003edev-\u003eof_node,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=1635=static void airoha_qdma_init_qos_stats(struct airoha_qdma *qdma)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1638-\ndrivers/net/ethernet/airoha/airoha_eth.c:1639:\tfor (i = 0; i \u003c AIROHA_NUM_QOS_CHANNELS; i++) {\ndrivers/net/ethernet/airoha/airoha_eth.c-1640-\t\t/* Tx-cpu transferred count */\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=1961=static void airoha_update_hw_stats(struct airoha_gdm_dev *dev)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-1970-\t/* Read relevant MIB for GDM with multiple port attached */\ndrivers/net/ethernet/airoha/airoha_eth.c:1971:\tif (port-\u003eid == AIROHA_GDM3_IDX || port-\u003eid == AIROHA_GDM4_IDX)\ndrivers/net/ethernet/airoha/airoha_eth.c-1972-\t\tairoha_fe_rmw(eth, REG_FE_GDM_MIB_CFG(port-\u003eid),\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2294=static int airoha_enable_gdm2_loopback(struct airoha_gdm_dev *dev)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2304-\ndrivers/net/ethernet/airoha/airoha_eth.c:2305:\tairoha_set_gdm_port_fwd_cfg(eth, REG_GDM_FWD_CFG(AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-2306-\t\t\t\t    FE_PSE_PORT_DROP);\ndrivers/net/ethernet/airoha/airoha_eth.c:2307:\tairoha_fe_clear(eth, REG_GDM_FWD_CFG(AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-2308-\t\t\tGDM_STRIP_CRC_MASK);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2310-\t/* Enable GDM2 loopback */\ndrivers/net/ethernet/airoha/airoha_eth.c:2311:\tairoha_fe_wr(eth, REG_GDM_TXCHN_EN(AIROHA_GDM2_IDX), 0xffffffff);\ndrivers/net/ethernet/airoha/airoha_eth.c:2312:\tairoha_fe_wr(eth, REG_GDM_RXCHN_EN(AIROHA_GDM2_IDX), 0xffff);\ndrivers/net/ethernet/airoha/airoha_eth.c-2313-\ndrivers/net/ethernet/airoha/airoha_eth.c:2314:\tchan = port-\u003eid == AIROHA_GDM3_IDX ? airoha_is_7581(eth) ? 4 : 3 : 0;\ndrivers/net/ethernet/airoha/airoha_eth.c:2315:\tairoha_fe_rmw(eth, REG_GDM_LPBK_CFG(AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-2316-\t\t      LPBK_CHAN_MASK | LPBK_MODE_MASK | LPBK_EN_MASK,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2320-\t/* Forward the traffic to the proper GDM port */\ndrivers/net/ethernet/airoha/airoha_eth.c:2321:\tpse_port = port-\u003eid == AIROHA_GDM3_IDX ? FE_PSE_PORT_GDM3\ndrivers/net/ethernet/airoha/airoha_eth.c-2322-\t\t\t\t\t       : FE_PSE_PORT_GDM4;\ndrivers/net/ethernet/airoha/airoha_eth.c:2323:\tairoha_set_gdm_port_fwd_cfg(eth, REG_GDM_FWD_CFG(AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-2324-\t\t\t\t    pse_port);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2326-\t/* Disable VIP and IFC for GDM2 */\ndrivers/net/ethernet/airoha/airoha_eth.c:2327:\tairoha_fe_clear(eth, REG_FE_VIP_PORT_EN, BIT(AIROHA_GDM2_IDX));\ndrivers/net/ethernet/airoha/airoha_eth.c:2328:\tairoha_fe_clear(eth, REG_FE_IFC_PORT_EN, BIT(AIROHA_GDM2_IDX));\ndrivers/net/ethernet/airoha/airoha_eth.c-2329-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2339-\tfor (i = 0; i \u003c eth-\u003esoc-\u003enum_ppe; i++)\ndrivers/net/ethernet/airoha/airoha_eth.c:2340:\t\tairoha_ppe_set_cpu_port(dev, i, AIROHA_GDM2_IDX);\ndrivers/net/ethernet/airoha/airoha_eth.c-2341-\ndrivers/net/ethernet/airoha/airoha_eth.c:2342:\tif (port-\u003eid == AIROHA_GDM4_IDX \u0026\u0026 airoha_is_7581(eth)) {\ndrivers/net/ethernet/airoha/airoha_eth.c-2343-\t\tu32 mask = FC_ID_OF_SRC_PORT_MASK(dev-\u003enbq);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2345-\t\tairoha_fe_rmw(eth, REG_SRC_PORT_FC_MAP6, mask,\ndrivers/net/ethernet/airoha/airoha_eth.c:2346:\t\t\t      __field_prep(mask, AIROHA_GDM2_IDX));\ndrivers/net/ethernet/airoha/airoha_eth.c-2347-\t}\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2352=static int airoha_disable_gdm2_loopback(struct airoha_gdm_dev *dev)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2366-\ndrivers/net/ethernet/airoha/airoha_eth.c:2367:\tairoha_fe_set(eth, REG_GDM_FWD_CFG(AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-2368-\t\t      GDM_STRIP_CRC_MASK);\ndrivers/net/ethernet/airoha/airoha_eth.c:2369:\tairoha_set_gdm_port_fwd_cfg(eth, REG_GDM_FWD_CFG(AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-2370-\t\t\t\t    FE_PSE_PORT_DROP);\ndrivers/net/ethernet/airoha/airoha_eth.c:2371:\tairoha_fe_clear(eth, REG_GDM_LPBK_CFG(AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-2372-\t\t\tLPBK_CHAN_MASK | LPBK_MODE_MASK | LPBK_EN_MASK);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2374-\t\t\t\t\t\t : FE_PSE_PORT_PPE1;\ndrivers/net/ethernet/airoha/airoha_eth.c:2375:\tairoha_set_gdm_port_fwd_cfg(eth, REG_GDM_FWD_CFG(AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c-2376-\t\t\t\t    pse_port);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2378-\tairoha_fe_rmw(eth, REG_FE_WAN_PORT, WAN0_MASK,\ndrivers/net/ethernet/airoha/airoha_eth.c:2379:\t\t      FIELD_PREP(WAN0_MASK, AIROHA_GDM2_IDX));\ndrivers/net/ethernet/airoha/airoha_eth.c-2380-\ndrivers/net/ethernet/airoha/airoha_eth.c-2381-\tfor (i = 0; i \u003c eth-\u003esoc-\u003enum_ppe; i++)\ndrivers/net/ethernet/airoha/airoha_eth.c:2382:\t\tairoha_fe_clear(eth, REG_PPE_DFT_CPORT(i, AIROHA_GDM2_IDX),\ndrivers/net/ethernet/airoha/airoha_eth.c:2383:\t\t\t\tDFT_CPORT_MASK(AIROHA_GDM2_IDX));\ndrivers/net/ethernet/airoha/airoha_eth.c-2384-\ndrivers/net/ethernet/airoha/airoha_eth.c-2385-\t/* Enable VIP and IFC for GDM2 */\ndrivers/net/ethernet/airoha/airoha_eth.c:2386:\tairoha_fe_set(eth, REG_FE_VIP_PORT_EN, BIT(AIROHA_GDM2_IDX));\ndrivers/net/ethernet/airoha/airoha_eth.c:2387:\tairoha_fe_set(eth, REG_FE_IFC_PORT_EN, BIT(AIROHA_GDM2_IDX));\ndrivers/net/ethernet/airoha/airoha_eth.c-2388-\ndrivers/net/ethernet/airoha/airoha_eth.c:2389:\tif (port-\u003eid == AIROHA_GDM4_IDX \u0026\u0026 airoha_is_7581(eth)) {\ndrivers/net/ethernet/airoha/airoha_eth.c-2390-\t\tu32 mask = FC_ID_OF_SRC_PORT_MASK(dev-\u003enbq);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2465=static int airoha_dev_init(struct net_device *netdev)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2470-\tswitch (port-\u003eid) {\ndrivers/net/ethernet/airoha/airoha_eth.c:2471:\tcase AIROHA_GDM3_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c:2472:\tcase AIROHA_GDM4_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-2473-\t\tif (airoha_get_wan_gdm_dev(dev-\u003eeth))\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2475-\t\tfallthrough;\ndrivers/net/ethernet/airoha/airoha_eth.c:2476:\tcase AIROHA_GDM2_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-2477-\t\t/* GDM2 is always used as wan */\ndrivers/net/ethernet/airoha/airoha_eth.c:2478:\t\tset_bit(AIROHA_DEV_F_WAN, \u0026dev-\u003eflags);\ndrivers/net/ethernet/airoha/airoha_eth.c-2479-\t\tbreak;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2487-\tif (!airoha_is_lan_gdm_dev(dev) \u0026\u0026\ndrivers/net/ethernet/airoha/airoha_eth.c:2488:\t    (port-\u003eid == AIROHA_GDM3_IDX || port-\u003eid == AIROHA_GDM4_IDX)) {\ndrivers/net/ethernet/airoha/airoha_eth.c-2489-\t\tint err;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2533=static u16 airoha_dev_select_queue(struct net_device *netdev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2545-\tchannel = netdev_uses_dsa(netdev) ? skb_get_queue_mapping(skb) : port-\u003eid;\ndrivers/net/ethernet/airoha/airoha_eth.c:2546:\tchannel = channel % AIROHA_NUM_QOS_CHANNELS;\ndrivers/net/ethernet/airoha/airoha_eth.c:2547:\tqueue = skb-\u003epriority % AIROHA_NUM_QOS_QUEUES;\ndrivers/net/ethernet/airoha/airoha_eth.c:2548:\tqueue = channel * AIROHA_NUM_QOS_QUEUES + queue;\ndrivers/net/ethernet/airoha/airoha_eth.c-2549-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2597=int airoha_get_fe_port(struct airoha_gdm_dev *dev)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2603-\tcase 0x7583:\ndrivers/net/ethernet/airoha/airoha_eth.c:2604:\t\treturn port-\u003eid == AIROHA_GDM3_IDX ? FE_PSE_PORT_GDM3\ndrivers/net/ethernet/airoha/airoha_eth.c-2605-\t\t\t\t\t\t   : port-\u003eid;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2607-\tdefault:\ndrivers/net/ethernet/airoha/airoha_eth.c:2608:\t\treturn port-\u003eid == AIROHA_GDM4_IDX ? FE_PSE_PORT_GDM4\ndrivers/net/ethernet/airoha/airoha_eth.c-2609-\t\t\t\t\t\t   : port-\u003eid;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2639=static netdev_tx_t airoha_dev_xmit(struct sk_buff *skb,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2659-\tmsg0 = FIELD_PREP(QDMA_ETH_TXMSG_CHAN_MASK,\ndrivers/net/ethernet/airoha/airoha_eth.c:2660:\t\t\t  qid / AIROHA_NUM_QOS_QUEUES) |\ndrivers/net/ethernet/airoha/airoha_eth.c-2661-\t       FIELD_PREP(QDMA_ETH_TXMSG_QUEUE_MASK,\ndrivers/net/ethernet/airoha/airoha_eth.c:2662:\t\t\t  qid % AIROHA_NUM_QOS_QUEUES) |\ndrivers/net/ethernet/airoha/airoha_eth.c-2663-\t       FIELD_PREP(QDMA_ETH_TXMSG_SP_TAG_MASK, tag);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2717-\ndrivers/net/ethernet/airoha/airoha_eth.c:2718:\te-\u003edma_type = AIROHA_DMA_MAP_SINGLE;\ndrivers/net/ethernet/airoha/airoha_eth.c-2719-\tindex = e - q-\u003eentry;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2754-\ndrivers/net/ethernet/airoha/airoha_eth.c:2755:\t\te-\u003edma_type = AIROHA_DMA_MAP_PAGE;\ndrivers/net/ethernet/airoha/airoha_eth.c-2756-\t}\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2860=static int airoha_qdma_set_chan_tx_sched(struct net_device *netdev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2868-\tqdma = airoha_qdma_deref(dev);\ndrivers/net/ethernet/airoha/airoha_eth.c:2869:\tfor (i = 0; i \u003c AIROHA_NUM_QOS_QUEUES; i++)\ndrivers/net/ethernet/airoha/airoha_eth.c-2870-\t\tairoha_qdma_clear(qdma, REG_QUEUE_CLOSE_CFG(channel),\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2897=static int airoha_qdma_set_tx_prio_sched(struct net_device *dev, int channel)\ndrivers/net/ethernet/airoha/airoha_eth.c-2898-{\ndrivers/net/ethernet/airoha/airoha_eth.c:2899:\tstatic const u16 w[AIROHA_NUM_QOS_QUEUES] = {};\ndrivers/net/ethernet/airoha/airoha_eth.c-2900-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2905=static int airoha_qdma_set_tx_ets_sched(struct net_device *dev, int channel,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2909-\tenum tx_sched_mode mode = TC_SCH_SP;\ndrivers/net/ethernet/airoha/airoha_eth.c:2910:\tu16 w[AIROHA_NUM_QOS_QUEUES] = {};\ndrivers/net/ethernet/airoha/airoha_eth.c-2911-\tint i, nstrict = 0;\ndrivers/net/ethernet/airoha/airoha_eth.c-2912-\ndrivers/net/ethernet/airoha/airoha_eth.c:2913:\tif (p-\u003ebands \u003e AIROHA_NUM_QOS_QUEUES)\ndrivers/net/ethernet/airoha/airoha_eth.c-2914-\t\treturn -EINVAL;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2921-\t/* this configuration is not supported by the hw */\ndrivers/net/ethernet/airoha/airoha_eth.c:2922:\tif (nstrict == AIROHA_NUM_QOS_QUEUES - 1)\ndrivers/net/ethernet/airoha/airoha_eth.c-2923-\t\treturn -EINVAL;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2942-\t\tmode = TC_SCH_WRR8;\ndrivers/net/ethernet/airoha/airoha_eth.c:2943:\telse if (nstrict \u003c AIROHA_NUM_QOS_QUEUES - 1)\ndrivers/net/ethernet/airoha/airoha_eth.c-2944-\t\tmode = nstrict + 1;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=2974=static int airoha_tc_setup_qdisc_ets(struct net_device *dev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-2981-\ndrivers/net/ethernet/airoha/airoha_eth.c:2982:\tchannel = TC_H_MIN(opt-\u003eparent) % AIROHA_NUM_QOS_CHANNELS;\ndrivers/net/ethernet/airoha/airoha_eth.c-2983-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3245=static int airoha_tc_htb_modify_queue(struct net_device *dev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3247-{\ndrivers/net/ethernet/airoha/airoha_eth.c:3248:\tu32 channel = TC_H_MIN(opt-\u003eclassid) % AIROHA_NUM_QOS_CHANNELS;\ndrivers/net/ethernet/airoha/airoha_eth.c-3249-\tu32 rate = div_u64(opt-\u003erate, 1000) \u003c\u003c 3; /* kbps */\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3265=static int airoha_tc_htb_alloc_leaf_queue(struct net_device *netdev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3267-{\ndrivers/net/ethernet/airoha/airoha_eth.c:3268:\tu32 channel = TC_H_MIN(opt-\u003eclassid) % AIROHA_NUM_QOS_CHANNELS;\ndrivers/net/ethernet/airoha/airoha_eth.c:3269:\tint err, num_tx_queues = AIROHA_NUM_TX_RING + channel + 1;\ndrivers/net/ethernet/airoha/airoha_eth.c-3270-\tstruct airoha_gdm_dev *dev = netdev_priv(netdev);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3298-\tset_bit(channel, dev-\u003eqos_sq_bmap);\ndrivers/net/ethernet/airoha/airoha_eth.c:3299:\topt-\u003eqid = AIROHA_NUM_TX_RING + channel;\ndrivers/net/ethernet/airoha/airoha_eth.c-3300-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3483=static void airoha_tc_remove_htb_queue(struct net_device *netdev, int queue)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3485-\tstruct airoha_gdm_dev *dev = netdev_priv(netdev);\ndrivers/net/ethernet/airoha/airoha_eth.c:3486:\tint num_tx_queues = AIROHA_NUM_TX_RING;\ndrivers/net/ethernet/airoha/airoha_eth.c-3487-\tstruct airoha_qdma *qdma;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3494-\ndrivers/net/ethernet/airoha/airoha_eth.c:3495:\tif (!bitmap_empty(dev-\u003eqos_sq_bmap, AIROHA_NUM_QOS_CHANNELS))\ndrivers/net/ethernet/airoha/airoha_eth.c-3496-\t\tnum_tx_queues += find_last_bit(dev-\u003eqos_sq_bmap,\ndrivers/net/ethernet/airoha/airoha_eth.c:3497:\t\t\t\t\t       AIROHA_NUM_QOS_CHANNELS) + 1;\ndrivers/net/ethernet/airoha/airoha_eth.c-3498-\tnetif_set_real_num_tx_queues(netdev, num_tx_queues);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3501=static int airoha_tc_htb_delete_leaf_queue(struct net_device *netdev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3503-{\ndrivers/net/ethernet/airoha/airoha_eth.c:3504:\tu32 channel = TC_H_MIN(opt-\u003eclassid) % AIROHA_NUM_QOS_CHANNELS;\ndrivers/net/ethernet/airoha/airoha_eth.c-3505-\tstruct airoha_gdm_dev *dev = netdev_priv(netdev);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3517=static void airoha_disable_qos_for_gdm34(struct net_device *netdev)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3522-\ndrivers/net/ethernet/airoha/airoha_eth.c:3523:\tif (port-\u003eid != AIROHA_GDM3_IDX \u0026\u0026\ndrivers/net/ethernet/airoha/airoha_eth.c:3524:\t    port-\u003eid != AIROHA_GDM4_IDX)\ndrivers/net/ethernet/airoha/airoha_eth.c-3525-\t\treturn;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3531-\ndrivers/net/ethernet/airoha/airoha_eth.c:3532:\tclear_bit(AIROHA_DEV_F_WAN, \u0026dev-\u003eflags);\ndrivers/net/ethernet/airoha/airoha_eth.c-3533-\tairoha_dev_set_qdma(dev);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3544=static int airoha_enable_qos_for_gdm34(struct net_device *netdev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3551-\ndrivers/net/ethernet/airoha/airoha_eth.c:3552:\tif (port-\u003eid != AIROHA_GDM3_IDX \u0026\u0026\ndrivers/net/ethernet/airoha/airoha_eth.c:3553:\t    port-\u003eid != AIROHA_GDM4_IDX) {\ndrivers/net/ethernet/airoha/airoha_eth.c-3554-\t\t/* HW QoS is always supported by GDM1 and GDM2 */\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3564-\tif (wan_dev) {\ndrivers/net/ethernet/airoha/airoha_eth.c:3565:\t\tif (test_bit(AIROHA_DEV_F_TX_QOS, \u0026wan_dev-\u003eflags) ||\ndrivers/net/ethernet/airoha/airoha_eth.c:3566:\t\t    wan_dev-\u003eport-\u003eid == AIROHA_GDM2_IDX) {\ndrivers/net/ethernet/airoha/airoha_eth.c-3567-\t\t\tNL_SET_ERR_MSG_MOD(extack,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3574-\ndrivers/net/ethernet/airoha/airoha_eth.c:3575:\tset_bit(AIROHA_DEV_F_WAN, \u0026dev-\u003eflags);\ndrivers/net/ethernet/airoha/airoha_eth.c-3576-\tairoha_dev_set_qdma(dev);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3601-error_disable_wan:\ndrivers/net/ethernet/airoha/airoha_eth.c:3602:\tclear_bit(AIROHA_DEV_F_WAN, \u0026dev-\u003eflags);\ndrivers/net/ethernet/airoha/airoha_eth.c-3603-\tairoha_dev_set_qdma(dev);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3610=static int airoha_tc_htb_destroy(struct net_device *netdev)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3614-\ndrivers/net/ethernet/airoha/airoha_eth.c:3615:\tfor_each_set_bit(q, dev-\u003eqos_sq_bmap, AIROHA_NUM_QOS_CHANNELS)\ndrivers/net/ethernet/airoha/airoha_eth.c-3616-\t\tairoha_tc_remove_htb_queue(netdev, q);\ndrivers/net/ethernet/airoha/airoha_eth.c-3617-\ndrivers/net/ethernet/airoha/airoha_eth.c:3618:\tclear_bit(AIROHA_DEV_F_TX_QOS, \u0026dev-\u003eflags);\ndrivers/net/ethernet/airoha/airoha_eth.c-3619-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3623=static int airoha_tc_get_htb_get_leaf_queue(struct net_device *netdev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3625-{\ndrivers/net/ethernet/airoha/airoha_eth.c:3626:\tu32 channel = TC_H_MIN(opt-\u003eclassid) % AIROHA_NUM_QOS_CHANNELS;\ndrivers/net/ethernet/airoha/airoha_eth.c-3627-\tstruct airoha_gdm_dev *dev = netdev_priv(netdev);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3633-\ndrivers/net/ethernet/airoha/airoha_eth.c:3634:\topt-\u003eqid = AIROHA_NUM_TX_RING + channel;\ndrivers/net/ethernet/airoha/airoha_eth.c-3635-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3639=static int airoha_tc_setup_qdisc_htb(struct net_device *netdev,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3650-\ndrivers/net/ethernet/airoha/airoha_eth.c:3651:\t\tset_bit(AIROHA_DEV_F_TX_QOS, \u0026dev-\u003eflags);\ndrivers/net/ethernet/airoha/airoha_eth.c-3652-\t\tbreak;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3763=static int airoha_alloc_gdm_device(struct airoha_eth *eth,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3772-\tnetdev = devm_alloc_etherdev_mqs(eth-\u003edev, sizeof(*dev),\ndrivers/net/ethernet/airoha/airoha_eth.c:3773:\t\t\t\t\t AIROHA_NUM_NETDEV_TX_RINGS,\ndrivers/net/ethernet/airoha/airoha_eth.c:3774:\t\t\t\t\t AIROHA_NUM_RX_RING);\ndrivers/net/ethernet/airoha/airoha_eth.c-3775-\tif (!netdev) {\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3781-\tnetdev-\u003eethtool_ops = \u0026airoha_ethtool_ops;\ndrivers/net/ethernet/airoha/airoha_eth.c:3782:\tnetdev-\u003emax_mtu = AIROHA_MAX_MTU;\ndrivers/net/ethernet/airoha/airoha_eth.c-3783-\tnetdev-\u003ewatchdog_timeo = 5 * HZ;\ndrivers/net/ethernet/airoha/airoha_eth.c:3784:\tnetdev-\u003ehw_features = AIROHA_HW_FEATURES | NETIF_F_GRO_HW;\ndrivers/net/ethernet/airoha/airoha_eth.c:3785:\tnetdev-\u003efeatures |= AIROHA_HW_FEATURES;\ndrivers/net/ethernet/airoha/airoha_eth.c:3786:\tnetdev-\u003evlan_features = AIROHA_HW_FEATURES;\ndrivers/net/ethernet/airoha/airoha_eth.c-3787-\tSET_NETDEV_DEV(netdev, eth-\u003edev);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3789-\t/* reserve hw queues for HTB offloading */\ndrivers/net/ethernet/airoha/airoha_eth.c:3790:\terr = netif_set_real_num_tx_queues(netdev, AIROHA_NUM_TX_RING);\ndrivers/net/ethernet/airoha/airoha_eth.c-3791-\tif (err)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3807-\tindex = nbq;\ndrivers/net/ethernet/airoha/airoha_eth.c:3808:\tif (index \u0026\u0026 airoha_is_7581(eth) \u0026\u0026 port-\u003eid == AIROHA_GDM3_IDX)\ndrivers/net/ethernet/airoha/airoha_eth.c-3809-\t\tindex -= 4;\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3818-\tu64_stats_init(\u0026dev-\u003estats.syncp);\ndrivers/net/ethernet/airoha/airoha_eth.c:3819:\tfor (i = 0; i \u003c AIROHA_NUM_NETDEV_TX_RINGS; i++)\ndrivers/net/ethernet/airoha/airoha_eth.c-3820-\t\tspin_lock_init(\u0026dev-\u003etxq_lock[i]);\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=3829=static int airoha_alloc_gdm_port(struct airoha_eth *eth,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3868-\t/* Default nbq value to ensure backward compatibility */\ndrivers/net/ethernet/airoha/airoha_eth.c:3869:\tnbq = id == AIROHA_GDM3_IDX \u0026\u0026 airoha_is_7581(eth) ? 4 : 0;\ndrivers/net/ethernet/airoha/airoha_eth.c-3870-\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=4114=static int airoha_en7581_get_sport(struct airoha_gdm_port *port, int nbq)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4116-\tswitch (port-\u003eid) {\ndrivers/net/ethernet/airoha/airoha_eth.c:4117:\tcase AIROHA_GDM3_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-4118-\t\t/* 7581 SoC supports PCIe serdes on GDM3 port */\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4123-\t\tbreak;\ndrivers/net/ethernet/airoha/airoha_eth.c:4124:\tcase AIROHA_GDM4_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-4125-\t\t/* 7581 SoC supports eth and usb serdes on GDM4 port */\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=4138=static u32 airoha_en7581_get_vip_port(struct airoha_gdm_port *port, int nbq)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4140-\tswitch (port-\u003eid) {\ndrivers/net/ethernet/airoha/airoha_eth.c:4141:\tcase AIROHA_GDM3_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-4142-\t\tif (nbq == 4)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4146-\t\tbreak;\ndrivers/net/ethernet/airoha/airoha_eth.c:4147:\tcase AIROHA_GDM4_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-4148-\t\tif (!nbq)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=4200=static int airoha_an7583_get_sport(struct airoha_gdm_port *port, int nbq)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4202-\tswitch (port-\u003eid) {\ndrivers/net/ethernet/airoha/airoha_eth.c:4203:\tcase AIROHA_GDM3_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-4204-\t\t/* 7583 SoC supports eth serdes on GDM3 port */\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4207-\t\tbreak;\ndrivers/net/ethernet/airoha/airoha_eth.c:4208:\tcase AIROHA_GDM4_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-4209-\t\t/* 7583 SoC supports PCIe and USB serdes on GDM4 port */\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=4222=static u32 airoha_an7583_get_vip_port(struct airoha_gdm_port *port, int nbq)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4224-\tswitch (port-\u003eid) {\ndrivers/net/ethernet/airoha/airoha_eth.c:4225:\tcase AIROHA_GDM3_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-4226-\t\tif (!nbq)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4228-\t\tbreak;\ndrivers/net/ethernet/airoha/airoha_eth.c:4229:\tcase AIROHA_GDM4_IDX:\ndrivers/net/ethernet/airoha/airoha_eth.c-4230-\t\tif (!nbq)\n--\ndrivers/net/ethernet/airoha/airoha_eth.h-2-/*\ndrivers/net/ethernet/airoha/airoha_eth.h:3: * Copyright (c) 2024 AIROHA Inc\ndrivers/net/ethernet/airoha/airoha_eth.h-4- * Author: Lorenzo Bianconi \u003clorenzo@kernel.org\u003e\n\n"
}

5/2 2026/08/31 07:26 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 27302
							output: 38
							thoughts: 183
						

Thoughts:
**Analyzing the Airoha Ethernet Driver**

Okay, let's dive into this Airoha Ethernet driver and figure out its architecture. First, I need to understand how it's configured. I'm going to look at the `Kconfig` file in `drivers/net/ethernet/airoha/Kconfig`. Right, I see the basic flags: `NET_VENDOR_AIROHA`, `NET_AIROHA`, and their dependencies, particularly `NET_DSA`. Interesting, the `NET_DSA` dependency gives us a clue, hinting at DSA (Distributed Switch Architecture) or the possibility of a non-DSA configuration. The `select` statements for `NET_AIROHA_NPU` and `PAGE_POOL` also give me useful context.

Now, I want to trace its bus/platform driver association. I need to know how the kernel recognizes and attaches this driver to the hardware. I'll search through `drivers/net/ethernet/airoha/airoha_eth.c` for the usual suspects: `module_platform_driver`, `platform_driver`, `pci_driver`, and `of_device_id`. These should indicate how the driver binds to the specific hardware. This will give me a clear picture of how the driver interfaces with the underlying hardware, be it a platform device, a PCI device, or something managed by Device Tree. With this information, I can analyze how the driver initializes, manages its resources, and interacts with the network stack.



6/2 2026/08/31 07:27 tool grepper
0m Args:
{
  "Expression": "airoha_probe|airoha_driver",
  "PathPrefix": "drivers/net/ethernet/airoha"
}

Results:
{
  "Output": "drivers/net/ethernet/airoha/airoha_eth.c=3909=static int airoha_register_gdm_devices(struct airoha_eth *eth)\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-3937-\ndrivers/net/ethernet/airoha/airoha_eth.c:3938:static int airoha_probe(struct platform_device *pdev)\ndrivers/net/ethernet/airoha/airoha_eth.c-3939-{\n--\ndrivers/net/ethernet/airoha/airoha_eth.c=4301=MODULE_DEVICE_TABLE(of, of_airoha_match);\ndrivers/net/ethernet/airoha/airoha_eth.c-4302-\ndrivers/net/ethernet/airoha/airoha_eth.c:4303:static struct platform_driver airoha_driver = {\ndrivers/net/ethernet/airoha/airoha_eth.c:4304:\t.probe = airoha_probe,\ndrivers/net/ethernet/airoha/airoha_eth.c-4305-\t.remove = airoha_remove,\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4310-};\ndrivers/net/ethernet/airoha/airoha_eth.c:4311:module_platform_driver(airoha_driver);\ndrivers/net/ethernet/airoha/airoha_eth.c-4312-\n"
}

7/2 2026/08/31 07:27 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 28231
							output: 35
							thoughts: 49
						

Thoughts:
Okay, here's my take on those thoughts, framed as my own:

**Analyzing the Airoha Ethernet Driver**

Right, let's dive in. I'm taking a look at this `airoha_driver` code. It's clearly a platform driver designed specifically for the Airoha SoC's Gigabit Ethernet controller, specifically tailored for the `ARCH_AIROHA` architecture. The interesting bit, from a driver perspective, is that it's using the Open Firmware (OF) matching mechanism; I need to drill down into how it's identifying the correct hardware. So, let's immediately go and inspect that OF match table. That's the key to understanding how this driver actually knows which Airoha Ethernet device it's supposed to be controlling. Gotta understand the device binding here.



8/2 2026/08/31 07:27 tool grepper
0m Args:
{
  "Expression": "of_airoha_match",
  "PathPrefix": "drivers/net/ethernet/airoha"
}

Results:
{
  "Output": "drivers/net/ethernet/airoha/airoha_eth.c=4284=static const struct airoha_eth_soc_data an7583_soc_data = {\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4295-\ndrivers/net/ethernet/airoha/airoha_eth.c:4296:static const struct of_device_id of_airoha_match[] = {\ndrivers/net/ethernet/airoha/airoha_eth.c-4297-\t{ .compatible = \"airoha,en7581-eth\", .data = \u0026en7581_soc_data },\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4300-};\ndrivers/net/ethernet/airoha/airoha_eth.c:4301:MODULE_DEVICE_TABLE(of, of_airoha_match);\ndrivers/net/ethernet/airoha/airoha_eth.c-4302-\ndrivers/net/ethernet/airoha/airoha_eth.c=4303=static struct platform_driver airoha_driver = {\n--\ndrivers/net/ethernet/airoha/airoha_eth.c-4307-\t\t.name = KBUILD_MODNAME,\ndrivers/net/ethernet/airoha/airoha_eth.c:4308:\t\t.of_match_table = of_airoha_match,\ndrivers/net/ethernet/airoha/airoha_eth.c-4309-\t},\n"
}

9/2 2026/08/31 07:27 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 28884
							output: 19
							thoughts: 312
						

Thoughts:
**Fuzzing Feasibility of the Airoha SoC Driver**

Okay, let's break this down. I'm looking at this `airoha` platform SoC driver, specifically for the Airoha EN7581/AN7583 SoCs. The first thing I need to figure out is: is this hardware *actually* present, or is it going to be emulated in some way? Specifically, am I going to see this in a virtualized environment like Google Compute Engine or a standard QEMU setup (x86 or arm64 VMs)? That's a huge determining factor.

The instructions give me some clear no-go areas: code that's *impossible* to reach in those virtualized environments, even with software emulation of the hardware. So, USB gadget code, MAC80211_HWSIM, that sort of thing is out. Also, anything vendor-specific to PCIe switches, SmartNICs, or GPU drivers – like `mlxsw`, `pds_core`, `qed`, `ionic`, or `amdgpu` – that rely on physical PCIe cards which, again, are not emulated in standard QEMU. Finally, any `.remove`, `.shutdown`, or `pci_unregister_driver` teardown callbacks; things that are triggered by PCI hot-unplug or sysfs driver unbind operations (like `igb_remove`). Those are red flags, I'll need to double check those.

My gut feeling is leaning towards the `airoha` driver being an embedded SoC device, likely ARM or MIPS based, like a router SoC (Airoha EN7581 sounds like a good lead). So, I'll need to confirm that. The next logical step is to check if `ARCH_AIROHA` is defined, and where it is used. I'll need to figure out this SoC's architecture to see if it even *can* be fuzzed effectively.



10/2 2026/08/31 07:27 tool grepper
0m Args:
{
  "Expression": "ARCH_AIROHA"
}

Results:
{
  "Output": "arch/arm/Kconfig.platforms=55=config ARCH_VIRT\n--\narch/arm/Kconfig.platforms-65-\narch/arm/Kconfig.platforms:66:config ARCH_AIROHA\narch/arm/Kconfig.platforms-67-\tbool \"Airoha SoC Support\"\n--\narch/arm/boot/dts/airoha/Makefile-1-# SPDX-License-Identifier: GPL-2.0\narch/arm/boot/dts/airoha/Makefile:2:dtb-$(CONFIG_ARCH_AIROHA) += \\\narch/arm/boot/dts/airoha/Makefile-3-\ten7523-evb.dtb\n--\narch/arm/configs/multi_v7_defconfig=8=CONFIG_ARCH_VIRT=y\narch/arm/configs/multi_v7_defconfig:9:CONFIG_ARCH_AIROHA=y\narch/arm/configs/multi_v7_defconfig-10-CONFIG_ARCH_HPE=y\n--\narch/arm64/Kconfig.platforms=4=config ARCH_ACTIONS\n--\narch/arm64/Kconfig.platforms-10-\narch/arm64/Kconfig.platforms:11:config ARCH_AIROHA\narch/arm64/Kconfig.platforms-12-\tbool \"Airoha SoC Support\"\n--\narch/arm64/boot/dts/airoha/Makefile-1-# SPDX-License-Identifier: GPL-2.0-only\narch/arm64/boot/dts/airoha/Makefile:2:dtb-$(CONFIG_ARCH_AIROHA) += en7581-evb.dtb\n--\narch/arm64/configs/defconfig=36=CONFIG_ARCH_ACTIONS=y\narch/arm64/configs/defconfig:37:CONFIG_ARCH_AIROHA=y\narch/arm64/configs/defconfig-38-CONFIG_ARCH_SUNXI=y\n--\ndrivers/char/hw_random/Kconfig=65=config HW_RANDOM_AIROHA\ndrivers/char/hw_random/Kconfig-66-\ttristate \"Airoha True HW Random Number Generator support\"\ndrivers/char/hw_random/Kconfig:67:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/char/hw_random/Kconfig-68-\tdefault HW_RANDOM\n--\ndrivers/clk/Kconfig=220=config COMMON_CLK_EN7523\n--\ndrivers/clk/Kconfig-222-\tdepends on OF\ndrivers/clk/Kconfig:223:\tdepends on ARCH_AIROHA || ECONET || COMPILE_TEST\ndrivers/clk/Kconfig:224:\tdefault ARCH_AIROHA\ndrivers/clk/Kconfig-225-\thelp\n--\ndrivers/cpufreq/Kconfig.arm=18=config ARM_AIROHA_SOC_CPUFREQ\ndrivers/cpufreq/Kconfig.arm-19-\ttristate \"Airoha EN7581 SoC CPUFreq support\"\ndrivers/cpufreq/Kconfig.arm:20:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/cpufreq/Kconfig.arm-21-\tdepends on OF\ndrivers/cpufreq/Kconfig.arm-22-\tselect PM_OPP\ndrivers/cpufreq/Kconfig.arm:23:\tdefault ARCH_AIROHA\ndrivers/cpufreq/Kconfig.arm-24-\thelp\n--\ndrivers/crypto/inside-secure/eip93/Kconfig=2=config CRYPTO_DEV_EIP93\ndrivers/crypto/inside-secure/eip93/Kconfig-3-\ttristate \"Support for EIP93 crypto HW accelerators\"\ndrivers/crypto/inside-secure/eip93/Kconfig:4:\tdepends on SOC_MT7621 || ARCH_AIROHA || ECONET || COMPILE_TEST\ndrivers/crypto/inside-secure/eip93/Kconfig-5-\tselect CRYPTO_LIB_AES\n--\ndrivers/gpio/Kconfig=311=config GPIO_EN7523\ndrivers/gpio/Kconfig-312-\ttristate \"Airoha GPIO support\"\ndrivers/gpio/Kconfig:313:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/gpio/Kconfig:314:\tdefault ARCH_AIROHA\ndrivers/gpio/Kconfig-315-\tselect GPIO_GENERIC\n--\ndrivers/i2c/busses/Kconfig=919=config I2C_MT7621\ndrivers/i2c/busses/Kconfig-920-\ttristate \"MT7621/MT7628 I2C Controller\"\ndrivers/i2c/busses/Kconfig:921:\tdepends on (RALINK \u0026\u0026 (SOC_MT7620 || SOC_MT7621)) || ARCH_AIROHA || COMPILE_TEST\ndrivers/i2c/busses/Kconfig-922-\thelp\n--\ndrivers/net/ethernet/airoha/Kconfig=2=config NET_VENDOR_AIROHA\ndrivers/net/ethernet/airoha/Kconfig-3-\tbool \"Airoha devices\"\ndrivers/net/ethernet/airoha/Kconfig:4:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/net/ethernet/airoha/Kconfig-5-\thelp\n--\ndrivers/net/ethernet/mediatek/Kconfig=2=config NET_VENDOR_MEDIATEK\ndrivers/net/ethernet/mediatek/Kconfig-3-\tbool \"MediaTek devices\"\ndrivers/net/ethernet/mediatek/Kconfig:4:\tdepends on ARCH_MEDIATEK || ARCH_AIROHA || SOC_MT7621 || SOC_MT7620 || COMPILE_TEST\ndrivers/net/ethernet/mediatek/Kconfig-5-\thelp\n--\ndrivers/net/mdio/Kconfig=25=config MDIO_AIROHA\ndrivers/net/mdio/Kconfig-26-\ttristate \"Airoha AN7583 MDIO bus controller\"\ndrivers/net/mdio/Kconfig:27:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/net/mdio/Kconfig-28-\thelp\n--\ndrivers/net/phy/mediatek/Kconfig=33=config MEDIATEK_GE_SOC_PHY\n--\ndrivers/net/phy/mediatek/Kconfig-35-\tdepends on ARM64 || ECONET || COMPILE_TEST\ndrivers/net/phy/mediatek/Kconfig:36:\tdepends on ARCH_AIROHA || (ARCH_MEDIATEK \u0026\u0026 NVMEM_MTK_EFUSE) || \\\ndrivers/net/phy/mediatek/Kconfig-37-\t\t   ECONET || COMPILE_TEST\n--\ndrivers/nvmem/Kconfig=118=config NVMEM_AIROHA_SMC_EFUSES\n--\ndrivers/nvmem/Kconfig-120-\tdepends on ARM64\ndrivers/nvmem/Kconfig:121:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/nvmem/Kconfig-122-\tdepends on HAVE_ARM_SMCCC\ndrivers/nvmem/Kconfig:123:\tdefault ARCH_AIROHA\ndrivers/nvmem/Kconfig-124-\thelp\n--\ndrivers/pci/controller/Kconfig=210=config PCIE_MEDIATEK\ndrivers/pci/controller/Kconfig-211-\ttristate \"MediaTek PCIe controller\"\ndrivers/pci/controller/Kconfig:212:\tdepends on ARCH_AIROHA || ARCH_MEDIATEK || ECONET || COMPILE_TEST\ndrivers/pci/controller/Kconfig-213-\tdepends on OF\n--\ndrivers/pci/controller/Kconfig=220=config PCIE_MEDIATEK_GEN3\ndrivers/pci/controller/Kconfig-221-\ttristate \"MediaTek Gen3 PCIe controller\"\ndrivers/pci/controller/Kconfig:222:\tdepends on ARCH_AIROHA || ARCH_MEDIATEK || COMPILE_TEST\ndrivers/pci/controller/Kconfig-223-\tdepends on PCI_MSI\n--\ndrivers/phy/Kconfig=49=config PHY_AIROHA_PCIE\ndrivers/phy/Kconfig-50-\ttristate \"Airoha PCIe-PHY Driver\"\ndrivers/phy/Kconfig:51:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/phy/Kconfig-52-\tdepends on OF\n--\ndrivers/pinctrl/airoha/Kconfig=2=menu \"Airoha pinctrl drivers\"\ndrivers/pinctrl/airoha/Kconfig:3:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/pinctrl/airoha/Kconfig-4-\ndrivers/pinctrl/airoha/Kconfig=5=config PINCTRL_AIROHA\n--\ndrivers/pinctrl/airoha/Kconfig-7-\tdepends on OF\ndrivers/pinctrl/airoha/Kconfig:8:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/pinctrl/airoha/Kconfig-9-\tselect PINMUX\n--\ndrivers/pmdomain/mediatek/Kconfig=46=config AIROHA_CPU_PM_DOMAIN\ndrivers/pmdomain/mediatek/Kconfig-47-\ttristate \"Airoha CPU power domain\"\ndrivers/pmdomain/mediatek/Kconfig:48:\tdefault ARCH_AIROHA\ndrivers/pmdomain/mediatek/Kconfig-49-\tdepends on HAVE_ARM_SMCCC\n--\ndrivers/pwm/Kconfig=66=config PWM_AIROHA\ndrivers/pwm/Kconfig-67-\ttristate \"Airoha PWM support\"\ndrivers/pwm/Kconfig:68:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/pwm/Kconfig-69-\tselect REGMAP_MMIO\n--\ndrivers/spi/Kconfig=63=config SPI_AIROHA_SNFI\ndrivers/spi/Kconfig-64-\ttristate \"Airoha SPI NAND Flash Interface\"\ndrivers/spi/Kconfig:65:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/spi/Kconfig-66-\tdepends on SPI_MASTER\n--\ndrivers/thermal/Kconfig=340=config AIROHA_THERMAL\ndrivers/thermal/Kconfig-341-\ttristate \"Airoha thermal sensor driver\"\ndrivers/thermal/Kconfig:342:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/thermal/Kconfig-343-\tdepends on MFD_SYSCON\n--\ndrivers/usb/host/Kconfig=77=config USB_XHCI_MTK\n--\ndrivers/usb/host/Kconfig-79-\tselect MFD_SYSCON\ndrivers/usb/host/Kconfig:80:\tdepends on (MIPS \u0026\u0026 SOC_MT7621) || ARCH_MEDIATEK || ARCH_AIROHA || COMPILE_TEST\ndrivers/usb/host/Kconfig-81-\thelp\n--\ndrivers/watchdog/Kconfig=452=config AIROHA_WATCHDOG\ndrivers/watchdog/Kconfig-453-\ttristate \"Airoha EN7581 Watchdog\"\ndrivers/watchdog/Kconfig:454:\tdepends on ARCH_AIROHA || COMPILE_TEST\ndrivers/watchdog/Kconfig-455-\tselect WATCHDOG_CORE\n"
}

11/2 2026/08/31 07:27 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 32470
							output: 122
							thoughts: 631
						

Thoughts:
**My Analysis of `airoha_eth` Reachability**

Okay, let's break this down. My initial assessment is focused on whether `airoha_eth` is accessible within the standard QEMU and Google Compute Engine fuzzing environments. I need to determine if any code paths are unreachable due to virtualization limitations.

First, I need to understand what `airoha_eth` is. Ah, it's a platform driver specifically for the Airoha SoC Ethernet, specifically the `airoha,en7581-eth` device. That's a crucial piece of information. This means it relies on the physical Airoha SoC hardware (or its corresponding device tree node on an EN7581 board) to be present. I know from experience that standard QEMU instances (both x86 and ARM64 virt machines) don't emulate this kind of specialized hardware or have the necessary device tree nodes. It's not a USB gadget, a virtual device, or even a generic PCIe device. It's an on-chip, SoC-specific ethernet controller.

This tells me it's unlikely syzkaller, which is often used in QEMU/GCE, can even probe this driver without some special device tree configuration or custom hardware support. Standard QEMU, with `-machine q35` or `-machine virt`, simply doesn't contain the Airoha SoC's hardware description or register layout.

Therefore, my conclusion is that this code, `airoha_eth`, is, in all probability, not reachable in the standard virtualized environments we're considering (QEMU/GCE).

I want to be absolutely sure, so let's double-check the scope of the changes. I need to confirm that this isn't just a minor adjustment that could somehow bypass these limitations. I'll re-examine the diff. The modifications are isolated to `drivers/net/ethernet/airoha/airoha_eth.c`, `airoha_eth.h`, and `airoha_regs.h`. This is exactly what I expected – the changes are confined to the Airoha SoC Gigabit Ethernet driver.

So, the key question is: is this driver *worth fuzzing* in these virtualized settings? Based on my analysis and the fact that it depends on physical Airoha SoC hardware, the answer is clearly no. The `WorthFuzzing` flag should be false.

Let's call `set-results`.



12/2 2026/08/31 07:27 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch adds LRO/GRO HW support to the Airoha SoC Gigabit Ethernet driver (drivers/net/ethernet/airoha/). This is a platform driver specifically for Airoha EN7581/AN7583 SoCs, which requires specific SoC hardware not emulated in standard virtualized fuzzing environments (e.g., QEMU or GCE). Hence, these code paths are unreachable during fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch adds LRO/GRO HW support to the Airoha SoC Gigabit Ethernet driver (drivers/net/ethernet/airoha/). This is a platform driver specifically for Airoha EN7581/AN7583 SoCs, which requires specific SoC hardware not emulated in standard virtualized fuzzing environments (e.g., QEMU or GCE). Hence, these code paths are unreachable during fuzzing.",
  "WorthFuzzing": false
}

13/1 2026/08/31 07:27 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)