1*f2d324efSJasvinder Singh; SPDX-License-Identifier: BSD-3-Clause 2*f2d324efSJasvinder Singh; Copyright(c) 2010-2018 Intel Corporation 3*f2d324efSJasvinder Singh 4*f2d324efSJasvinder Singh; _______________ 5*f2d324efSJasvinder Singh; LINK0 RXQ0 --->| |---> LINK0 TXQ0 6*f2d324efSJasvinder Singh; | | 7*f2d324efSJasvinder Singh; LINK1 RXQ0 --->| |---> LINK1 TXQ0 8*f2d324efSJasvinder Singh; | Firewall | 9*f2d324efSJasvinder Singh; LINK2 RXQ0 --->| |---> LINK2 TXQ0 10*f2d324efSJasvinder Singh; | | 11*f2d324efSJasvinder Singh; LINK3 RXQ0 --->| |---> LINK3 TXQ0 12*f2d324efSJasvinder Singh; |_______________| 13*f2d324efSJasvinder Singh; | 14*f2d324efSJasvinder Singh; -+- 15*f2d324efSJasvinder Singh; 16*f2d324efSJasvinder Singh; Input packet: Ethernet/IPv4 17*f2d324efSJasvinder Singh; 18*f2d324efSJasvinder Singh; Packet buffer layout: 19*f2d324efSJasvinder Singh; # Field Name Offset (Bytes) Size (Bytes) 20*f2d324efSJasvinder Singh; 0 Mbuf 0 128 21*f2d324efSJasvinder Singh; 1 Headroom 128 128 22*f2d324efSJasvinder Singh; 2 Ethernet header 256 14 23*f2d324efSJasvinder Singh; 3 IPv4 header 270 20 24*f2d324efSJasvinder Singh 25*f2d324efSJasvinder Singhmempool MEMPOOL0 buffer 2304 pool 32K cache 256 cpu 0 26*f2d324efSJasvinder Singh 27*f2d324efSJasvinder Singhlink LINK0 dev 0000:02:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on 28*f2d324efSJasvinder Singhlink LINK1 dev 0000:02:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on 29*f2d324efSJasvinder Singhlink LINK2 dev 0000:06:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on 30*f2d324efSJasvinder Singhlink LINK3 dev 0000:06:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on 31*f2d324efSJasvinder Singh 32*f2d324efSJasvinder Singhtable action profile AP0 ipv4 offset 270 fwd 33*f2d324efSJasvinder Singh 34*f2d324efSJasvinder Singhpipeline PIPELINE0 period 10 offset_port_id 0 cpu 0 35*f2d324efSJasvinder Singh 36*f2d324efSJasvinder Singhpipeline PIPELINE0 port in bsz 32 link LINK0 rxq 0 37*f2d324efSJasvinder Singhpipeline PIPELINE0 port in bsz 32 link LINK1 rxq 0 38*f2d324efSJasvinder Singhpipeline PIPELINE0 port in bsz 32 link LINK2 rxq 0 39*f2d324efSJasvinder Singhpipeline PIPELINE0 port in bsz 32 link LINK3 rxq 0 40*f2d324efSJasvinder Singh 41*f2d324efSJasvinder Singhpipeline PIPELINE0 port out bsz 32 link LINK0 txq 0 42*f2d324efSJasvinder Singhpipeline PIPELINE0 port out bsz 32 link LINK1 txq 0 43*f2d324efSJasvinder Singhpipeline PIPELINE0 port out bsz 32 link LINK2 txq 0 44*f2d324efSJasvinder Singhpipeline PIPELINE0 port out bsz 32 link LINK3 txq 0 45*f2d324efSJasvinder Singh 46*f2d324efSJasvinder Singhpipeline PIPELINE0 table match acl ipv4 offset 270 size 4K action AP0 47*f2d324efSJasvinder Singh 48*f2d324efSJasvinder Singhpipeline PIPELINE0 port in 0 table 0 49*f2d324efSJasvinder Singhpipeline PIPELINE0 port in 1 table 0 50*f2d324efSJasvinder Singhpipeline PIPELINE0 port in 2 table 0 51*f2d324efSJasvinder Singhpipeline PIPELINE0 port in 3 table 0 52*f2d324efSJasvinder Singh 53*f2d324efSJasvinder Singhthread 1 pipeline PIPELINE0 enable 54*f2d324efSJasvinder Singh 55*f2d324efSJasvinder Singhpipeline PIPELINE0 table 0 rule add match default action fwd drop 56*f2d324efSJasvinder Singhpipeline PIPELINE0 table 0 rule add match acl priority 0 ipv4 0.0.0.0 0 100.0.0.0 10 0 65535 0 65535 6 action fwd port 0 57*f2d324efSJasvinder Singhpipeline PIPELINE0 table 0 rule add match acl priority 0 ipv4 0.0.0.0 0 100.64.0.0 10 0 65535 0 65535 6 action fwd port 1 58*f2d324efSJasvinder Singhpipeline PIPELINE0 table 0 rule add match acl priority 0 ipv4 0.0.0.0 0 100.128.0.0 10 0 65535 0 65535 6 action fwd port 2 59*f2d324efSJasvinder Singhpipeline PIPELINE0 table 0 rule add match acl priority 0 ipv4 0.0.0.0 0 100.192.0.0 10 0 65535 0 65535 6 action fwd port 3 60