Expand mirror functionality 42/71842/5
authorLuc Provoost <luc.provoost@intel.com>
Mon, 1 Feb 2021 13:04:01 +0000 (14:04 +0100)
committerLuc Provoost <luc.provoost@intel.com>
Wed, 10 Feb 2021 10:02:06 +0000 (11:02 +0100)
commitb7541865102edde8377d3965df658da8bd638a62
tree801fd0920f854c1f89f18591615474495ff2d66f
parentc6e1493ced84fa82f689dfe88485a300dfb59183
Expand mirror functionality

In order to deal with non-symmetrical load, the mirror function can now
change the packet size of each packet it receives. It can also send the
incoming packet multiple times on each of the tx ports. To support this
feature, 2 new parameters in the cfg file have been added for the mirror
mode:
- multiplier: specifies how many times a packet needs to be sent on each
  tx port. Default is 1.
- mirror_size: the size of the packets that need to be sent. This will
  just change (increase) the packet size of each incoming packet. If not
  specified or invalid value (e.g. <64), the size will not be changed.
The packet size will only be changed for IPv4 UDP and IPv4 TCP.
Note that these parameters have no effect on the mirror copy submode.

Change-Id: Ic46b52abdd80ed51cffee667bd04ade9ec23ff6d
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
VNFs/DPPD-PROX/handle_mirror.c
VNFs/DPPD-PROX/prox_args.c
VNFs/DPPD-PROX/task_init.h