- For ethernet, dev->header_ops is eth_header_ops
1
2
3
4
5936 static int __devinit e1000_probe(struct pci_dev *pdev,
937 const struct pci_device_id *ent)
938
...
973 netdev = alloc_etherdev(sizeof(struct e1000_adapter));
include/linux/etherdevice.h
1 | 53 #define alloc_etherdev(sizeof_priv) alloc_etherdev_mq(sizeof_priv, 1) |
net/ethernet/eth.c
1 | 365 struct net_device *alloc_etherdev_mqs(int sizeof_priv, unsigned int txqs, |
net/core/dev.c
1 | 5821 struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name, |
net/ethernet/eth.c
1 | 334 void ether_setup(struct net_device *dev) |