net/mlx5: support TOS and TTL fields on E-Switch
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Sun, 13 Jan 2019 14:15:23 +0000 (14:15 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:30 +0000 (17:44 +0100)
commit363fa2f29667e821b1add9524d65022ea2417773
treeffd45596a44f8a8acde625734ae882d23471bbbc
parent9d6d159a3fa602935f8ac6919865cc9e17ef32e1
net/mlx5: support TOS and TTL fields on E-Switch

This patch adds the type-of-service and time-to-live IP header
fields support on E-Switch. There match pattern for both fields
with masking is added. Also these fields can be set for VXLAN
tunnel encapsulation header.

This issue is critical for some Open VSwitch configuration
on overlayed (tunneled) networks, where the tos field can be
inherited from outer header to inner header.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_flow_tcf.c