• Jakub Kicinski's avatar
    net: extract a few internals from netdevice.h · 6264f58c
    Jakub Kicinski authored
    There's a number of functions and static variables used
    under net/core/ but not from the outside. We currently
    dump most of them into netdevice.h. That bad for many
    reasons:
     - netdevice.h is very cluttered, hard to figure out
       what the APIs are;
     - netdevice.h is very long;
     - we have to touch netdevice.h more which causes expensive
       incremental builds.
    
    Create a header under net/core/ and move some declarations.
    
    The new header is also a bit of a catch-all but that's
    fine, if we create more specific headers people will
    likely over-think where their declaration fit best.
    And end up putting them in netdevice.h, again.
    
    More work should be done on splitting netdevice.h into more
    targeted headers, but that'd be more time consuming so small
    steps.
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    6264f58c
net-procfs.c 9.32 KB