From patchwork Sat Jul 5 03:23:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 4486161 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D99A6BEEAA for ; Sat, 5 Jul 2014 03:24:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 15286203EB for ; Sat, 5 Jul 2014 03:24:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 11B6E20411 for ; Sat, 5 Jul 2014 03:24:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760466AbaGEDXx (ORCPT ); Fri, 4 Jul 2014 23:23:53 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:39956 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753964AbaGEDXw (ORCPT ); Fri, 4 Jul 2014 23:23:52 -0400 Received: by mail-pa0-f53.google.com with SMTP id ey11so2626241pad.26 for ; Fri, 04 Jul 2014 20:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references:in-reply-to :references; bh=TJ7fM5nltuwi7HGaqTpCgpk4f5V0pkqNOSMbNZmradU=; b=zhif4vGiXvB8yk8uTNbpCvrEsFa5cByXpE7BehQOuO3U0OqKY/xSHrDhUJ/r1WlR0r fZrA8YkuRPx9VjGQjXBXTe9xO3hnJqezIrhyEeXQw+vcQS2NRmHhIbGS0E1Kta+cuLIY sRVqQ/b57ZE0jRcrqwT+iLRmq+mKaUzg/YAWC0dHU60Tal5Wz1PbZSD18TUyMhkH/8c0 hulhK2Ug3/QLqojn11UddoZpsShY7Tq26jeniT3XCLbLL/szbEL+isvZZ1HF+37NaaUL ITAHiGhpCTpTlC4wFrA52UpxgMTLuBw68XD96BWOKrziA6pYiZ5ZlZD1GLws4LD5IJUB 1btg== X-Received: by 10.70.103.74 with SMTP id fu10mr48690pdb.119.1404530631953; Fri, 04 Jul 2014 20:23:51 -0700 (PDT) Received: from hjpc.localdomain ([118.186.129.12]) by mx.google.com with ESMTPSA id dd5sm45561414pbc.85.2014.07.04.20.23.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jul 2014 20:23:51 -0700 (PDT) From: Asias He To: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org Subject: [RFC V2 2/7] VSOCK: Add dgram_skb to vsock_sock Date: Sat, 5 Jul 2014 11:23:11 +0800 Message-Id: <294e5a9eaad00941ae3125c0d1c6b25bd3368881.1404529115.git.asias.hejun@gmail.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: References: In-Reply-To: References: Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Asias He Signed-off-by: Asias He --- include/net/af_vsock.h | 1 + net/vmw_vsock/af_vsock.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h index 88f559a..ef668a0 100644 --- a/include/net/af_vsock.h +++ b/include/net/af_vsock.h @@ -58,6 +58,7 @@ struct vsock_sock { */ struct list_head pending_links; struct list_head accept_queue; + struct list_head dgram_skb; bool rejected; struct delayed_work dwork; u32 peer_shutdown; diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index 9b48d4e..df8781c 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_vsock.c @@ -684,6 +684,7 @@ struct sock *__vsock_create(struct net *net, vsk->listener = NULL; INIT_LIST_HEAD(&vsk->pending_links); INIT_LIST_HEAD(&vsk->accept_queue); + INIT_LIST_HEAD(&vsk->dgram_skb); vsk->rejected = false; vsk->sent_request = false; vsk->ignore_connecting_rst = false;