net/mlx5: optimize IPv4/IPv6 matching
authorEli Britstein <elibr@mellanox.com>
Sun, 3 May 2020 10:47:55 +0000 (10:47 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:27 +0000 (15:54 +0200)
commit6030e1d452e21d728f3f875a25f80bd714fd5273
tree052ca5a853703493854e8885bb0fff497b5a02ee
parentdd5374bcf0a8e6a47077c381e237e60cee79f400
net/mlx5: optimize IPv4/IPv6 matching

The HW is optimized for IPv4/IPv6. For such cases avoid matching on
ethertype, and use ip_version field instead.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c