summaryrefslogtreecommitdiffstats
path: root/include/linux/if.h
diff options
context:
space:
mode:
authorJiri Pirko2012-06-29 07:10:05 +0200
committerDavid S. Miller2012-06-30 10:08:00 +0200
commitbb35f67195fcdbe79faa7a15ce148a67c9ab923d (patch)
treed02ca3cb76bec3d9f0c86b0a44c49478e5e9c0d1 /include/linux/if.h
parentnetlink: add nlk->netlink_bind hook for module auto-loading (diff)
downloadkernel-qcow2-linux-bb35f67195fcdbe79faa7a15ce148a67c9ab923d.tar.gz
kernel-qcow2-linux-bb35f67195fcdbe79faa7a15ce148a67c9ab923d.tar.xz
kernel-qcow2-linux-bb35f67195fcdbe79faa7a15ce148a67c9ab923d.zip
net: introduce new priv_flag indicating iface capable of change mac when running
Introduce IFF_LIVE_ADDR_CHANGE priv_flag and use it to disable netif_running() check in eth_mac_addr() Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if.h')
-rw-r--r--include/linux/if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/if.h b/include/linux/if.h
index f995c663c493..1ec407b01e46 100644
--- a/include/linux/if.h
+++ b/include/linux/if.h
@@ -81,6 +81,8 @@
#define IFF_UNICAST_FLT 0x20000 /* Supports unicast filtering */
#define IFF_TEAM_PORT 0x40000 /* device used as team port */
#define IFF_SUPP_NOFCS 0x80000 /* device supports sending custom FCS */
+#define IFF_LIVE_ADDR_CHANGE 0x100000 /* device supports hardware address
+ * change when it's running */
#define IF_GET_IFACE 0x0001 /* for querying only */