#ifndef LOCKME_H #define LOCKME_H #include #include "die.h" static inline void xlockme(void) { if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0) panic("Cannot lock pages!\n"); } static inline void xunlockme(void) { munlockall(); } #endif /* LOCKME_H */ ref='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/net?h=nds-private-remove' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-02-03 13:20:21 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-06 16:53:29 -0500
commit04d3a4c6af52a58370795bc9f70dc15f51f8bb84 (patch)
tree07ed46ceedeb980d62da34ae26e3aac5f8af7dfb /net
parentf515f192ab4f45bb695146b82432d63d98775787 (diff)
net: dsa: introduce bridge notifier
A slave device will now notify the switch fabric once its port is bridged or unbridged, instead of calling directly its switch operations. This code allows propagating cross-chip bridging events in the fabric. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/dsa/slave.c40
-rw-r--r--net/dsa/switch.c32
2 files changed, 61 insertions, 11 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c