Page MenuHomeDevCentral

Reduce the length of GRE interface name
ClosedPublic

Authored by dereckson on Apr 12 2023, 23:33.
Tags
None
Referenced Files
F3764639: D3005.diff
Fri, Nov 22, 07:10
Unknown Object (File)
Sun, Nov 17, 18:15
Unknown Object (File)
Fri, Nov 15, 19:54
Unknown Object (File)
Wed, Nov 13, 04:49
Unknown Object (File)
Mon, Nov 11, 23:45
Unknown Object (File)
Sun, Nov 10, 21:47
Unknown Object (File)
Sun, Nov 10, 18:04
Unknown Object (File)
Wed, Nov 6, 15: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.