]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix vlan mask for ethtool steering rules
authorHadar Hen Zion <hadarh@mellanox.com>
Wed, 30 Jan 2013 23:07:06 +0000 (23:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jan 2013 17:48:47 +0000 (12:48 -0500)
commitd630ba65264abf063fe83321bf81292188262e99
treede8f4d4f4a18003df648592283194ceb264bc145
parentd6463a8e79c8f82e7a9a0490105d8fcd239ca046
net/mlx4_en: Fix vlan mask for ethtool steering rules

The vlan mask field should be validated and assigned according to the field
size which is 12 bits. Also replace the numeric 0xfff mask with existing kernel
macro.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c