]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit030220985db10604e963dc982ff10abef962539b
treeb066b3552df1f07b18cad92e89a0462eec60f5bb
parent99c6acd382a63ae144e15ac3552594c3435208ee
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