app/testpmd: add MACsec commands
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 13 Jan 2017 11:21:40 +0000 (19:21 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 15 Jan 2017 18:16:48 +0000 (19:16 +0100)
commitbb98856f24fcfc5cefade9a569479ddbe2a29494
tree8189da20cccd615de0951591f52df6821d508a6b
parentb35d309710fe45c1726843a8892406fc18ec8a5b
app/testpmd: add MACsec commands

Below MACsec offload commands are added:

- set macsec offload <port_id> on encrypt on|off replay-protect on|off
- set macsec offload <port_id> off
- set macsec sc tx|rx <port_id> <mac> <pi>
- set macsec sa tx|rx <port_id> <idx> <an> <pn> <key>

Also update the testpmd user guide.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/macfwd.c
app/test-pmd/macswap.c
app/test-pmd/testpmd.h
app/test-pmd/txonly.c
doc/guides/testpmd_app_ug/testpmd_funcs.rst