mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NET]: Move hardware header operations out of netdevice.
Since hardware header operations are part of the protocol class not the device instance, make them into a separate object and save memory. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b95cce3576
commit
3b04ddde02
65 changed files with 479 additions and 473 deletions
|
@ -870,15 +870,6 @@ static void set_multicast_list(struct net_device *dev)
|
|||
/* Actually netatalk needs fixing! */
|
||||
}
|
||||
|
||||
static int ltpc_hard_header (struct sk_buff *skb, struct net_device *dev,
|
||||
unsigned short type, void *daddr, void *saddr, unsigned len)
|
||||
{
|
||||
if(debug & DEBUG_VERBOSE)
|
||||
printk("ltpc_hard_header called for device %s\n",
|
||||
dev->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ltpc_poll_counter;
|
||||
|
||||
static void ltpc_poll(unsigned long l)
|
||||
|
@ -1141,7 +1132,6 @@ struct net_device * __init ltpc_probe(void)
|
|||
|
||||
/* Fill in the fields of the device structure with ethernet-generic values. */
|
||||
dev->hard_start_xmit = ltpc_xmit;
|
||||
dev->hard_header = ltpc_hard_header;
|
||||
dev->get_stats = ltpc_get_stats;
|
||||
|
||||
/* add the ltpc-specific things */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue