• Arnd Bergmann's avatar
    net: split out ndo_siowandev ioctl · ad7eab2a
    Arnd Bergmann authored
    In order to further reduce the scope of ndo_do_ioctl(), move
    out the SIOCWANDEV handling into a new network device operation
    function.
    
    Adjust the prototype to only pass the if_settings sub-structure
    in place of the ifreq, and remove the redundant 'cmd' argument
    in the process.
    
    Cc: Krzysztof Halasa <khc@pm.waw.pl>
    Cc: "Jan \"Yenya\" Kasprzak" <kas@fi.muni.cz>
    Cc: Kevin Curtis <kevin.curtis@farsite.co.uk>
    Cc: Zhao Qiang <qiang.zhao@nxp.com>
    Cc: Martin Schiller <ms@dev.tdt.de>
    Cc: Jiri Slaby <jirislaby@kernel.org>
    Cc: linux-x25@vger.kernel.org
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ad7eab2a
cosa.c 56.5 KB