From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753121AbbC1LkQ (ORCPT ); Sat, 28 Mar 2015 07:40:16 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:26178 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752057AbbC1LkM (ORCPT ); Sat, 28 Mar 2015 07:40:12 -0400 Message-ID: <55169240.7040103@huawei.com> Date: Sat, 28 Mar 2015 19:36:32 +0800 From: He Kuang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "ast@plumgrid.com >> Alexei Starovoitov" CC: , "linux-kernel@vger.kernel.org >> LKML" Subject: [RFC] bpf: Suggestion on bpf syscall interface Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.110.54.65] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.55169256.0106,ss=1,re=0.001,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 320fa2be7d7250ea7bb3819c0ff772f1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Alexei In our end-end IO module project, we use bpf maps to record configurations. According to current bpf syscall interface, we should specify map_fd to lookup/update bpf maps, so we are restricted to do config in the same user program. My suggestion is to export this kind of operations to sysfs, so we can load&attach bpf progs and config it seperately. We implement this feature in our demo project. What's your opinion on this?