]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
netkit: convert to ndo_set_rx_mode_async
authorStanislav Fomichev <sdf.kernel@gmail.com>
Thu, 16 Apr 2026 18:57:09 +0000 (11:57 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 21 Apr 2026 10:50:25 +0000 (12:50 +0200)
Convert netkit driver from ndo_set_rx_mode to ndo_set_rx_mode_async.
The netkit driver's set_multicast_list is a no-op, presumably
for the same reason as the one in dummy? (fake multicast ability)

Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20260416185712.2155425-13-sdf@fomichev.me
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/netkit.c

index 7b56a7ad7a496fbce771a9ae643e6ec9dc50734c..5e2eecc3165dc18a0ccd659de9ef5f65a111f445 100644 (file)
@@ -186,7 +186,9 @@ static int netkit_get_iflink(const struct net_device *dev)
        return iflink;
 }
 
-static void netkit_set_multicast(struct net_device *dev)
+static void netkit_set_multicast(struct net_device *dev,
+                                struct netdev_hw_addr_list *uc,
+                                struct netdev_hw_addr_list *mc)
 {
        /* Nothing to do, we receive whatever gets pushed to us! */
 }
@@ -330,7 +332,7 @@ static const struct net_device_ops netkit_netdev_ops = {
        .ndo_open               = netkit_open,
        .ndo_stop               = netkit_close,
        .ndo_start_xmit         = netkit_xmit,
-       .ndo_set_rx_mode        = netkit_set_multicast,
+       .ndo_set_rx_mode_async  = netkit_set_multicast,
        .ndo_set_rx_headroom    = netkit_set_headroom,
        .ndo_set_mac_address    = netkit_set_macaddr,
        .ndo_get_iflink         = netkit_get_iflink,