Commit 23e60dbf authored by Jonathan Cooper's avatar Jonathan Cooper Committed by sanglipeng
Browse files

sfc: Split STATE_READY in to STATE_NET_DOWN and STATE_NET_UP.

stable inclusion
from stable-v5.10.179
commit 06a72bbf0d9834fde7e12b2039fbc929fc8eb220
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8C809

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=06a72bbf0d9834fde7e12b2039fbc929fc8eb220



--------------------------------

[ Upstream commit 813cf9d1 ]

This patch splits the READY state in to NET_UP and NET_DOWN. This
is to prepare for future work to delay resource allocation until
interface up so that we can use resources more efficiently in
SRIOV environments, and also to lay the ground work for an extra
PROBED state where we don't create a network interface,
for VDPA operation.

Signed-off-by: default avatarJonathan Cooper <jonathan.s.cooper@amd.com>
Acked-by: default avatarMartin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: a80bb8e7 ("sfc: Fix use-after-free due to selftest_work")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent ed5a725e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment