From patchwork Fri Mar 14 08:20:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Chenchen X-Patchwork-Id: 14016414 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06B8D1A23B1; Fri, 14 Mar 2025 08:20:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741940414; cv=none; b=PWnM+ThG+wqpkKTa8xsvAOA3bjAk/ZPGRRtgyKy8ov5RIMdq9ZyK2XbBWYAFU7ML9ya8UF7kzKW3Hv0vGCmDzI1GiC/P8TnTZnouFNyhLVKPdOxo3JzTn2YmmMb3tEsX3vQbKvKp5zQlJX5R/5SPCdB12Xeg9TeeNXDmJSDawjg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741940414; c=relaxed/simple; bh=rKphS0SrsLotig5CPwXIlymGuJqFQEK1x8iV6oo9EbE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mMBvrktTV0zR+9Fa7bYqIfbLHqT9JN3/xnDmNHhdhExBHsbd0ID+csiAdi1OezSHzgABNN7P4bkbOJ7RzFI2UQB+fq1n8AfpIG0HaZpm1RFM3LCSmMQAx3eypOzZmRZBwzFxH02E940JGwvhgA4uM5+8SOBBRn3bffhEQ2Y23ik= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.255 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4ZDcjt48qyz1d04P; Fri, 14 Mar 2025 16:20:02 +0800 (CST) Received: from kwepemd100023.china.huawei.com (unknown [7.221.188.33]) by mail.maildlp.com (Postfix) with ESMTPS id 84ED8180102; Fri, 14 Mar 2025 16:20:09 +0800 (CST) Received: from localhost.localdomain (10.175.104.82) by kwepemd100023.china.huawei.com (7.221.188.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 14 Mar 2025 16:20:08 +0800 From: Dong Chenchen To: , , , , , , , , , CC: , , , , , , , Dong Chenchen Subject: [PATCH net 0/2] bpf, sockmap: Avoid sk_prot reset on sockmap unlink with ULP set Date: Fri, 14 Mar 2025 16:20:02 +0800 Message-ID: <20250314082004.2369712-1-dongchenchen2@huawei.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemd100023.china.huawei.com (7.221.188.33) X-Patchwork-Delegate: kuba@kernel.org Avoid sk_prot reset on sockmap unlink with ULP set to fix warning on recurse in sock_map_close(). dongchenchen (2): bpf, sockmap: Skip sk_prot ops redo when ulp set selftests: bpf: Add case for sockmap_ktls set when verdict attached net/core/sock_map.c | 2 +- .../selftests/bpf/prog_tests/sockmap_ktls.c | 70 +++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-)