[dpdk-dev] [PATCH 0/4] net/mlx5: prepare to add E-switch rule flags check
Slava Ovsiienko
viacheslavo at mellanox.com
Mon Nov 12 21:01:39 CET 2018
The tc flower filter rules are used to control E-switch from
the application side. In order to gain garanteed rule hardware
offload the skip_sw flag should be specified while applying the
rule. Some tc rules is rejected by kernel if skip_sw flag is set
by design. Currently this regards VXLAN tunneling rules only,
which are applied to special VXLAN virtual devices.
Albeit these rules should be applied with no skip_sw flag set
the kernel tries to perform hardware offload. If kernel succeeded
the in_hw flag is set in rule properties and application may check
this flag to get know whether the applied rule is actually hardware
offloaded.
Signed-off-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
Viacheslav Ovsiienko (4):
net/mlx5: prepare Netlink communication routine to fix
net/mlx5: fix Netlink communication routine
net/mlx5: prepare to add E-switch rule flags check
net/mlx5: add E-switch rule hardware offload flag check
drivers/net/mlx5/mlx5_flow.h | 1 +
drivers/net/mlx5/mlx5_flow_tcf.c | 316 +++++++++++++++++++++++++++++----------
2 files changed, 236 insertions(+), 81 deletions(-)
--
1.8.3.1
More information about the dev
mailing list