flow: add RSS support 21/25721/2
authorChenmin Sun <chenmin.sun@intel.com>
Fri, 28 Feb 2020 14:49:37 +0000 (22:49 +0800)
committerDamjan Marion <dmarion@me.com>
Tue, 28 Apr 2020 21:13:50 +0000 (21:13 +0000)
commit24e2c50bf34af37b688df83cd8d39a58345349c5
tree6f2741762b16a3e7b9c93e5c526d4c61bebc4276
parent2857e7850c2a2de02eb9f61c5d760100e382aa09
flow: add RSS support

This patch enables the RSS configuration through vnet/flow interface
With this RSS feature, users can config the RSS functions for specific flows

Currently, it supports:
  default, toeplitz and symmetric_toeplitz rss function, and
  ipv4-tcp/ipv4-udp/ipv6-tcp/ipv6-ucp flow types

Users can use the following options to combine with above flow
types for more specific hash input set selection:
  l3-src-only, l3-dst-only, l4-src-only, l4-dst-only

Command line:
test flow add dst-ip any proto udp rss function default rss types ipv4-tcp use l3-dst-only
test flow add dst-ip any proto udp rss function toeplitz rss types ipv4-udp use l4-src-only
test flow add dst-ip any proto udp rss function symmetric_toeplitz rss types ipv6-udp use l3-src-only and l3-dst-only

Type: feature

Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Change-Id: I213efc76dc8af37f2f63605884f353e05b0f5d2a
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/flow.c
src/plugins/dpdk/device/format.c
src/plugins/dpdk/device/init.c
src/vnet/flow/flow.h
src/vnet/flow/flow_cli.c