projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe20371
)
ping: remove pr_err from ping_lookup
author
Xin Long
<lucien.xin@gmail.com>
Thu, 24 Feb 2022 03:41:08 +0000
(22:41 -0500)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 24 Feb 2022 17:18:29 +0000
(09:18 -0800)
As Jakub noticed, prints should be avoided on the datapath.
Also, as packets would never come to the else branch in
ping_lookup(), remove pr_err() from ping_lookup().
Fixes: 35a79e64de29 ("ping: fix the dif and sdif check in ping_lookup")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Link:
https://lore.kernel.org/r/1ef3f2fcd31bd681a193b1fcf235eee1603819bd.1645674068.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ping.c
patch
|
blob
|
history
diff --git
a/net/ipv4/ping.c
b/net/ipv4/ping.c
index 3a5994b50571f099f3db25039faa98b1bfda8fa4..3ee947557b88358e31afce995b3f157b0c41c0f8 100644
(file)
--- a/
net/ipv4/ping.c
+++ b/
net/ipv4/ping.c
@@
-187,7
+187,6
@@
static struct sock *ping_lookup(struct net *net, struct sk_buff *skb, u16 ident)
(int)ident, &ipv6_hdr(skb)->daddr, dif);
#endif
} else {
- pr_err("ping: protocol(%x) is not supported\n", ntohs(skb->protocol));
return NULL;
}