Skip to content

Commit ad15056

Browse files
committed
samples: net: gptp: Allow running gPTP over VLAN
By default gPTP is not run over VLAN but if needed that can be done by setting CONFIG_NET_GPTP_VLAN and CONFIG_NET_GPTP_VLAN_TAG options. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent e9228a3 commit ad15056

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/net/gptp/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
static struct gptp_phase_dis_cb phase_dis;
2323

24-
#if defined(CONFIG_NET_VLAN)
24+
#if defined(CONFIG_NET_GPTP_VLAN)
2525
/* User data for the interface callback */
2626
struct ud {
2727
struct net_if *first;
@@ -124,7 +124,7 @@ static int init_vlan(void)
124124

125125
return 0;
126126
}
127-
#endif /* CONFIG_NET_VLAN */
127+
#endif /* CONFIG_NET_GPTP_VLAN */
128128

129129
static void gptp_phase_dis_cb(u8_t *gm_identity,
130130
u16_t *time_base,
@@ -147,7 +147,7 @@ static void gptp_phase_dis_cb(u8_t *gm_identity,
147147

148148
static int init_app(void)
149149
{
150-
#if defined(CONFIG_NET_VLAN)
150+
#if defined(CONFIG_NET_GPTP_VLAN)
151151
if (init_vlan() < 0) {
152152
NET_ERR("Cannot setup VLAN");
153153
}

0 commit comments

Comments
 (0)