[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:
committed by
David S. Miller
parent
b95cce3576
commit
3b04ddde02
@ -3258,11 +3258,10 @@ while (0)
|
||||
INIT_LIST_HEAD(&local->bss_list);
|
||||
|
||||
hostap_setup_dev(dev, local, 1);
|
||||
local->saved_eth_header_parse = dev->hard_header_parse;
|
||||
|
||||
dev->hard_start_xmit = hostap_master_start_xmit;
|
||||
dev->type = ARPHRD_IEEE80211;
|
||||
dev->hard_header_parse = hostap_80211_header_parse;
|
||||
dev->header_ops = &hostap_80211_ops;
|
||||
|
||||
rtnl_lock();
|
||||
ret = dev_alloc_name(dev, "wifi%d");
|
||||
|
Reference in New Issue
Block a user