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>
This commit is contained in:

committed by
David S. Miller

parent
d9eea403ca
commit
5c50368f38
@@ -4123,6 +4123,13 @@ struct mlx5_ifc_modify_rqt_out_bits {
|
||||
u8 reserved_1[0x40];
|
||||
};
|
||||
|
||||
struct mlx5_ifc_rqt_bitmask_bits {
|
||||
u8 reserved[0x20];
|
||||
|
||||
u8 reserved1[0x1f];
|
||||
u8 rqn_list[0x1];
|
||||
};
|
||||
|
||||
struct mlx5_ifc_modify_rqt_in_bits {
|
||||
u8 opcode[0x10];
|
||||
u8 reserved_0[0x10];
|
||||
@@ -4135,7 +4142,7 @@ struct mlx5_ifc_modify_rqt_in_bits {
|
||||
|
||||
u8 reserved_3[0x20];
|
||||
|
||||
u8 modify_bitmask[0x40];
|
||||
struct mlx5_ifc_rqt_bitmask_bits bitmask;
|
||||
|
||||
u8 reserved_4[0x40];
|
||||
|
||||
|
Reference in New Issue
Block a user