From: Jiri Pirko <jiri@resnulli.us>
To: David Laight <David.Laight@ACULAB.COM>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"davem@davemloft.net" <davem@davemloft.net>,
"jhs@mojatatu.com" <jhs@mojatatu.com>,
"xiyou.wangcong@gmail.com" <xiyou.wangcong@gmail.com>,
"saeedm@mellanox.com" <saeedm@mellanox.com>,
"matanb@mellanox.com" <matanb@mellanox.com>,
"leonro@mellanox.com" <leonro@mellanox.com>,
"mlxsw@mellanox.com" <mlxsw@mellanox.com>
Subject: Re: [patch net-next 2/4] net: sched: introduce per-egress action device callbacks
Date: Tue, 10 Oct 2017 16:31:52 +0200 [thread overview]
Message-ID: <20171010143152.GG2033@nanopsycho> (raw)
In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6DD008ED67@AcuExch.aculab.com>
Tue, Oct 10, 2017 at 03:31:59PM CEST, David.Laight@ACULAB.COM wrote:
>From: Jiri Pirko
>> Sent: 10 October 2017 08:30
>> Introduce infrastructure that allows drivers to register callbacks that
>> are called whenever tc would offload inserted rule and specified device
>> acts as tc action egress device.
>
>How does a driver safely unregister a callback?
>(to avoid a race with the callback being called.)
>
>Usually this requires a callback in the context that makes the
>notification callbacks indicating that no more such callbacks
>will be made.
rtnl is your answer. It is being held during register/unregister/cb
next prev parent reply other threads:[~2017-10-10 14:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-10 7:30 [patch net-next 0/4] net: sched: get rid of cls_flower->egress_dev Jiri Pirko
2017-10-10 7:30 ` [patch net-next 1/4] net: sched: make tc_action_ops->get_dev return dev and avoid passing net Jiri Pirko
2017-10-10 17:44 ` Cong Wang
2017-10-10 21:19 ` Jiri Pirko
2017-10-11 16:34 ` Cong Wang
2017-10-11 20:43 ` Jiri Pirko
2017-10-10 7:30 ` [patch net-next 2/4] net: sched: introduce per-egress action device callbacks Jiri Pirko
2017-10-10 13:31 ` David Laight
2017-10-10 14:31 ` Jiri Pirko [this message]
2017-10-10 15:12 ` David Laight
2017-10-10 15:39 ` Jiri Pirko
2017-10-10 7:30 ` [patch net-next 3/4] net: sched: convert cls_flower->egress_dev users to tc_setup_cb_egdev infra Jiri Pirko
2017-10-10 20:04 ` Or Gerlitz
2017-10-10 20:08 ` Or Gerlitz
2017-10-10 21:16 ` Jiri Pirko
2017-10-10 21:47 ` Or Gerlitz
2017-10-11 8:36 ` Or Gerlitz
2017-10-10 7:30 ` [patch net-next 4/4] net: sched: remove unused tcf_exts_get_dev helper and cls_flower->egress_dev Jiri Pirko
2017-10-10 17:25 ` [patch net-next 0/4] net: sched: get rid of cls_flower->egress_dev Or Gerlitz
[not found] ` <CAJ3xEMgPdcVrogHZmEnH+vP3E53zvEcFN8+wyuEqSs6utHQVRg@mail.gmail.com>
2017-10-10 21:13 ` Jiri Pirko
2017-10-10 21:46 ` Or Gerlitz
2017-10-11 6:44 ` Jiri Pirko
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=20171010143152.GG2033@nanopsycho \
--to=jiri@resnulli.us \
--cc=David.Laight@ACULAB.COM \
--cc=davem@davemloft.net \
--cc=jhs@mojatatu.com \
--cc=leonro@mellanox.com \
--cc=matanb@mellanox.com \
--cc=mlxsw@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=saeedm@mellanox.com \
--cc=xiyou.wangcong@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).