OSDN Git Service

Drivers: hv: vmbus: Add a helper function is_sub_channel()
authorDexuan Cui <decui@microsoft.com>
Thu, 5 Sep 2019 23:01:16 +0000 (23:01 +0000)
committerSasha Levin <sashal@kernel.org>
Fri, 6 Sep 2019 18:52:44 +0000 (14:52 -0400)
commited56ef675ae6ef0e6f7d42b9c42dae61172f0960
treef295bd2ac3a5177561c9c847c89dac15e2ef48d0
parent63ecc6d22ce46643165c391a9c90ba67e22e1c0f
Drivers: hv: vmbus: Add a helper function is_sub_channel()

The existing method of telling if a channel is sub-channel in
vmbus_process_offer() is cumbersome. This new simple helper function
is preferred in future.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/hyperv.h