netfilter: xt_qtaguid: Allow tracking loopback

In the past it would always ignore interfaces with loopback addresses.
Now we just treat them like any other.
This also helps with writing tests that check for the presence
of the qtaguid module.

Signed-off-by: JP Abgrall <jpa@google.com>
msm: smd: call smem_find() after releasing spinlocks

If a subsystem crashes with a remote spinlock locked, then the subsystem
restart code should release it before attempting to access SMEM.
Originally when this code was written, smem_find() did not lock a remote
spinlock in violation of the SMEM protocol.  Once smem_find() was
updated to lock the remote spinlock, this deadlock scnario was created.

Do not call smem_find() until the remote spinlocks have been released
for the failed subsystem.

CRs-Fixed: 397287

Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
(cherry picked from commit 50ad86febb34255ed47b7dd9840aaa6f1b257b3c)

Change-Id: Ied732e4bccdf2016ef627be28f12daf20cdff7b9
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
msm: smd: add packet checking API

Add an API to allow clients to poll for incoming packets when they have
interrupts disabled, otherwise internal SMD structures will never update
and the client can never get the packet they are waiting for.

Change-Id: I50bb8d466fe6a19db01e9cec6eb61b4ea89c18d9
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
msm: smd: Export SMD initialization function

Export msm_smd_init function so that it could be called from within a
board file in order to satisfy driver probe order dependencies.

Change-Id: I5b684acbc43861dbbcb25cea5cb9eafac54d5c04
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
msm: smsm: Use interrupt mask for local SMSM notifications

Only trigger SMSM callback processing for the local processor if
callbacks have been registered.

Without this fix, excessive SMSM bit toggles may overflow the SMSM
snapshot queue.

Change-Id: Ieeb3e62f50915807eae92ac0762b2af5ac8a8438
CRs-Fixed: 378402
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
Signed-off-by: Angshuman Sarkar <angshuman@codeaurora.org>
msm: smd: fix packet polling race condition

Packet polling is intended to be used with interrupts disabled, however in
multicore targets, interrupts may not be disabled on all cores.  Therefore
packet polling must lock on shared resources to ensure cores with
interrupts enabled do not stomp on polling operations.

Change-Id: I2faa1024024a46ef7c55224f8e9c5e548d07c5e4
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>