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 CC7ECA00BE; Tue, 19 Apr 2022 11:34:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AF244281A; Tue, 19 Apr 2022 11:33:49 +0200 (CEST) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 5006240141 for ; Mon, 18 Apr 2022 06:30:02 +0200 (CEST) Received: by mail-pg1-f169.google.com with SMTP id t184so3754199pgd.4 for ; Sun, 17 Apr 2022 21:30:02 -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=22ld7iGtLypbWNKcrTv7ZEI6V4+hiA0tI66k2StuwMc=; b=WtnbKxfXqUkq4RKkj0XPOeAbWYMYsGefQ7DjVBwZ3B/OKqG1O2M6yxraa4Dq5LGQiU 71wSlBh/hc5KghUQCQ2PT8b9ITmQGJfFfYtPJYQk85UgC0/WTlxYO6H/5e6GQKpa8GMR xJk0DLKjrEVhQfHGtR+hWQ2myYy9yqjYJhLXk= 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=22ld7iGtLypbWNKcrTv7ZEI6V4+hiA0tI66k2StuwMc=; b=gm+fRQeXNJeQNOGys8ECxd1lWvKKDjUQ2iPJMpnZpgX/uCwxzhxu6s4x03fkuNzP9g TtHCQP6iBiK1FIUEVkLC3XbJ4/R0tAEtFVMY45swYtV/qSdKsUjz/tdsSzRKaXwdljJH A1vAVegLrEQPDNC8VVqF2AsPKEpgZnLO4Lfmx+w/esZNO3Q8DujAxlF0KP39t7owli66 cLQv57rqQMuNFRkMg9Cb1JQdiAvsp7jlmFuRpHUn+qpIf4dCskB1yhyeUQVtXsCjCdre DGz4tDemlCJYdcrTuyoRwBylysRddy11GTXPiYyRJoPHs442YBh1iYtWv3fMI20hFcut U3QQ== X-Gm-Message-State: AOAM533i1Ppa12gWh0So1f8/PbLqa6XGNRShlQHaYjZLHXh9TZUk0Yhg 8j3CpdvKQjihEaMFJBN4Zcy3Yw== X-Google-Smtp-Source: ABdhPJwHXb3d/TkVzNRM2C9qe6c3h1geOLDoT+AiP6OBOjTYIt1vqHJDDjsLWKo9SsPIZlOb1gQewA== X-Received: by 2002:a05:6a00:148a:b0:50a:40f7:5a80 with SMTP id v10-20020a056a00148a00b0050a40f75a80mr10490697pfu.58.1650256201544; Sun, 17 Apr 2022 21:30:01 -0700 (PDT) Received: from srikanth-ThinkPad-T450.. ([49.37.158.191]) by smtp.gmail.com with ESMTPSA id e14-20020aa78c4e000000b00506475da4cesm10377577pfd.49.2022.04.17.21.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Apr 2022 21:30:01 -0700 (PDT) From: Srikanth Kaka To: Stephen Hemminger , Long Li Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Subject: [PATCH v4 10/14] net/netvsc: make IOCTL call to open subchannels Date: Mon, 18 Apr 2022 09:59:11 +0530 Message-Id: <20220418042915.5765-11-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220418042915.5765-1-srikanth.k@oneconvergence.com> References: <20220217160613.70161-16-srikanth.k@oneconvergence.com> <20220418042915.5765-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 19 Apr 2022 11:33:36 +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 8b1e07b775..104c7aebc5 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; -- 2.30.2