From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1B6F7A00C4; Tue, 26 Apr 2022 10:34:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9ACA4282F; Tue, 26 Apr 2022 10:32:53 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 6EFB84003F for ; Sat, 23 Apr 2022 06:30:17 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id c23so15102703plo.0 for ; Fri, 22 Apr 2022 21:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneconvergence.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i0uMkeRByG7bNsgDW/eQzYBovu/Xh3EYlcSLsTCxxVo=; b=MohfjdVZc55kGt6OccV3/he9f14IZiDrjSBRxsyCZtI86eBxeVDHFA6AaUHtfim7c/ Unl7jaRFH7rkoEOcemtrEzVpABAKqHXFPbhoJAXzE5apxjUSdCA7KahsQH+lwOuvGPdb LkimfbdUgSucJ5EqNOr5PUqGH8jrgYdoZF9GY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i0uMkeRByG7bNsgDW/eQzYBovu/Xh3EYlcSLsTCxxVo=; b=FOE44xW+U40FuMCmWUWQPh4ih3RPSxi4lMl+IdPvMV5exIiVPh2D7/8ZvHtwaQmmuG ycfeBgh+eZafMDGb/YIWyJoK+Gnt92pQJCUUYr/kkLaRqLNcbEyqyTfSejr5K8C31wMl AkED0Hz1kTPPspp7ce/xOqeepqKoOND5g7Zlm7ds2YEAIFsbIkqDp5haE6lbR9oZtXrt CCbdrF89IQXkCymOmsQ7jglEG4HThi70R4OYe/gG30DEkJ4+Ks/7bwhW7N59ZysLCGGN l4AbAm6OZw8jH5WauyaHsAtv+QQS7hDm6B7MUjkUqVN6iH9mdz6dEKEoDsV9l+b7ZHKe B78Q== X-Gm-Message-State: AOAM532DM2OLXGVgxZRXrU+eFyrqP5Tt9aenE6B4O44GAa2Gj3ipmV7b 7ebRvtZz4Ri+O/bKT7HwT+tXYw== X-Google-Smtp-Source: ABdhPJwKW9dG58jjbs93snv/xEnEBsSVdYDmtqccvF7QV5QSDFPmLeInf9Pm6102PfJ2EuJdWvMb+g== X-Received: by 2002:a17:90b:1a87:b0:1d5:2320:9b6b with SMTP id ng7-20020a17090b1a8700b001d523209b6bmr15856030pjb.90.1650688216502; Fri, 22 Apr 2022 21:30:16 -0700 (PDT) Received: from home-desktop.localdomain ([49.37.158.191]) by smtp.gmail.com with ESMTPSA id g6-20020a17090a714600b001d7f3bb11d7sm4056438pjs.53.2022.04.22.21.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 21:30:15 -0700 (PDT) From: Srikanth Kaka To: Stephen Hemminger , Long Li Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Subject: [PATCH v5 10/14] net/netvsc: make IOCTL call to open subchannels Date: Sat, 23 Apr 2022 09:58:45 +0530 Message-Id: <20220423042849.7718-11-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220423042849.7718-1-srikanth.k@oneconvergence.com> References: <20220418042915.5765-1-srikanth.k@oneconvergence.com> <20220423042849.7718-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 26 Apr 2022 10:32:34 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org make IOCTL call to open subchannels Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/hn_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c index 8b1e07b..104c7ae 100644 --- a/drivers/net/netvsc/hn_ethdev.c +++ b/drivers/net/netvsc/hn_ethdev.c @@ -516,6 +516,10 @@ static int hn_subchan_configure(struct hn_data *hv, if (err) return err; + err = rte_vmbus_ioctl(hv->vmbus, subchan); + if (err) + return err; + while (subchan > 0) { struct vmbus_channel *new_sc; uint16_t chn_index; -- 1.8.3.1