projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd206fd
)
net/mlx5e: Use bool as return type for mlx5e_xdp_handle
author
Tariq Toukan
<
[email protected]
>
Thu, 23 Nov 2017 12:39:22 +0000
(14:39 +0200)
committer
Saeed Mahameed
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Saeed Mahameed <
[email protected]
>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
index e10422b845cae37a235c2529f1aa5f96dc4d17cb..abc6ca8168d2aaba54e8db84ece28b5ab845b9de 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
@@
-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;