sierra_net.c (ead5d1f4d877e92c051e1a1ade623d0d30e71619) | sierra_net.c (323955a0498ccaa1263e369b91efd8f4310768b6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * USB-to-WWAN Driver for Sierra Wireless modems 4 * 5 * Copyright (C) 2008, 2009, 2010 Paxton Smith, Matthew Safar, Rory Filer 6 * <linux@sierrawireless.com> 7 * 8 * Portions of this based on the cdc_ether driver by David Brownell (2003-2005) --- 170 unchanged lines hidden (view full) --- 179 180/* Our own net device operations structure */ 181static const struct net_device_ops sierra_net_device_ops = { 182 .ndo_open = usbnet_open, 183 .ndo_stop = usbnet_stop, 184 .ndo_start_xmit = usbnet_start_xmit, 185 .ndo_tx_timeout = usbnet_tx_timeout, 186 .ndo_change_mtu = usbnet_change_mtu, | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * USB-to-WWAN Driver for Sierra Wireless modems 4 * 5 * Copyright (C) 2008, 2009, 2010 Paxton Smith, Matthew Safar, Rory Filer 6 * <linux@sierrawireless.com> 7 * 8 * Portions of this based on the cdc_ether driver by David Brownell (2003-2005) --- 170 unchanged lines hidden (view full) --- 179 180/* Our own net device operations structure */ 181static const struct net_device_ops sierra_net_device_ops = { 182 .ndo_open = usbnet_open, 183 .ndo_stop = usbnet_stop, 184 .ndo_start_xmit = usbnet_start_xmit, 185 .ndo_tx_timeout = usbnet_tx_timeout, 186 .ndo_change_mtu = usbnet_change_mtu, |
187 .ndo_get_stats64 = usbnet_get_stats64, | 187 .ndo_get_stats64 = dev_get_tstats64, |
188 .ndo_set_mac_address = eth_mac_addr, 189 .ndo_validate_addr = eth_validate_addr, 190}; 191 192/* get private data associated with passed in usbnet device */ 193static inline struct sierra_net_data *sierra_net_get_private(struct usbnet *dev) 194{ 195 return (struct sierra_net_data *)dev->data[0]; --- 776 unchanged lines hidden --- | 188 .ndo_set_mac_address = eth_mac_addr, 189 .ndo_validate_addr = eth_validate_addr, 190}; 191 192/* get private data associated with passed in usbnet device */ 193static inline struct sierra_net_data *sierra_net_get_private(struct usbnet *dev) 194{ 195 return (struct sierra_net_data *)dev->data[0]; --- 776 unchanged lines hidden --- |