diff options
author | Gal Pressman | 2018-01-09 13:40:21 +0100 |
---|---|---|
committer | Saeed Mahameed | 2018-01-19 21:41:33 +0100 |
commit | 63a612f984a1fae040ab6f1c6a0f1fdcdf1954b8 (patch) | |
tree | fc1c755f5296118ca57d012793675c58d461bdd3 /drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | |
parent | net/mlx5e: Extend the stats group API to have update_stats() (diff) | |
download | kernel-qcow2-linux-63a612f984a1fae040ab6f1c6a0f1fdcdf1954b8.tar.gz kernel-qcow2-linux-63a612f984a1fae040ab6f1c6a0f1fdcdf1954b8.tar.xz kernel-qcow2-linux-63a612f984a1fae040ab6f1c6a0f1fdcdf1954b8.zip |
net/mlx5e: Add likely to the common RX checksum flow
Most of the packets return true for is_last_ethertype_ip, surround it
with likely compiler hint.
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_rx.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c index ff234dfefc27..0d4bb0688faa 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c @@ -631,7 +631,7 @@ static inline void mlx5e_handle_csum(struct net_device *netdev, return; } - if (is_last_ethertype_ip(skb, &network_depth)) { + if (likely(is_last_ethertype_ip(skb, &network_depth))) { skb->ip_summed = CHECKSUM_COMPLETE; skb->csum = csum_unfold((__force __sum16)cqe->check_sum); if (network_depth > ETH_HLEN) |