From patchwork Wed Jul 13 23:38:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sairam Venugopal X-Patchwork-Id: 648115 X-Patchwork-Delegate: guru@ovn.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3rqb0C14xKz9s65 for ; Thu, 14 Jul 2016 09:39:39 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 28A2510B21; Wed, 13 Jul 2016 16:38:47 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e3.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id AABCD1026C for ; Wed, 13 Jul 2016 16:38:43 -0700 (PDT) Received: from bar5.cudamail.com (localhost [127.0.0.1]) by mx1e3.cudamail.com (Postfix) with ESMTPS id 3B25F420609 for ; Wed, 13 Jul 2016 17:38:43 -0600 (MDT) X-ASG-Debug-ID: 1468453122-09eadd75af09d60001-byXFYA Received: from mx3-pf2.cudamail.com ([192.168.14.1]) by bar5.cudamail.com with ESMTP id sExDRFFbfWK7kx6i (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 13 Jul 2016 17:38:42 -0600 (MDT) X-Barracuda-Envelope-From: vsairam@vmware.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.1 Received: from unknown (HELO EX13-EDG-OU-001.vmware.com) (208.91.0.189) by mx3-pf2.cudamail.com with ESMTPS (AES256-SHA encrypted); 13 Jul 2016 23:38:42 -0000 Received-SPF: error (mx3-pf2.cudamail.com: error in processing during lookup of vmware.com: DNS problem) Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-001.vmware.com (10.113.208.155) with Microsoft SMTP Server id 15.0.1156.6; Wed, 13 Jul 2016 16:38:15 -0700 Received: from vsairam-w01.vmware.com (htb-1s-eng-dhcp42.eng.vmware.com [10.33.78.42]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id A2D614078B; Wed, 13 Jul 2016 16:38:40 -0700 (PDT) X-CudaMail-Envelope-Sender: vsairam@vmware.com From: Sairam Venugopal To: X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-V2-712055224 X-CudaMail-DTE: 071316 X-CudaMail-Originating-IP: 208.91.0.189 Date: Wed, 13 Jul 2016 16:38:31 -0700 X-ASG-Orig-Subj: [##CM-V2-712055224##][PATCH 2/9] datapath-windows: Add supported netlink family protocols to NetlinkProto.h Message-ID: <20160713233838.47648-3-vsairam@vmware.com> X-Mailer: git-send-email 2.9.0.windows.1 In-Reply-To: <20160713233838.47648-1-vsairam@vmware.com> References: <20160713233838.47648-1-vsairam@vmware.com> MIME-Version: 1.0 Received-SPF: None (EX13-EDG-OU-001.vmware.com: vsairam@vmware.com does not designate permitted sender hosts) X-Barracuda-Connect: UNKNOWN[192.168.14.1] X-Barracuda-Start-Time: 1468453122 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH 2/9] datapath-windows: Add supported netlink family protocols to NetlinkProto.h X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@openvswitch.org Sender: "dev" The Hyper-V datapath supports NETLINK_GENERIC and NETLINK_NETFILTER protocols for netlink communication. Define these two protocols in the datapath. Signed-off-by: Sairam Venugopal Acked-By: Yin Lin Acked-by: Alin Gabriel Serdean --- datapath-windows/ovsext/Netlink/NetlinkProto.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datapath-windows/ovsext/Netlink/NetlinkProto.h b/datapath-windows/ovsext/Netlink/NetlinkProto.h index beb14d5..5175311 100644 --- a/datapath-windows/ovsext/Netlink/NetlinkProto.h +++ b/datapath-windows/ovsext/Netlink/NetlinkProto.h @@ -125,4 +125,7 @@ BUILD_ASSERT_DECL(sizeof(NL_ATTR) == 4); #define OVS_HDRLEN NLMSG_ALIGN(sizeof(OVS_HDR)) #define NLA_HDRLEN ((INT) NLA_ALIGN(sizeof(NL_ATTR))) +#define NETLINK_NETFILTER 12 +#define NETLINK_GENERIC 16 + #endif /* NetlinProto.h */