summaryrefslogtreecommitdiffstats
path: root/docs/featuresbyrelease/vpp18.07.rst
blob: b4ee1aea4615146001ec253d9d93d5c38ee7fec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.. _vpp18.07:

###############################
Features for Release VPP 18.07
###############################

This section lists those features that became available in VPP Release 18.07: 

Infrastructure
+++++++++++++++

* DPDK 18.02.1

   - Complete rework of the dpdk-input node
   - Display rx/tx burst function name in "show hardware detail"
   - Improve buffer alloc perfomance
      + This is ~50% improvement in buffer alloc performance. For a 256 buffer allocation, it was ~10 clocks/buffer, now is < 5 clocks.
   - Add per-numa page allocation info to 'show memory'
   - Vectorized bihash_{48,40,24,16}_8 key compare
      + bihash_48_8 case:
         * Scalar code: 6 clocks
         * SSE4.2 code: 3 clocks
         * AVX2 code: 2.27 clocks
         * AVX512 code: 1.5 clocks
   - Pollable Stats
      + Stats are now available to a client in a shared memory segment and in the form of a directory, allowing very high performance polling of stats without directly querying VPP.

VNET & Plugins
+++++++++++++++

* IGMP improvements
   - Enable/Disable an interface for IGMP
   - improve logging
   - refactor common code
   - no orphaned timers
   - IGMP state changes in main thread only
   - Large groups split over multiple state-change reports
   - SSM range configuration API.
   - more tests
* IP: vectorized IP checksum
* VXLAN : HW offload RX flow
* Rework kube-proxy into LB plugin and add NATA66
* NAT:
   - Code refactor
   - Syslog
   - Multiple outside interfaces
   - Endpoint dependent filtering and mapping
* ACL:
   - Tuple Merge algorithm cleanup and integration
   - Processing pipeline optimizations
   - Refactoring
* Experimental AVF driver


Host stack
+++++++++++

* Session: performance improvements, add support for connectionless transports, datagram reception and transmission
* TCP: congestion control improvements and overall fixes
* UDP: datagram mode
* TLS async support

Known issues
---------------

For the full list of issues please refer to fd.io `JIRA <https://jira.fd.io/>`_.

Issues fixed
--------------

For the full list of fixed issues please refer to:

