From: "Toke Høiland-Jørgensen" <toke@redhat•com>
To: Zhengchao Shao <shaozhengchao@huawei•com>,
netdev@vger•kernel.org, linux-kernel@vger•kernel.org,
bpf@vger•kernel.org, davem@davemloft•net, edumazet@google•com,
kuba@kernel•org, pabeni@redhat•com
Cc: ast@kernel•org, daniel@iogearbox•net, hawk@kernel•org,
john.fastabend@gmail•com, andrii@kernel•org, kafai@fb•com,
songliubraving@fb•com, yhs@fb•com, kpsingh@kernel•org,
bigeasy@linutronix•de, imagedong@tencent•com, petrm@nvidia•com,
memxor@gmail•com, arnd@arndb•de, weiyongjun1@huawei•com,
shaozhengchao@huawei•com, yuehaibing@huawei•com
Subject: Re: [PATCH bpf-next] bpf/xdp: Can't detach BPF XDP prog if not exist
Date: Wed, 04 May 2022 13:19:49 +0200 [thread overview]
Message-ID: <875ymlwnmy.fsf@toke.dk> (raw)
In-Reply-To: <20220504035207.98221-1-shaozhengchao@huawei.com>
Zhengchao Shao <shaozhengchao@huawei•com> writes:
> if user sets nonexistent xdp_flags to detach xdp prog, kernel should
> return err and tell user that detach failed with detail info.
>
> Signed-off-by: Zhengchao Shao <shaozhengchao@huawei•com>
I kinda see your point, but this will change user-visible behaviour that
applications might be relying on, so I don't think we can make this
change at this stage. Why can't your application just query the link for
whether a program is attached?
-Toke
next prev parent reply other threads:[~2022-05-04 11:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-04 3:52 [PATCH bpf-next] bpf/xdp: Can't detach BPF XDP prog if not exist Zhengchao Shao
2022-05-04 11:19 ` Toke Høiland-Jørgensen [this message]
2022-05-05 8:21 ` 答复: " shaozhengchao
2022-05-05 14:27 ` Toke Høiland-Jørgensen
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=875ymlwnmy.fsf@toke.dk \
--to=toke@redhat$(echo .)com \
--cc=andrii@kernel$(echo .)org \
--cc=arnd@arndb$(echo .)de \
--cc=ast@kernel$(echo .)org \
--cc=bigeasy@linutronix$(echo .)de \
--cc=bpf@vger$(echo .)kernel.org \
--cc=daniel@iogearbox$(echo .)net \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=hawk@kernel$(echo .)org \
--cc=imagedong@tencent$(echo .)com \
--cc=john.fastabend@gmail$(echo .)com \
--cc=kafai@fb$(echo .)com \
--cc=kpsingh@kernel$(echo .)org \
--cc=kuba@kernel$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=memxor@gmail$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=petrm@nvidia$(echo .)com \
--cc=shaozhengchao@huawei$(echo .)com \
--cc=songliubraving@fb$(echo .)com \
--cc=weiyongjun1@huawei$(echo .)com \
--cc=yhs@fb$(echo .)com \
--cc=yuehaibing@huawei$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox