Commit 53e3afdb authored by Prashant Bhole's avatar Prashant Bhole

examples: fix vlan_learning example

BPF_HASH declaration fixed.
parent 58889898
......@@ -15,7 +15,7 @@ struct ifindex_leaf_t {
BPF_HASH(egress, int, struct ifindex_leaf_t, 4096);
// redirect based on mac -> out_ifindex (config-driven)
BPF_HASH(ingress, struct ifindex_leaf_t, 4096);
BPF_HASH(ingress, u64, struct ifindex_leaf_t, 4096);
int handle_phys2virt(struct __sk_buff *skb) {
// only handle vlan packets
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment