policer action 27/1327/6
authorMatus Fabian <[email protected]>
Tue, 31 May 2016 14:33:29 +0000 (07:33 -0700)
committerDamjan Marion <[email protected]>
Tue, 12 Jul 2016 15:12:58 +0000 (15:12 +0000)
commit4ac74c9599c73510900c18ff4c86ca390993adac
treee02baf9178ddad4f1cf810f04c33af1c2fd33f42
parent41da02d96ba145a1778335391b8af7bbd1b4d6e6
policer action

JIRA: VPP-90

Policer allows you to specify the action to be taken on a packet:
    conform-action (green color)
    exceed-action (yellow color)
    violate-action (red color)
Action to take on packets:
    drop - drops the packet
    transmit - transmits the packet, the packet is not altered
    mark-and-transmit <DSCP> - sets the DSCP value and transmits the packet

Change-Id: I59c037e55e7e2a9fc9b9752e92426f3977f5587b
Signed-off-by: Matus Fabian <[email protected]>
vnet/vnet/policer/node_funcs.c
vnet/vnet/policer/police.h
vnet/vnet/policer/policer.c
vnet/vnet/policer/policer.h
vnet/vnet/policer/xlate.c
vnet/vnet/policer/xlate.h
vpp-api-test/vat/api_format.c
vpp/vpp-api/api.c
vpp/vpp-api/vpe.api