net/mlx5e: Light-weight netdev open/stop
authorAchiad Shochat <achiad@mellanox.com>
Tue, 4 Aug 2015 11:05:43 +0000 (14:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 05:00:58 +0000 (22:00 -0700)
commit5c50368f38317627421bf24a0b66b1af0d44eddc
treeb066b3552df1f07b18cad92e89a0462eec60f5bb
parentd9eea403ca81f60cd535d354c77ada4c2bee8d66
net/mlx5e: Light-weight netdev open/stop

Create/destroy TIRs, TISs and flow tables upon PCI probe/remove rather
than upon the netdev ndo_open/stop.

Upon ndo_stop(), redirect all RX traffic to the (lately introduced)
"Drop RQ" and then close only the RX/TX rings, leaving the TIRs,
TISs and flow tables alive.

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_main.c
drivers/net/ethernet/mellanox/mlx5/core/transobj.c
drivers/net/ethernet/mellanox/mlx5/core/transobj.h
include/linux/mlx5/mlx5_ifc.h