net/mlx5e: Support multiple SKBs in a TX WQE
[linux-2.6-block.git] / drivers / net / ethernet / mellanox / mlx5 / core / en_accel / ktls_txrx.h
index ff4c740af10b2799120241399e31e3356811d8e4..7521c9be735b2ed73a20d7eba972d37915b86839 100644 (file)
@@ -29,12 +29,24 @@ void mlx5e_ktls_handle_get_psv_completion(struct mlx5e_icosq_wqe_info *wi,
 void mlx5e_ktls_tx_handle_resync_dump_comp(struct mlx5e_txqsq *sq,
                                           struct mlx5e_tx_wqe_info *wi,
                                           u32 *dma_fifo_cc);
+static inline bool
+mlx5e_ktls_tx_try_handle_resync_dump_comp(struct mlx5e_txqsq *sq,
+                                         struct mlx5e_tx_wqe_info *wi,
+                                         u32 *dma_fifo_cc)
+{
+       if (unlikely(wi->resync_dump_frag_page)) {
+               mlx5e_ktls_tx_handle_resync_dump_comp(sq, wi, dma_fifo_cc);
+               return true;
+       }
+       return false;
+}
 #else
-static inline void
-mlx5e_ktls_tx_handle_resync_dump_comp(struct mlx5e_txqsq *sq,
-                                     struct mlx5e_tx_wqe_info *wi,
-                                     u32 *dma_fifo_cc)
+static inline bool
+mlx5e_ktls_tx_try_handle_resync_dump_comp(struct mlx5e_txqsq *sq,
+                                         struct mlx5e_tx_wqe_info *wi,
+                                         u32 *dma_fifo_cc)
 {
+       return false;
 }
 
 #endif /* CONFIG_MLX5_EN_TLS */