OSDN Git Service

net: unpollute priv_flags space
authorPaolo Abeni <pabeni@redhat.com>
Tue, 6 Mar 2018 09:56:31 +0000 (10:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 17:38:24 +0000 (12:38 -0500)
commit1ec54cb44e6731c3cb251bcf9251d65a4b4f6306
tree6ba70c6dc5096396e17e71e6a620eeccfb108277
parentb2b19494b80adc9d0e1e5631a69a24af47a5502c
net: unpollute priv_flags space

the ipvlan device driver defines and uses 2 bits inside the priv_flags
net_device field. Such bits and the related helper are used only
inside the ipvlan device driver, and the core networking does not
need to be aware of them.

This change moves netif_is_ipvlan* helper in the ipvlan driver and
re-implement them looking for ipvlan specific symbols instead of
using priv_flags.

Overall this frees two bits inside priv_flags - and move the following
ones to avoid gaps - without any intended functional change.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan.h
drivers/net/ipvlan/ipvlan_main.c
include/linux/netdevice.h