net/mlx5: fix Rx VLAN stripping capability check
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Wed, 8 Jun 2016 09:43:28 +0000 (11:43 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 15:21:49 +0000 (17:21 +0200)
commit6a707608dc61372501c45ae25de6e7e26b26e561
tree33b9a213af7a34ded34b01b03c9f1424bf0c8d2f
parent78d9c95d91567f238527e0e9a505041dceef24a3
net/mlx5: fix Rx VLAN stripping capability check

A hardware capability check is missing before enabling RX VLAN stripping
during queue setup.

Also, while dev_conf.rxmode.hw_vlan_strip is currently a single bit that
can be stored in priv->hw_vlan_strip directly, it should be interpreted as
a boolean value for safety.

Fixes: f3db9489188a ("mlx5: support Rx VLAN stripping")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_vlan.c