Re: [PATCH net-next] net: make net_device members garp_port and mrp_port conditional

2017-02-13 Thread David Miller
From: Tobias Klauser Date: Fri, 10 Feb 2017 16:43:50 +0100 > garp_port is only used in net/802/garp.c which is only compiled with > CONFIG_GARP enabled. Same goes for mrp_port which is only used in > net/802/mrp.c with CONFIG_MRP enabled. > > Only include the two members in

[PATCH net-next] net: make net_device members garp_port and mrp_port conditional

2017-02-10 Thread Tobias Klauser
garp_port is only used in net/802/garp.c which is only compiled with CONFIG_GARP enabled. Same goes for mrp_port which is only used in net/802/mrp.c with CONFIG_MRP enabled. Only include the two members in struct net_device if their respective CONFIG_* is enabled. This saves a few bytes in struct