net/mlx5e: Use short attribute form when adding/deleting offloaded TC flows
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 7 May 2017 08:33:17 +0000 (11:33 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 8 Jun 2017 11:11:59 +0000 (14:11 +0300)
commit513f8f7fc049361976062c770a1ffb43b01c73d1
treee2470505fd5d831c90dcf20b65b83b062157f246
parentde6ea92382f6d93f73ce1f77b9af5051e3f40798
net/mlx5e: Use short attribute form when adding/deleting offloaded TC flows

Instead of going through flow->nic/esw_attr for each usage, assign
an attr pointer per the context (nic or esw) and use that.

This patch doesn't add any functionality.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c