Skip to content

Commit ca3ba10

Browse files
Nelson Changdavem330
authored andcommitted
net: ethernet: mediatek: bug fix to disable HW LRO
(1) Modify the register settings for LRO relinquishments (2) Jump out from the waiting loop while LRO relinquishments are done Signed-off-by: Nelson Chang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6bf563d commit ca3ba10

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/net/ethernet/mediatek/mtk_eth_soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,7 @@ static void mtk_hwlro_rx_uninit(struct mtk_eth *eth)
13741374
msleep(20);
13751375
continue;
13761376
}
1377+
break;
13771378
}
13781379

13791380
/* invalidate lro rings */

drivers/net/ethernet/mediatek/mtk_eth_soc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@
102102
#define MTK_LRO_EN BIT(0)
103103
#define MTK_L3_CKS_UPD_EN BIT(7)
104104
#define MTK_LRO_ALT_PKT_CNT_MODE BIT(21)
105-
#define MTK_LRO_RING_RELINQUISH_REQ (0x3 << 26)
106-
#define MTK_LRO_RING_RELINQUISH_DONE (0x3 << 29)
105+
#define MTK_LRO_RING_RELINQUISH_REQ (0x7 << 26)
106+
#define MTK_LRO_RING_RELINQUISH_DONE (0x7 << 29)
107107

108108
#define MTK_PDMA_LRO_CTRL_DW1 0x984
109109
#define MTK_PDMA_LRO_CTRL_DW2 0x988

0 commit comments

Comments
 (0)