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
quoted
From: Jiri Pirko <redacted>
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 <redacted>
Signed-off-by: Jiri Pirko <redacted>
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".