Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: epl: convert to netdev_ops

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Alexander Beregalov and committed by
Greg Kroah-Hartman
0e46ff33 3a323682

+12 -5
+12 -5
drivers/staging/epl/VirtualEthernetLinux.c
··· 284 284 return Ret; 285 285 } 286 286 287 + static const struct net_device_ops epl_netdev_ops = { 288 + .ndo_open = VEthOpen, 289 + .ndo_stop = VEthClose, 290 + .ndo_get_stats = VEthGetStats, 291 + .ndo_start_xmit = VEthXmit, 292 + .ndo_tx_timeout = VEthTimeout, 293 + .ndo_change_mtu = eth_change_mtu, 294 + .ndo_set_mac_address = eth_mac_addr, 295 + .ndo_validate_addr = eth_validate_addr, 296 + }; 297 + 287 298 tEplKernel VEthAddInstance(tEplDllkInitParam *pInitParam_p) 288 299 { 289 300 tEplKernel Ret = kEplSuccessful; ··· 310 299 goto Exit; 311 300 } 312 301 313 - pVEthNetDevice_g->open = VEthOpen; 314 - pVEthNetDevice_g->stop = VEthClose; 315 - pVEthNetDevice_g->get_stats = VEthGetStats; 316 - pVEthNetDevice_g->hard_start_xmit = VEthXmit; 317 - pVEthNetDevice_g->tx_timeout = VEthTimeout; 302 + pVEthNetDevice_g->netdev_ops = &epl_netdev_ops; 318 303 pVEthNetDevice_g->watchdog_timeo = EPL_VETH_TX_TIMEOUT; 319 304 pVEthNetDevice_g->destructor = free_netdev; 320 305