Skip to content

Commit d14308b

Browse files
committed
common/parsing_helpers.h: Allow redefine of VLAN_MAX_DEPTH
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
1 parent 6972504 commit d14308b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

common/parsing_helpers.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ struct icmphdr_common {
5454
__sum16 cksum;
5555
};
5656

57-
#define VLAN_MAX_DEPTH 5
57+
/* Allow users of header file to redefine VLAN max depth */
58+
#ifndef VLAN_MAX_DEPTH
59+
#define VLAN_MAX_DEPTH 2
60+
#endif
5861

5962
static __always_inline int proto_is_vlan(__u16 h_proto)
6063
{

0 commit comments

Comments
 (0)