diff options
Diffstat (limited to 'drivers/net/sfc/enum.h')
-rw-r--r-- | drivers/net/sfc/enum.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sfc/enum.h b/drivers/net/sfc/enum.h index 0c2e41ce8b4a..60cbc6e1e66b 100644 --- a/drivers/net/sfc/enum.h +++ b/drivers/net/sfc/enum.h | |||
@@ -58,6 +58,9 @@ extern const char *efx_loopback_mode_names[]; | |||
58 | #define LOOPBACK_INTERNAL(_efx) \ | 58 | #define LOOPBACK_INTERNAL(_efx) \ |
59 | (!!(LOOPBACKS_INTERNAL & LOOPBACK_MASK(_efx))) | 59 | (!!(LOOPBACKS_INTERNAL & LOOPBACK_MASK(_efx))) |
60 | 60 | ||
61 | #define LOOPBACK_CHANGED(_from, _to, _mask) \ | ||
62 | (!!((LOOPBACK_MASK(_from) ^ LOOPBACK_MASK(_to)) & (_mask))) | ||
63 | |||
61 | #define LOOPBACK_OUT_OF(_from, _to, _mask) \ | 64 | #define LOOPBACK_OUT_OF(_from, _to, _mask) \ |
62 | ((LOOPBACK_MASK(_from) & (_mask)) && !(LOOPBACK_MASK(_to) & (_mask))) | 65 | ((LOOPBACK_MASK(_from) & (_mask)) && !(LOOPBACK_MASK(_to) & (_mask))) |
63 | 66 | ||