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)
commitecf5bb796b992454c34f555e76c29360ed9b886d
tree72dd819468a421c5c90631f59c8d5091f84c3c64
parentcc628c9680c212d9dbf68785fbf5d454ccb2313e
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