On 7/12/2020 3:16 PM, Florian Fainelli wrote:
> In order to support overloading of netdev_ops which can be done by
> specific subsystems such as DSA, utilize netdev_ops_equal() which allows
> a network driver implementing a ndo_equal operation to still qualify
> whether a net_device::netdev_ops is equal or not to its own.
>
> Mechanical conversion done by spatch with the following SmPL patch:
>
> @@
> struct net_device *n;
> const struct net_device_ops o;
> identifier netdev_ops;
> @@
>
> - n->netdev_ops != &o
> + !netdev_ops_equal(n, &o)
>
> @@
> struct net_device *n;
> const struct net_device_ops o;
> identifier netdev_ops;
> @@
>
> - n->netdev_ops == &o
> + netdev_ops_equal(n, &o)
>
> Signed-off-by: Florian Fainelli <f.faine...@gmail.com>
> ---
I will be waiting for feedback before spinning a v2, but the changes to
net/openvswitch are no longer necessary and should instead using
__netdev_ops_equal(), sorry for missing that before sending.
--
Florian