Punt Infra 48/15148/15
authorNeale Ranns <nranns@cisco.com>
Fri, 28 Sep 2018 15:16:14 +0000 (15:16 +0000)
committerDamjan Marion <dmarion@me.com>
Thu, 28 Mar 2019 20:51:32 +0000 (20:51 +0000)
commit76b5649d074ab198cbf5737ac76d21649a61bffd
treebb856c9638cb63ead6c00837daad01373551b4e1
parent1f4e1cbf576fc6ab4e871ba0603028112074b43b
Punt Infra

A punt/exception path that provides:
 1) clients that use the infra
 2) clients can create punt reasons
 3) clients can register to recieve packets that are punted
    for a given reason to be sent to the desired node.
 4) nodes which punt packets fill in the {reason,protocol} of the
    buffere (in the meta-data) and send to the new node "punt-dispatch"
 5) punt-dispatch sends packets to the registered nodes or drops

Change-Id: Ia4f144337f1387cbe585b4f375d0842aefffcde5
Signed-off-by: Neale Ranns <nranns@cisco.com>
14 files changed:
src/plugins/gbp/gbp_vxlan.c
src/plugins/unittest/CMakeLists.txt
src/plugins/unittest/punt_test.c [new file with mode: 0644]
src/vlib/CMakeLists.txt
src/vlib/buffer.h
src/vlib/punt.c [new file with mode: 0644]
src/vlib/punt.h [new file with mode: 0644]
src/vlib/punt_node.c [new file with mode: 0644]
src/vlib/vlib.h
src/vnet/ip/punt.c
src/vnet/vxlan-gbp/decap.c
src/vnet/vxlan-gbp/vxlan_gbp.c
src/vnet/vxlan-gbp/vxlan_gbp.h
test/test_punt.py