]> 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)
commitae3f34561c7cfbda7192995ad16c87aefc091309
treede8f4d4f4a18003df648592283194ceb264bc145
parent6475b5deaf1f63be06f500141e223a03e55b30fd
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