The VPP packet tracer might tell a bit more what is going on. 

https://wiki.fd.io/view/VPP/Command-line_Interface_(CLI)_Guide#packet_tracer

Also you can do “TEST=acl_plugin* make test” and examine the logs of successful 
testcase runs and compare with what you have.

--a

> On 3 Sep 2019, at 16:24, Cipher Chen <cipher.chen2...@gmail.com> wrote:
> 
> More info about acl plugin
> 
> 
> vpp# show acl-plugin acl
> acl-index 4 count 2 tag {}
>           0: ipv4 deny src 0.0.0.0/0 dst 0.0.0.0/0 proto 1 sport 0-65535 
> dport 0-65535
>           1: ipv4 permit src 0.0.0.0/0 dst 0.0.0.0/0 proto 6 sport 0-65535 
> dport 0-65535
>   applied inbound on sw_if_index: 1
>   applied outbound on sw_if_index:
>   used in lookup context index: 0
> vpp# show acl-plugin interface
> sw_if_index 0:
> sw_if_index 1:
>   input acl(s): 4
> sw_if_index 2:
> sw_if_index 3:
> sw_if_index 4:
> sw_if_index 5:
> vpp# show acl-plugin table
> Stats counters enabled for interface ACLs: 0
> Mask-type entries:
>        4: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> 000000ff00000000 0800ffffffffffff  refcount 2
>        5: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> 000000ff00000000 0e00ffffffffffff  refcount 2
> Mask-ready ACL representations
> acl-index 0 bitmask-ready layout
>   applied lc_index list:
> acl-index 1 bitmask-ready layout
>   applied lc_index list:
> acl-index 2 bitmask-ready layout
>   applied lc_index list:
> acl-index 3 bitmask-ready layout
>   applied lc_index list:
> acl-index 4 bitmask-ready layout
>   applied lc_index list: 0
>        0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> 0000000100000000 0200000500000000 base mask index 5 acl 4 rule 0 action 0
>        1: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> 0000000600000000 0200000500000000 base mask index 5 acl 4 rule 1 action 1
> acl-index 5 bitmask-ready layout
>   applied lc_index list:
> Applied lookup entries for lookup contexts
> lc_index 0:
>   applied acls: 4
>   applied mask info entries:
>        0: mask type index 4 first rule index 0 num_entries 2 max_collisions 1
>   lookup applied entries:
>        0: acl 4 rule 0 action 0 bitmask-ready rule 0 mask type index: 4 
> colliding_rules: 1 collision_head_ae_idx 0 hitcount 0 acl_pos: 0
>            0: acl 4 ace 0 acl pos 0 pae index: 0
>        1: acl 4 rule 1 action 1 bitmask-ready rule 1 mask type index: 4 
> colliding_rules: 1 collision_head_ae_idx 1 hitcount 0 acl_pos: 0
>            0: acl 4 ace 1 acl pos 0 pae index: 1
> lc_index 1:
>   applied acls:
>   applied mask info entries:
>   lookup applied entries:
> 
> ACL lookup hash table:
> Hash table ACL plugin rule lookup bihash
>     2 active elements 2 active buckets
>     1 free lists
>        [len 1] 4 free elts
>     0 linear search buckets
>     arena: base 7f6415f10000, next 80600
>            used 525824 b (0 Mbytes) of 67108864 b (64 Mbytes)
> 
> vpp#
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#13889): https://lists.fd.io/g/vpp-dev/message/13889
> Mute This Topic: https://lists.fd.io/mt/33127037/675608
> Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480457
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ayour...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13890): https://lists.fd.io/g/vpp-dev/message/13890
Mute This Topic: https://lists.fd.io/mt/33127037/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to