diff options
author | Damjan Marion <damarion@cisco.com> | 2017-06-16 22:06:00 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-06-19 19:09:50 +0000 |
commit | 45ca2c7a9c0835e1b5d5641ca230f720b49e8cf4 (patch) | |
tree | eff8c6f1f710f7f051b8b1b97da8ca1947b3fa0e /src/plugins/memif/cli.c | |
parent | f03a59ab008908f98fd7d1b187a8c0fb78b01add (diff) |
memif: add ip mode
In IP mode memif interface is L3 point-to-point interfaces and
we don't pass l2 header. There is no l2 header rewrite operation and
received packets are sent straight to ip4-input / ip6-input nodes.
Change-Id: I4177f3fce3004da7ecf14d235006ae053fcf3f09
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/memif/cli.c')
-rw-r--r-- | src/plugins/memif/cli.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/memif/cli.c b/src/plugins/memif/cli.c index 34c77def79a..8af761646a8 100644 --- a/src/plugins/memif/cli.c +++ b/src/plugins/memif/cli.c @@ -62,6 +62,8 @@ memif_create_command_fn (vlib_main_t * vm, unformat_input_t * input, args.is_master = 1; else if (unformat (line_input, "slave")) args.is_master = 0; + else if (unformat (line_input, "mode ip")) + args.mode = MEMIF_INTERFACE_MODE_IP; else if (unformat (line_input, "hw-addr %U", unformat_ethernet_address, args.hw_addr)) args.hw_addr_set = 1; @@ -107,7 +109,8 @@ VLIB_CLI_COMMAND (memif_create_command, static) = { .path = "create memif", .short_help = "create memif [id <id>] [socket <path>] " "[ring-size <size>] [buffer-size <size>] [hw-addr <mac-address>] " - "<master|slave> [rx-queues <number>] [tx-queues <number>]", + "<master|slave> [rx-queues <number>] [tx-queues <number>]" + "[mode ip]", .function = memif_create_command_fn, }; /* *INDENT-ON* */ |