Skip to content

Set default MTU to 1500 for MACVLAN interface during creation#32

Merged
S-Parthiban-Selvaraj merged 1 commit intofeature/iproute-bridgefrom
bugfix/set-mtu-for-macvlan
Feb 18, 2026
Merged

Set default MTU to 1500 for MACVLAN interface during creation#32
S-Parthiban-Selvaraj merged 1 commit intofeature/iproute-bridgefrom
bugfix/set-mtu-for-macvlan

Conversation

@S-Parthiban-Selvaraj
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 18, 2026 15:46
@S-Parthiban-Selvaraj S-Parthiban-Selvaraj requested a review from a team as a code owner February 18, 2026 15:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR sets the default MTU (Maximum Transmission Unit) to 1500 for MACVLAN interfaces during their creation to ensure consistent network configuration.

Changes:

  • Added MTU configuration step before bringing up the MACVLAN interface
  • Included trace logging to document the MTU setting operation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

// Set MTU to default 1500
CcspTraceInfo(("%s-%d: Setting MTU to 1500 for MACVLAN interface %s\n",
__FUNCTION__, __LINE__, pEntry->Name));
v_secure_system("ip link set %s mtu 1500", pEntry->Name);
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MTU value 1500 is a magic number. Consider defining it as a named constant (e.g., #define DEFAULT_MACVLAN_MTU 1500) at the top of the file or in a header to improve maintainability and make it easier to update if needed.

Copilot uses AI. Check for mistakes.
@S-Parthiban-Selvaraj S-Parthiban-Selvaraj merged commit 37e501e into feature/iproute-bridge Feb 18, 2026
6 of 8 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants