projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1938617
)
net/mlx5e: Add likely to the common RX checksum flow
author
Gal Pressman
<galp@mellanox.com>
Tue, 9 Jan 2018 12:40:21 +0000
(14:40 +0200)
committer
Saeed Mahameed
<saeedm@mellanox.com>
Fri, 19 Jan 2018 20:41:33 +0000
(22:41 +0200)
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>
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
ff234df
..
0d4bb06
100644
(file)
--- 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)