* [PATCH next 0/3] use netdev_is_rx_handler_busy() in few known cases
@ 2017-01-18 23:02 Mahesh Bandewar
2017-01-20 17:22 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Mahesh Bandewar @ 2017-01-18 23:02 UTC (permalink / raw)
To: David Miller; +Cc: Eric Dumazet, netdev, Mahesh Bandewar, Mahesh Bandewar
From: Mahesh Bandewar <maheshb@google.com>
netdev_rx_handler_register() was recently split into two parts - (a) check
if the handler is used, (b) register the new handler, parts. This is
helpful in scenarios like bonding where at the time of registration there
is too much state to unwind and it should check if the device is free
before building that state. IPvlan and macvlan drivers don't have this
issue however it can make use of the same check instead of using a device
specific check.
Mahesh Bandewar (3):
net: remove duplicate code.
ipvlan: use netdev_is_rx_handler_busy instead of checking specific
type
macvlan: use netdev_is_rx_handler_busy instead of checking specific
type
drivers/net/ipvlan/ipvlan_main.c | 4 ++--
drivers/net/macvlan.c | 2 +-
net/core/dev.c | 4 +---
3 files changed, 4 insertions(+), 6 deletions(-)
--
2.11.0.483.g087da7b7c-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH next 0/3] use netdev_is_rx_handler_busy() in few known cases
2017-01-18 23:02 [PATCH next 0/3] use netdev_is_rx_handler_busy() in few known cases Mahesh Bandewar
@ 2017-01-20 17:22 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-01-20 17:22 UTC (permalink / raw)
To: mahesh; +Cc: edumazet, netdev, maheshb
From: Mahesh Bandewar <mahesh@bandewar.net>
Date: Wed, 18 Jan 2017 15:02:45 -0800
> netdev_rx_handler_register() was recently split into two parts - (a) check
> if the handler is used, (b) register the new handler, parts. This is
> helpful in scenarios like bonding where at the time of registration there
> is too much state to unwind and it should check if the device is free
> before building that state. IPvlan and macvlan drivers don't have this
> issue however it can make use of the same check instead of using a device
> specific check.
Looks good, series applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-20 17:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-18 23:02 [PATCH next 0/3] use netdev_is_rx_handler_busy() in few known cases Mahesh Bandewar
2017-01-20 17:22 ` David Miller
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).