[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
@@ -1551,8 +1551,8 @@ static void scc_net_setup(struct net_device *dev)
|
||||
dev->stop = scc_net_close;
|
||||
|
||||
dev->hard_start_xmit = scc_net_tx;
|
||||
dev->hard_header = ax25_hard_header;
|
||||
dev->rebuild_header = ax25_rebuild_header;
|
||||
dev->header_ops = &ax25_header_ops;
|
||||
|
||||
dev->set_mac_address = scc_net_set_mac_address;
|
||||
dev->get_stats = scc_net_get_stats;
|
||||
dev->do_ioctl = scc_net_ioctl;
|
||||
|
Reference in New Issue
Block a user