Skip to content

Diet struct net_device a bit

Pavel Emelyanov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Cut off br_port fied from net_deviceinclude/linux/if_bridge.h include/linux/netdevice.h+4 -02 replies
2/5Cut off macvlan_port from net_deviceinclude/linux/netdevice.h+2 -00 replies
3/5Cut off ax25_ptr from net_deviceinclude/linux/netdevice.h+2 -00 replies
4/5Cut off ec_ptr from net_deviceinclude/linux/netdevice.h+2 -00 replies
5/5Cut off dn_ptr from net_deviceinclude/linux/netdevice.h net/core/dev.c+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Diet struct net_device a bit

There are some pointers, that are used in protocols/drivers/etc in this struct. E.g. br_port, macvlan_port, ec_ptr, etc. Some of them can be simply compile out with ifdefs, some require a bit closer look.

Here's the summary:
Compiled out in this set with appropriate ifdef:
* br_port
* macvlan_port
* dn_ptr
* ec_ptr
* ax25_ptr

Require a closer look:
* atalk_ptr is shared with irda with "should we get our own field?" comment;
* ip_ptr and
* ip6_ptr are used in headers and gcc complains when trying to compile net/socket.c that these fields are unreclared;
* ieee80211_ptr is used in many wireless drivers. Need time to check for the config dependencies.