All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yue Haibing <yuehaibing@huawei.com>
To: Eric Dumazet <edumazet@google.com>
Cc: "David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>, David Ahern <dsahern@kernel.org>,
	<netdev@vger.kernel.org>, <eric.dumazet@gmail.com>
Subject: Re: [PATCH v2 net-next 2/3] inet: ping: remove ping_hash()
Date: Fri, 29 Aug 2025 15:13:22 +0800	[thread overview]
Message-ID: <e0d352b7-ee11-4a3d-9e76-289cf90fa6c5@huawei.com> (raw)
In-Reply-To: <CANn89iJvMWSuuPmYG2GojejXcx6uaHEGH5hq3TKRP0QUhK_OZA@mail.gmail.com>

On 2025/8/29 14:57, Eric Dumazet wrote:
> On Thu, Aug 28, 2025 at 11:47 PM Yue Haibing <yuehaibing@huawei.com> wrote:
>>
>> On 2025/8/29 0:41, Eric Dumazet wrote:
>>> There is no point in keeping ping_hash().
>>>
>>> Signed-off-by: Eric Dumazet <edumazet@google.com>
>>> Reviewed-by: David Ahern <dsahern@kernel.org>
>>> ---
>>>  net/ipv4/ping.c | 10 ----------
>>>  net/ipv6/ping.c |  1 -
>>>  2 files changed, 11 deletions(-)
>>>
>>> diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
>>> index 74a0beddfcc41d8ba17792a11a9d027c9d590bac..75e1b0f5c697653e79166fde5f312f46b471344a 100644
>>> --- a/net/ipv4/ping.c
>>> +++ b/net/ipv4/ping.c
>>> @@ -67,7 +67,6 @@ static inline u32 ping_hashfn(const struct net *net, u32 num, u32 mask)
>>>       pr_debug("hash(%u) = %u\n", num, res);
>>>       return res;
>>>  }
>>> -EXPORT_SYMBOL_GPL(ping_hash);
>>
>> The declaration should also be removed
>>
>> include/net/ping.h:58:void ping_unhash(struct sock *sk);
> 
> Right, but you probably meant

Sure,I have a copy_paste mistake.
> 
> include/net/ping.h:57:int ping_hash(struct sock *sk);

  reply	other threads:[~2025-08-29  7:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-28 16:41 [PATCH v2 net-next 0/3] inet: ping: misc changes Eric Dumazet
2025-08-28 16:41 ` [PATCH v2 net-next 1/3] inet: ping: check sock_net() in ping_get_port() and ping_lookup() Eric Dumazet
2025-08-28 16:41 ` [PATCH v2 net-next 2/3] inet: ping: remove ping_hash() Eric Dumazet
2025-08-29  6:47   ` Yue Haibing
2025-08-29  6:57     ` Eric Dumazet
2025-08-29  7:13       ` Yue Haibing [this message]
2025-08-28 16:41 ` [PATCH v2 net-next 3/3] inet: ping: make ping_port_rover per netns Eric Dumazet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e0d352b7-ee11-4a3d-9e76-289cf90fa6c5@huawei.com \
    --to=yuehaibing@huawei.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=eric.dumazet@gmail.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.