]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Take advantage of the light-weight netdev open/stop
authorAchiad Shochat <achiad@mellanox.com>
Tue, 4 Aug 2015 11:05:46 +0000 (14:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 05:00:59 +0000 (22:00 -0700)
commit8b105986adb9dbedcdeca616e78f4d12f295d598
tree2fcb40442301128d7244e9ff839860f4af27fcee
parent44e5f2bf453a5ef89cba7e2c012af5243e23afbe
net/mlx5e: Take advantage of the light-weight netdev open/stop

Now that TIRs, TISs and flow tables are kept alive while the netdev is
stopped (after executing ndo_stop()) we can do the following
improvements:

- Obsolete the active_vlans SW shadow.
- Do not delete/add flow table rules upon ndo_stop/open.
  In addition to simplifying the flow, this change also fastens
  the ndo_open/close operations.
- Obsolete synchronization of threads accessing the flow tables
  with the netdev stop/open threads.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_flow_table.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c