Skip to content

Commit 993fd9b

Browse files
gal-pressmanSaeed Mahameed
authored andcommitted
net/mlx5e: RX, Remove doubtful unlikely call
When building an skb in non-linear mode, it is not likely nor unlikely that the xdp buff has fragments, it depends on the size of the packet received. Signed-off-by: Gal Pressman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Reviewed-by: Maciej Fijalkowski <[email protected]>
1 parent afce927 commit 993fd9b

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ mlx5e_skb_from_cqe_nonlinear(struct mlx5e_rq *rq, struct mlx5e_wqe_frag_info *wi
17181718

17191719
page_ref_inc(head_wi->au->page);
17201720

1721-
if (unlikely(xdp_buff_has_frags(&mxbuf.xdp))) {
1721+
if (xdp_buff_has_frags(&mxbuf.xdp)) {
17221722
int i;
17231723

17241724
/* sinfo->nr_frags is reset by build_skb, calculate again. */

0 commit comments

Comments
 (0)