Page MenuHomeDevCentral

Reduce the length of GRE interface name
ClosedPublic

Authored by dereckson on Apr 12 2023, 23:33.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 06:38
Unknown Object (File)
Thu, Oct 31, 07:47
Unknown Object (File)
Thu, Oct 31, 07:28
Unknown Object (File)
Thu, Oct 31, 07:25
Unknown Object (File)
Sat, Oct 26, 08:55
Unknown Object (File)
Fri, Oct 25, 19:31
Unknown Object (File)
Fri, Oct 25, 16:21
Unknown Object (File)
Thu, Oct 24, 12:25
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.