From 3409364da8fa46eae8ca22a579e219dc74958079 Mon Sep 17 00:00:00 2001 From: "Sridhar K. N. Rao" Date: Fri, 16 Dec 2022 17:24:48 +0530 Subject: ebpf: This patch adds ebpf-baremetal test support Remove object files and binaries Suggestions in systems/Readme. Add license headers. Signed-off-by: Sridhar K. N. Rao Change-Id: I5fd481e3ed3eb51e6b8091cbf6d1ec8e3b00cbf0 --- src/bpfswitch/include/xdp_fdb.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/bpfswitch/include/xdp_fdb.h (limited to 'src/bpfswitch/include/xdp_fdb.h') 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 + +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 -- cgit 1.2.3-korg