aboutsummaryrefslogtreecommitdiffstats
path: root/src/bpfswitch/include/xdp_fdb.h
blob: 3e2e593a405f49f1333852617f01ef39f9cc36ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _XDP_FDB_H_
#define _XDP_FDB_H_

#include <linux/if_ether.h>

struct xdp_stats {
	__u64 bytes_fwd;
	__u64 pkts_fwd;
	__u64 dropped;
};

struct fdb_key
{
	__u8  smac[ETH_ALEN];
	__u8  dmac[ETH_ALEN];
	//__u16 vlan;
};

#endif