Skip to content

Commit

Permalink
Merge pull request iovisor#1337 from pbhole/fix_vlan_learning
Browse files Browse the repository at this point in the history
examples: fix vlan_learning example
  • Loading branch information
brendangregg committed Sep 4, 2017
2 parents 166bf0f + 53e3afd commit c528446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/networking/vlan_learning/vlan_learning.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c528446

Please sign in to comment.