DEV-7522: marvell10g_ptp configure MAC frame size (MRU) for jumbo packets#43
Merged
adrian-nicolau merged 3 commits intoAug 6, 2025
Conversation
shmuelhazan
reviewed
Aug 6, 2025
There was a problem hiding this comment.
Pull Request Overview
This PR configures MAC frame size (MRU - Maximum Receive Unit) for jumbo packets in the marvell10g_ptp driver. The implementation dynamically adjusts MRU settings based on operational speed, with separate register configurations for 1G/2.5G mode and XG mode.
- Added MRU control register definitions and speed-dependent configuration logic
- Implemented
mv3310_ptp_update()function to handle speed changes during link events - Added optimization to avoid unnecessary MRU reconfigurations when speed remains in the same class
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| drivers/net/phy/marvell10g_ptp.c | Added MRU register definitions, speed tracking, and MRU configuration function |
| drivers/net/phy/marvell10g.c | Added call to update PTP configuration on link status changes |
shmuelhazan
approved these changes
Aug 6, 2025
|
@adrian-nicolau Let's merge this as-is and ask V&V to validate. Worse-case -- we will have another fix. |
adrian-nicolau
added a commit
that referenced
this pull request
Aug 26, 2025
…kets (#43) ## Description Configure MRU size depending on the operational speed. According to docs: _1G mode and 2.5G mode are sharing same set of configuration. XG mode and 1/2.5 G mode have separate configuration register but enable only one group during operation. Therefore two register group act as one after operation speed is determined_ ## Tests - In XG mode, no link, registers have correct value - IN 1G mode, link, registers have correct value | Mode|Register|Value| |-------|---------|------| | XG|0x8c02 0x8e02|0x1FFF| |1G|0x8c00 0x8e00|0xFFFD|
adrian-nicolau
added a commit
that referenced
this pull request
Sep 3, 2025
…kets (#43) ## Description Configure MRU size depending on the operational speed. According to docs: _1G mode and 2.5G mode are sharing same set of configuration. XG mode and 1/2.5 G mode have separate configuration register but enable only one group during operation. Therefore two register group act as one after operation speed is determined_ ## Tests - In XG mode, no link, registers have correct value - IN 1G mode, link, registers have correct value | Mode|Register|Value| |-------|---------|------| | XG|0x8c02 0x8e02|0x1FFF| |1G|0x8c00 0x8e00|0xFFFD|
shmuelhazan
pushed a commit
that referenced
this pull request
Nov 6, 2025
…kets (#43) ## Description Configure MRU size depending on the operational speed. According to docs: _1G mode and 2.5G mode are sharing same set of configuration. XG mode and 1/2.5 G mode have separate configuration register but enable only one group during operation. Therefore two register group act as one after operation speed is determined_ ## Tests - In XG mode, no link, registers have correct value - IN 1G mode, link, registers have correct value | Mode|Register|Value| |-------|---------|------| | XG|0x8c02 0x8e02|0x1FFF| |1G|0x8c00 0x8e00|0xFFFD|
adrian-nicolau
added a commit
that referenced
this pull request
Nov 13, 2025
…kets (#43) ## Description Configure MRU size depending on the operational speed. According to docs: _1G mode and 2.5G mode are sharing same set of configuration. XG mode and 1/2.5 G mode have separate configuration register but enable only one group during operation. Therefore two register group act as one after operation speed is determined_ ## Tests - In XG mode, no link, registers have correct value - IN 1G mode, link, registers have correct value | Mode|Register|Value| |-------|---------|------| | XG|0x8c02 0x8e02|0x1FFF| |1G|0x8c00 0x8e00|0xFFFD|
adrian-nicolau
added a commit
that referenced
this pull request
Nov 28, 2025
…kets (#43) ## Description Configure MRU size depending on the operational speed. According to docs: _1G mode and 2.5G mode are sharing same set of configuration. XG mode and 1/2.5 G mode have separate configuration register but enable only one group during operation. Therefore two register group act as one after operation speed is determined_ ## Tests - In XG mode, no link, registers have correct value - IN 1G mode, link, registers have correct value | Mode|Register|Value| |-------|---------|------| | XG|0x8c02 0x8e02|0x1FFF| |1G|0x8c00 0x8e00|0xFFFD|
adrian-nicolau
added a commit
that referenced
this pull request
Dec 1, 2025
…kets (#43) ## Description Configure MRU size depending on the operational speed. According to docs: _1G mode and 2.5G mode are sharing same set of configuration. XG mode and 1/2.5 G mode have separate configuration register but enable only one group during operation. Therefore two register group act as one after operation speed is determined_ ## Tests - In XG mode, no link, registers have correct value - IN 1G mode, link, registers have correct value | Mode|Register|Value| |-------|---------|------| | XG|0x8c02 0x8e02|0x1FFF| |1G|0x8c00 0x8e00|0xFFFD|
paul-sirin
pushed a commit
that referenced
this pull request
May 28, 2026
paul-sirin
pushed a commit
that referenced
this pull request
May 28, 2026
paul-sirin
pushed a commit
that referenced
this pull request
May 28, 2026
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
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.
Description
Configure MRU size depending on the operational speed. According to docs:
1G mode and 2.5G mode are sharing same set of configuration. XG mode and 1/2.5 G mode have
separate configuration register but enable only one group during operation. Therefore two register
group act as one after operation speed is determined
Tests