From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDD8CC6FD1C for ; Mon, 20 Mar 2023 20:30:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbjCTUaO (ORCPT ); Mon, 20 Mar 2023 16:30:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbjCTUaK (ORCPT ); Mon, 20 Mar 2023 16:30:10 -0400 Received: from out-41.mta1.migadu.com (out-41.mta1.migadu.com [95.215.58.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23905166E2 for ; Mon, 20 Mar 2023 13:29:47 -0700 (PDT) Message-ID: <2b3b7e9c-8ed6-71b5-8002-beb5520334cc@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1679344185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T3uBVw/h2UV64VZwG+oyYlYBS7117PYK5aua10Zy3q4=; b=ZxR6BQ9fujrEhgAqy8OeHlC8tapIYhvaKaTPuD6nI3QyFPY9mVTjqeuh1zofIcwAayFvmA XGmGzWiK3wlRS92HLc95lvXD3MBpD5DOInaNpV/ywlSD+9OvP6kAvFsZFYKRl8c2Vu/1TX ZxtQMhEXnjx4FpI4pCIOc+1XhWbr/oM= Date: Mon, 20 Mar 2023 13:29:39 -0700 MIME-Version: 1.0 Subject: Re: [Patch net-next v3] sock_map: dump socket map id via diag Content-Language: en-US To: Stanislav Fomichev , Cong Wang Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, Cong Wang , John Fastabend , Jakub Sitnicki References: <20230319191913.61236-1-xiyou.wangcong@gmail.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 3/20/23 11:13 AM, Stanislav Fomichev wrote: > One thing I still don't understand here: what is missing from the > socket iterators to implement this? Is it all the sk_psock_get magic? > I remember you dismissed Yonghong's suggestion on v1, but have you > actually tried it? would be useful to know what is missing to print the bpf map id without adding kernel code. There is new bpf_rdonly_cast() which will be useful here also.