Page MenuHomeDevCentral

Reduce the length of GRE interface name
ClosedPublic

Authored by dereckson on Apr 12 2023, 23:33.
Tags
None
Referenced Files
F3325875: D3005.id7674.diff
Mon, Jul 8, 09:11
F3325128: D3005.id7673.diff
Mon, Jul 8, 06:38
Unknown Object (File)
Sun, Jul 7, 13:29
Unknown Object (File)
Thu, Jul 4, 11:58
Unknown Object (File)
Thu, Jul 4, 04:15
Unknown Object (File)
Wed, Jul 3, 14:40
Unknown Object (File)
Tue, Jul 2, 22:06
Unknown Object (File)
Sun, Jun 30, 06:47
Subscribers
None

Details

Summary

The define IFNAMSIZ in Linux kernel defines the maximum length of an interface
name. By default, 16 characters, including the final '\0'.

As such, names like gre-drake_via_router-001 are too long.

gre-drake seems to be descriptive enough, as a node has only one GRE tunnel
if it's not our router.

Reference: include/uapi/linux/if.h

Ref T1832

Test Plan

Deploy on cloudhugger, ifconfig gre-drake

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/if.h

if.h
#if __UAPI_DEF_IF_IFNAMSIZ
#define	IFNAMSIZ	16
#endif /* __UAPI_DEF_IF_IFNAMSIZ */
#define	IFALIASZ	256
#define	ALTIFNAMSIZ	128
#include <linux/hdlc/ioctl.h>
This revision is now accepted and ready to land.Apr 12 2023, 23:34
This revision was landed with ongoing or failed builds.Apr 12 2023, 23:35
This revision was automatically updated to reflect the committed changes.