mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04: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
|
@ -24,11 +24,7 @@ static void ltalk_setup(struct net_device *dev)
|
|||
/* Fill in the fields of the device structure with localtalk-generic values. */
|
||||
|
||||
dev->change_mtu = ltalk_change_mtu;
|
||||
dev->hard_header = NULL;
|
||||
dev->rebuild_header = NULL;
|
||||
dev->set_mac_address = ltalk_mac_addr;
|
||||
dev->hard_header_cache = NULL;
|
||||
dev->header_cache_update= NULL;
|
||||
|
||||
dev->type = ARPHRD_LOCALTLK;
|
||||
dev->hard_header_len = LTALK_HLEN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue