Skip to content

Commit ec2be4e

Browse files
committed
common: parsing_headers.h reduce default VLAN depth to 2
Given XDP is very performance focused, it is unwise to default parse many VLAN layers. Those 2 as it is very uncommon to have more. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
1 parent 6d8c0da commit ec2be4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/parsing_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct icmphdr_common {
5656

5757
/* Allow users of header file to redefine VLAN max depth */
5858
#ifndef VLAN_MAX_DEPTH
59-
#define VLAN_MAX_DEPTH 4
59+
#define VLAN_MAX_DEPTH 2
6060
#endif
6161

6262
static __always_inline int proto_is_vlan(__u16 h_proto)

0 commit comments

Comments
 (0)