net/mlx4: avoid constant recreations in function
authorOphir Munk <ophirmu@mellanox.com>
Mon, 14 May 2018 10:07:31 +0000 (10:07 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:32:23 +0000 (22:32 +0100)
commitcbd737416c34c2f71227ac450db2c85a789dac30
tree19c7bf5e0aa60833df81e110b2f0ad8f817f8680
parentc9ec2192ffa7e3f5926acc13c6fc6f553d1a59a6
net/mlx4: avoid constant recreations in function

Function mlx4_conv_rss_types() contains constant arrays variables
which are recreated with every call to the function. By changing the
arrays definitions from "const" to "static const" these recreations
can be saved.

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
drivers/net/mlx4/mlx4_flow.c