net/mlx5: remove extra check on Rx
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Tue, 11 Apr 2017 12:46:17 +0000 (14:46 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Apr 2017 13:37:37 +0000 (15:37 +0200)
commit6703d836346fa32a59cac8264efae5ea6acfbb7a
treeccc79d894cc0387c5df7b22037b5e27c938c64f1
parent695cd416ce6c02d7a20108765573936998b2dbf0
net/mlx5: remove extra check on Rx

Removing this check improves performance as VLAN and CRC stripping are
enabled most of the time.

Convert MLX5_CQE_VLAN_STRIPPED to network order to speed up the check
instead of doing it on the completion queue entry field.

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c