From: Jiri Pirko <jiri@resnulli.us>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, jhs@mojatatu.com,
xiyou.wangcong@gmail.com, mlxsw@mellanox.com, andrew@lunn.ch,
vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com,
michael.chan@broadcom.com, ganeshgr@chelsio.com,
jeffrey.t.kirsher@intel.com, saeedm@mellanox.com,
matanb@mellanox.com, leonro@mellanox.com, idosch@mellanox.com,
jakub.kicinski@netronome.com, simon.horman@netronome.com,
pieter.jansenvanvuuren@netronome.com, john.hurley@netronome.com,
alexander.h.duyck@intel.com
Subject: Re: [patch net-next 2/4] net: sched: move the can_offload check from binding phase to rule insertion phase
Date: Thu, 26 Oct 2017 08:07:48 +0200 [thread overview]
Message-ID: <20171026060748.GA1928@nanopsycho.orion> (raw)
In-Reply-To: <20171026.100131.1516530767097739079.davem@davemloft.net>
Thu, Oct 26, 2017 at 03:01:31AM CEST, davem@davemloft.net wrote:
>From: Jiri Pirko <jiri@resnulli.us>
>Date: Wed, 25 Oct 2017 16:34:58 +0200
>
>> From: Jiri Pirko <jiri@mellanox.com>
>>
>> This restores the original behaviour before the block callbacks were
>> introduced. Allow the drivers to do binding of block always, no matter
>> if the NETIF_F_HW_TC feature is on or off. Move the check to the block
>> callback which is called for rule insertion.
>>
>> Reported-by: Alexander Duyck <alexander.duyck@gmail.com>
>> Signed-off-by: Jiri Pirko <jiri@mellanox.com>
>
>I agree with Jakub's feedback, if every callback has to make this check
>why not just do it in the core where the callback is invoked?
We cannot add it to the core. The idea of the block callbacks is to get
independent of the "dev". For the block sharing, driver registers one
block callback for multiple devs. Core has no access to "dev".
next prev parent reply other threads:[~2017-10-26 6:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 14:34 [patch net-next 0/4] net: sched: block callbacks follow-up Jiri Pirko
2017-10-25 14:34 ` [patch net-next 1/4] net: sched: remove unused tc_should_offload helper Jiri Pirko
2017-10-25 14:34 ` [patch net-next 2/4] net: sched: move the can_offload check from binding phase to rule insertion phase Jiri Pirko
2017-10-25 22:09 ` Jakub Kicinski
2017-10-26 1:01 ` David Miller
2017-10-26 6:07 ` Jiri Pirko [this message]
2017-10-26 15:29 ` Alexander Duyck
2017-10-26 15:40 ` Jiri Pirko
2017-10-26 20:55 ` Jakub Kicinski
2017-10-25 14:34 ` [patch net-next 3/4] net: sched: remove tc_can_offload check from egdev call Jiri Pirko
2017-10-25 14:35 ` [patch net-next 4/4] net: sched: remove ndo_setup_tc check from tc_can_offload Jiri Pirko
2017-10-29 9:36 ` [patch net-next 0/4] net: sched: block callbacks follow-up David Miller
2017-10-29 11:17 ` Jiri Pirko
2017-11-01 10:41 ` 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=20171026060748.GA1928@nanopsycho.orion \
--to=jiri@resnulli.us \
--cc=alexander.h.duyck@intel.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=ganeshgr@chelsio.com \
--cc=idosch@mellanox.com \
--cc=jakub.kicinski@netronome.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jhs@mojatatu.com \
--cc=john.hurley@netronome.com \
--cc=leonro@mellanox.com \
--cc=matanb@mellanox.com \
--cc=michael.chan@broadcom.com \
--cc=mlxsw@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=pieter.jansenvanvuuren@netronome.com \
--cc=saeedm@mellanox.com \
--cc=simon.horman@netronome.com \
--cc=vivien.didelot@savoirfairelinux.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).