]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add prefix for e-switch offloaded TC flow attributes
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 24 Jan 2017 18:54:09 +0000 (20:54 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Mar 2017 12:33:57 +0000 (15:33 +0300)
commit54f7dea948136b893f3f80dca3dc4abbc8373ea8
tree72dd819468a421c5c90631f59c8d5091f84c3c64
parent2d9f30de68824a3702e927b690f8cb413ad37388
net/mlx5e: Add prefix for e-switch offloaded TC flow attributes

Add esw_ prefix to the flow attributes attached to offloaded e-switch
TC flows. This is a pre-step to add attributes to offloaded NIC TC flows.

Also, save one pointer space by using gcc's zero size array, this would
be beneficial for environments where 100Ks (or Ms) of flows are offloaded.

This patch doesn't change any functionality.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c