net/mlx5e: Use bool as return type for mlx5e_xdp_handle
authorTariq Toukan <tariqt@mellanox.com>
Thu, 23 Nov 2017 12:39:22 +0000 (14:39 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 14 May 2018 22:10:21 +0000 (15:10 -0700)
Function returns boolean values, use bool instead of int.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

index e10422b845cae37a235c2529f1aa5f96dc4d17cb..abc6ca8168d2aaba54e8db84ece28b5ab845b9de 100644 (file)
@@ -807,9 +807,9 @@ static inline bool mlx5e_xmit_xdp_frame(struct mlx5e_rq *rq,
 }
 
 /* returns true if packet was consumed by xdp */
-static inline int mlx5e_xdp_handle(struct mlx5e_rq *rq,
-                                  struct mlx5e_dma_info *di,
-                                  void *va, u16 *rx_headroom, u32 *len)
+static inline bool mlx5e_xdp_handle(struct mlx5e_rq *rq,
+                                   struct mlx5e_dma_info *di,
+                                   void *va, u16 *rx_headroom, u32 *len)
 {
        struct bpf_prog *prog = READ_ONCE(rq->xdp_prog);
        struct xdp_buff xdp;