* fd.io `JIRA <https://jira.fd.io/>`_
* git `commit log <https://git.fd.io/vpp/log/?h=stable/1807>`_
ground-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/* Hey Emacs use -*- mode: C -*- */
/*
 * Copyright 2020 Rubicon Communications, LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <sys/socket.h>
#include <linux/if.h>

#include <vnet/vnet.h>
#include <vnet/plugin/plugin.h>

#include <vlibapi/api.h>
#include <vlibmemory/api.h>
#include <vpp/app/version.h>
#include <vnet/format_fns.h>

#include <plugins/linux-cp/lcp_interface.h>

static clib_error_t *
lcp_itf_pair_create_command_fn (vlib_main_t *vm, unformat_input_t *input,
				vlib_cli_command_t *cmd)
{
  unformat_input_t _line_input, *line_input = &_line_input;
  vnet_main_t *vnm = vnet_get_main ();
  u32 sw_if_index;
  u8 *host_if_name;
  lip_host_type_t host_if_type;
  u8 *ns;
  int r;

  if (!unformat_user (input, unformat_line_input, line_input))
    return 0;

  sw_if_index = ~0;
  host_if_name = ns = NULL;
  host_if_type = LCP_ITF_HOST_TAP;

  while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
    {
      if (unformat (line_input, "%d", &sw_if_index))
	;
      else if (unformat (line_input, "%U", unformat_vnet_sw_interface, vnm,
			 &sw_if_index))
	;
      else if (unformat (line_input, "host-if %s", &host_if_name))
	;
      else if (unformat (line_input, "netns %s", &ns))
	;
      else if (unformat (line_input, "tun"))
	host_if_type = LCP_ITF_HOST_TUN;
      else
	{
	  unformat_free (line_input);
	  vec_free (host_if_name);
	  vec_free (ns);
	  return clib_error_return (0, "unknown input `%U'",
				    format_unformat_error, input);
	}
    }

  unformat_free (line_input);

  if (!host_if_name)
    {
      vec_free (ns);
      return clib_error_return (0, "host interface name required");
    }

  if (sw_if_index == ~0)
    {
      vec_free (host_if_name);
      vec_free (ns);
      return clib_error_return (0, "interface name or sw_if_index required");
    }

  if (vec_len (ns) >= LCP_NS_LEN)
    {
      vec_free (host_if_name);
      vec_free (ns);
      return clib_error_return (
	0, "Namespace name should be fewer than %d characters", LCP_NS_LEN);
    }

  r = lcp_itf_pair_create (sw_if_index, host_if_name, host_if_type, ns);

  vec_free (host_if_name);
  vec_free (ns);

  if (r)
    return clib_error_return (0, "linux-cp pair creation failed (%d)", r);

  return 0;
}

VLIB_CLI_COMMAND (lcp_itf_pair_create_command, static) = {
  .path = "lcp create",
  .short_help = "lcp create <sw_if_index>|<if-name> host-if <host-if-name> "
		"netns <namespace> [tun]",
  .function = lcp_itf_pair_create_command_fn,
};

static clib_error_t *
lcp_default_netns_command_fn (vlib_main_t *vm, unformat_input_t *input,
			      vlib_cli_command_t *cmd)
{
  unformat_input_t _line_input, *line_input = &_line_input;
  u8 *ns;
  int r;

  if (!unformat_user (input, unformat_line_input, line_input))
    return 0;

  ns = 0;

  while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
    {
      if (unformat (line_input, "netns %s", &ns))
	;
      else if (unformat (line_input, "clear netns"))
	;
    }

  unformat_free (line_input);

  vlib_cli_output (vm, "lcp set default netns '%s'\n", (char *) ns);

  r = lcp_set_default_ns (ns);

  if (r)
    return clib_error_return (0, "linux-cp set default netns failed (%d)", r);

  return 0;
}

VLIB_CLI_COMMAND (lcp_default_netns_command, static) = {
  .path = "lcp default",
  .short_help = "lcp default netns [<namespace>]",
  .function = lcp_default_netns_command_fn,
};

static clib_error_t *
lcp_itf_pair_delete_command_fn (vlib_main_t *vm, unformat_input_t *input,
				vlib_cli_command_t *cmd)
{
  vnet_main_t *vnm = vnet_get_main ();
  unformat_input_t _line_input, *line_input = &_line_input;
  u32 sw_if_index;
  int r;

  if (!unformat_user (input, unformat_line_input, line_input))
    return 0;

  sw_if_index = ~0;

  while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
    {
      if (unformat (line_input, "%d", &sw_if_index))
	;
      else if (unformat (line_input, "%U", unformat_vnet_sw_interface, vnm,
			 &sw_if_index))
	;
      else
	return clib_error_return (0, "unknown input `%U'",
				  format_unformat_error, input);
    }

  unformat_free (line_input);

  if (sw_if_index == ~0)
    return clib_error_return (0, "interface name or sw_if_index required");

  r = lcp_itf_pair_delete (sw_if_index);

  if (r)
    return clib_error_return (0, "linux-cp pair deletion failed (%d)", r);
  return 0;
}

VLIB_CLI_COMMAND (lcp_itf_pair_delete_command, static) = {
  .path = "lcp delete",
  .short_help = "lcp delete <sw_if_index>|<if-name>",
  .function = lcp_itf_pair_delete_command_fn,
};

static clib_error_t *
lcp_itf_pair_show_cmd (vlib_main_t *vm, unformat_input_t *input,
		       vlib_cli_command_t *cmd)
{
  vnet_main_t *vnm = vnet_get_main ();
  u32 phy_sw_if_index;

  phy_sw_if_index = ~0;

  while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
    {
      if (unformat (input, "phy %U", unformat_vnet_sw_interface, vnm,
		    &phy_sw_if_index))
	;
      else
	return clib_error_return (0, "unknown input '%U'",
				  format_unformat_error, input);
    }

  lcp_itf_pair_show (phy_sw_if_index);

  return 0;
}

VLIB_CLI_COMMAND (lcp_itf_pair_show_cmd_node, static) = {
  .path = "show lcp",
  .function = lcp_itf_pair_show_cmd,
  .short_help = "show lcp [phy <interface>]",
  .is_mp_safe = 1,
};

clib_error_t *
lcp_cli_init (vlib_main_t *vm)
{
  return 0;
}

VLIB_INIT_FUNCTION (lcp_cli_init);

/*
 * fd.io coding-style-patch-verification: ON
 *
 * Local Variables:
 * eval: (c-set-style "gnu")
 * End:
 */