aboutsummaryrefslogtreecommitdiffstats
path: root/src/bpfswitch/include/xdp_fdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bpfswitch/include/xdp_fdb.h')
-rw-r--r--src/bpfswitch/include/xdp_fdb.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/bpfswitch/include/xdp_fdb.h b/src/bpfswitch/include/xdp_fdb.h
new file mode 100644
index 00000000..3e2e593a
--- /dev/null
+++ b/src/bpfswitch/include/xdp_fdb.h
@@ -0,0 +1,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