-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
mediatek/filogic: mtk-eth-soc add initial support for jumbo frames on mt7988 #17121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namiltd
reviewed
Nov 30, 2024
target/linux/mediatek/patches-6.6/750-mtk-eth-add-jumbo-frame-support-mt7998.patch
Outdated
Show resolved
Hide resolved
Device Compatibility Check:
Introduced is_mt7988_eth to determine compatibility with the mediatek,mt7988-eth hardware.
Includes logging messages for debugging compatibility during initialization.
Enhanced MTU Configuration:
Adjusted eth->netdev[id]->max_mtu to support jumbo frames if is_mt7988_eth is true.
Default MTU remains the same for other device types.
Dynamic RX Frame Size Handling:
Modified logic in mtk_mac_config to accommodate jumbo frames and extended frame size configurations:
For MTK_GDM_TYPE, jumbo frames are enabled when is_mt7988_eth is true.
Added logic to handle extended frame sizes for MTK_XGDM_TYPE using the new MTK_XMAC_RX_CFG2.
Initialization Updates:
Extended device initialization to verify compatibility and set is_mt7988_eth accordingly.
Enhanced Register Configuration:
Modified MAC control register (MAC_MCR) handling:
Configures RX frame sizes based on the new maximum frame size (MTK_MAX_RX_LENGTH_9K) if is_mt7988_eth is enabled.
Configures the MTK_XMAC_RX_CFG2 register for MTK_XGDM_TYPE devices.
tested on: filogic/bananapi4
Signed-off-by: Rudy Andram <rmandrad@gmail.com>
namiltd
reviewed
Dec 1, 2024
| + if (!of_device_is_compatible(pdev->dev.of_node, "mediatek,mt7988-eth")) {; | ||
| + is_mt7988_eth = false; | ||
| + } else { | ||
| + dev_info(&pdev->dev, "Device compatible with mediatek,mt7988-eth - Jumbo frames capable\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
dev_info(&pdev->dev, "Device compatible with mediatek,mt7988-eth - Jumbo frames 9216 capable\n");
…ames on mt7988
mediatek: mtk-eth-soc add initial support for jumbo frames on mt7988
Device Compatibility Check:
Introduced is_mt7988_eth to determine compatibility with the mediatek,mt7988-eth hardware.
Includes logging messages for debugging compatibility during initialization.
Enhanced MTU Configuration:
Adjusted eth->netdev[id]->max_mtu to support jumbo frames if is_mt7988_eth is true.
Default MTU remains the same for other device types.
Dynamic RX Frame Size Handling:
Modified logic in mtk_mac_config to accommodate jumbo frames and extended frame size configurations:
For MTK_GDM_TYPE, jumbo frames are enabled when is_mt7988_eth is true.
Added logic to handle extended frame sizes for MTK_XGDM_TYPE using the new MTK_XMAC_RX_CFG2.
Initialization Updates:
Extended device initialization to verify compatibility and set is_mt7988_eth accordingly.
Enhanced Register Configuration:
Modified MAC control register (MAC_MCR) handling:
Configures RX frame sizes based on the new maximum frame size (MTK_MAX_RX_LENGTH_9K) if is_mt7988_eth is enabled.
Configures the MTK_XMAC_RX_CFG2 register for MTK_XGDM_TYPE devices.
tested on: filogic/bananapi4
Signed-off-by: Rudy Andram <rmandrad@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Device Compatibility Check:
Enhanced MTU Configuration:
Dynamic RX Frame Size Handling:
Initialization Updates:
Enhanced Register Configuration:
tested on: filogic/bananapi4
Signed-off-by: Rudy Andram rmandrad@gmail.com