The generic Flow rule for tunnels looks like:
flow create <attributes> <port> \
<tunnel outer items pattern> \
<tunnel vni item> \
<tunnel inner items pattern>
Current design supports only L2 addresses as inner pattern
items. This patchset adds support for L3 (IPv4/IPv6) addresses
and L4 (TCP/UDP) ports items as inner tunnel parameters.
Also this patchset adds support for inner and outer ethernet
types for the E-Switch Flows with tunnels. Inner and outer ethernet
type match can be specified with ethernet items, vlan items, or
implicitly deduced from IP address items. The tcm_info field
in Netlink message tcm structure is filled always with outer
protocol.
Cc: [email protected]
Signed-off-by: Viacheslav Ovsiienko <[email protected]>
Viacheslav Ovsiienko (5):
net/mlx5: remove checks for outer tunnel items on E-Switch
net/mlx5: add tunnel inner items validation on E-Switch
net/mlx5: add tunnel inner items support on E-Switch
net/mlx5: add ethernet type validation on E-Switch
net/mlx5: add ethernet type support for tunnels on E-Switch
drivers/net/mlx5/mlx5_flow_tcf.c | 690 ++++++++++++++++++++++-----------------
1 file changed, 399 insertions(+), 291 deletions(-)
--
1.8.3.1