DPDK patches and discussions
 help / color / mirror / Atom feed
From: Arkajit Ghosh <arkajit.ghosh@tcs.com>
To: Ngo Doan Lap <lapngodoan@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] #PERSONAL# Guest Machine is not Pingable from Host Machine
Date: Tue, 10 Mar 2015 14:32:15 +0530	[thread overview]
Message-ID: <OFBDF470F8.F05D66E3-ON65257E04.0031A555-65257E04.0031A558@tcs.com> (raw)
In-Reply-To: <CAEgdzZLuJWWCFLCmZC6E09y9Cgxe24WRyKdVTb1G3iMGEbu-KQ@mail.gmail.com>

Hi,

Ok. Thanks a lot. Give me some time. I will go through the .pdf file page numbers as you mentioned. Once done I will let you know. 

Once a again thanks a lot for your support and quick response. 

Thanks & Regards
Arkajit Ghosh

____________________________________________

-----Ngo Doan Lap <lapngodoan@gmail.com> wrote: -----
To: Arkajit Ghosh <arkajit.ghosh@tcs.com>
From: Ngo Doan Lap <lapngodoan@gmail.com>
Date: 03/10/2015 01:36PM
Cc: dev@dpdk.org
Subject: Re: #PERSONAL#[dpdk-dev] Guest Machine is not Pingable from Host Machine

Hi,
You need use dpdkvhost port for VM, not dpdk port.
For example, here is the log
9029690c-9544-4ad0-aa41-b018c1a755e2
    Bridge "br1"
        Port "dpdkvhost1"
            Interface "dpdkvhost1"
                type: dpdkvhost
        Port "br1"
            Interface "br1"
                type: internal
        Port "dpdk0"
            Interface "dpdk0"
                type: dpdk
        Port "dpdk1"
            Interface "dpdk1"
                type: dpdk
        Port "dpdkvhost0"
            Interface "dpdkvhost0"
                type: dpdkvhost
  Please refer to this link https://01.org/sites/default/files/page/intel_onp_server_release_1.2_benchmark_test_report_v1.0.pdf
(Page 40,41,...53..)
It will help you to setup OVS correctly.

On Tue, Mar 10, 2015 at 12:17 PM, Arkajit Ghosh <arkajit.ghosh@tcs.com> wrote:
 
Hi,

Please find the attachement.


Thanks & Regards
Arkajit Ghosh

____________________________________________

-----Ngo Doan Lap <lapngodoan@gmail.com> wrote: -----
To: Arkajit Ghosh <arkajit.ghosh@tcs.com>
From: Ngo Doan Lap <lapngodoan@gmail.com>
Date: 03/10/2015 10:25AM
Cc: dev@dpdk.org
Subject: Re: #PERSONAL#[dpdk-dev] Guest Machine is not Pingable from Host Machine


Hi Arkajit,
I can't find your attachment.

On Tue, Mar 10, 2015 at 10:23 AM, Arkajit Ghosh <arkajit.ghosh@tcs.com> wrote:
 
Hi,

Can any one please suggest how to proceed now. 


Thanks & Regards
Arkajit Ghosh
____________________________________________

-----Arkajit Ghosh/DEL/TCS wrote: -----
To: Ngo Doan Lap <lapngodoan@gmail.com>
From: Arkajit Ghosh/DEL/TCS
Date: 03/09/2015 09:39AM
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Guest Machine is not Pingable from Host Machine


Hi, 

I have executed below commands:

./utilities/ovs-vsctl add-br ovsbr0
./utilities/ovs-vsctl set bridge datapath_type=netdev
./utilities/ovs-vsctl add-port ovsbr0 dpdk0 -- set Interface dpdk0 type=dpdk
./utilities/ovs-vsctl add-port ovsbr0 dpdk1 -- set Interface dpdk1 type=dpdk
./utilities/ovs-vsctl show

Please find the attachement for bridge and dpdk-port creation..

Now, If i do "ifconfig -a" the created bridge ovsbr0 is showing Broadcast Running and Multicast but ip address was not given. So i had assign an IP-address to ovsbr0 which previously Eth1 had. 

So, now I try to ping this guest machine ip address from its host.  Here is the output. 

ping 192.168.1.7
PING 192.168.1.7 (192.168.1.7) 56(84) bytes of data.
>From 192.168.1.40 icmp_seq=1 Destination Host Unreachable
>From 192.168.1.40 icmp_seq=5 Destination Host Unreachable
>From 192.168.1.40 icmp_seq=6 Destination Host Unreachable
>From 192.168.1.40 icmp_seq=7 Destination Host Unreachable
>From 192.168.1.40 icmp_seq=8 Destination Host Unreachable
>From 192.168.1.40 icmp_seq=9 Destination Host Unreachable

I believe it should be pinged from its host machine. Can please let  me know what is the issue and how to proceed.

Thanks & Regards
Arkajit Ghosh
____________________________________________

-----Ngo Doan Lap <lapngodoan@gmail.com> wrote: -----
To: Arkajit Ghosh <arkajit.ghosh@tcs.com>
From: Ngo Doan Lap <lapngodoan@gmail.com>
Date: 03/06/2015 08:52PM
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Guest Machine is not Pingable from Host Machine

Hi,
Can you show the log output of OVS? and the ouput of following command
cd path/to/ovs/utilities/
 ./ovs-ofctl show br0
 ./ovs-ofctl dump-flows br0
(Assum that br0 is a bridge name that you had created)

On Fri, Mar 6, 2015 at 10:14 PM, Arkajit Ghosh <arkajit.ghosh@tcs.com> wrote:
Hi,
 
 Can anyone please suggest how to proceed.
 
 
 Thanks & Regards
 Arkajit Ghosh
 
 -----Arkajit Ghosh/DEL/TCS wrote: -----
 To: dev@dpdk.org
 From: Arkajit Ghosh/DEL/TCS
 Date: 03/04/2015 12:39PM
 Subject: Guest Machine is not Pingable from Host Machine
 
 Hi Team,
 
 Guest machine is not pingable from Host machine after creating a bridge with datapath_type "netdev" in the configuration database and adding  dpdk ports. Can anyone please let me know what is the issue.
 
 Thanks in advance.
 
 Thanks & Regards
 Arkajit Ghosh
 
 
 =====-----=====-----=====
 Notice: The information contained in this e-mail
 message and/or attachments to it may contain
 confidential or privileged information. If you are
 not the intended recipient, any dissemination, use,
 review, distribution, printing or copying of the
 information contained in this e-mail message
 and/or attachments to it are strictly prohibited. If
 you have received this communication in error,
 please notify us by reply e-mail or telephone and
 immediately and permanently delete the message
 and any attachments. Thank you
 
 
 


-- 
Thanks and Best Regards,
Ngo Doan Lap
Mobile: 0977.833.757           

[attachment "DPDK_Output_Result.odt" removed by Arkajit Ghosh/DEL/TCS] 


-- 
Thanks and Best Regards,
Ngo Doan Lap
Mobile: 0977.833.757  


-- 
Thanks and Best Regards,
Ngo Doan Lap
Mobile: 0977.833.757  
From david.marchand@6wind.com  Tue Mar 10 10:08:25 2015
Return-Path: <david.marchand@6wind.com>
Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com
 [209.85.214.179]) by dpdk.org (Postfix) with ESMTP id 3F83C683D
 for <dev@dpdk.org>; Tue, 10 Mar 2015 10:08:25 +0100 (CET)
Received: by obcwp18 with SMTP id wp18so206595obc.1
 for <dev@dpdk.org>; Tue, 10 Mar 2015 02:08:24 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d\x1e100.net; s 130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc:content-type;
 bh=2s67r5LvFijGyGxIoW1y/VSxjaaAYg0Et+v6tKCHhQc=;
 b=J22zUxZIbEmpQJF21aEnzjEd6eJcGB96eWJgnvlByw4PJAoeH0rduyecYeixDmi6Eq
 lD4Ii8HVIEcXclOz+GVjq7JpOBcL8m6XUeqe+7kuHKy8TXR4jq3qUp8WU+h9XoEXz/oQ
 FrA8mCUH6jqu/7p1npmfApor2QXMfJLtaDmPTO0GEERpk4vE8mIpFGMPku5B4ZQk0s2f
 fhPu3slfTwSdtdSZzW44+dl9b5ZSy/JWBa5aLHg/DJMn7gQonkq7WSkEQB/iZMC1j7b+
 b4DjnsISYaRwKA7sgu8p2D7sCzp5ie9S8M831kYkLCWpeJWXtz2S6p21bXdLPxNnGrwM
 I+/g=X-Gm-Message-State: ALoCoQlzYhrT9UpuHf7IC+5soZWs50KwFY+gIl8Ak6A8JK4toarcJa29pGOTYMQ/Bc5gu+b0rSko
MIME-Version: 1.0
X-Received: by 10.202.108.137 with SMTP id h131mr23718734oic.90.1425978504561;
 Tue, 10 Mar 2015 02:08:24 -0700 (PDT)
Received: by 10.76.34.35 with HTTP; Tue, 10 Mar 2015 02:08:24 -0700 (PDT)
In-Reply-To: <20150309152106.GA24326@hmsreliant.think-freely.org>
References: <CALwxeUuQtv685KnbmpZKCPkrAqmjLs558xeCW7c=-TPTsB423w@mail.gmail.com>
 <1425912999-13118-1-git-send-email-david.marchand@6wind.com>
 <1425912999-13118-2-git-send-email-david.marchand@6wind.com>
 <20150309152106.GA24326@hmsreliant.think-freely.org>
Date: Tue, 10 Mar 2015 10:08:24 +0100
Message-ID: <CALwxeUs4hPbYDPBUfz9u2AoiCoj_wwTsAyj=_1xxzuT6LLW6nw@mail.gmail.com>
From: David Marchand <david.marchand@6wind.com>
To: Neil Horman <nhorman@tuxdriver.com>
Content-Type: text/plain; charset=UTF-8
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH 1/2] eal/linux: move plugin load to very
 start of eal init
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Mar 2015 09:08:25 -0000

Hello Neil,

On Mon, Mar 9, 2015 at 4:21 PM, Neil Horman <nhorman@tuxdriver.com> wrote:

> On Mon, Mar 09, 2015 at 03:56:38PM +0100, David Marchand wrote:
> > Loading shared libraries should be done at the very start of eal init so
> that
> > the code statically built in dpdk and the code loaded from shared
> objects is
> > handled (almost) the same way wrt to call to rte_eal_init().
> > The only thing that must be done before is filling the solib_list which
> is done
> > by eal_parse_args().
> >
>
>
> I don't see anything explicitly wrong with this, but at the same time it
> doesn't
> seem to fix anything.  Is there a particular bug that you're fixing in
> relation
> to your cover letter here?  Or is there some expectation that PMD's loaded
> in
> this fashion expect the dpdk to be completely uninitalized?  That would
> seem
> like a strange operational requirement to me.
>

Well, at first, I wanted to fix the virtio pmd init issue (iopl() not
called at the right place wrt to other pthreads created in rte_eal_init()).
With next patch, this issue is fixed for statically builtin virtio pmd, but
for virtio pmd as a shared object, the dlopen comes too late.
So, yes, I moved the dlopen() for this reason.

>From a more general point of view, since we support both static and dso
pmds, I would say that this is more logical to have dlopen comes very
early, since static code is "loaded" even earlier : if the current pmds
needed more than just register to the driver list, they would already have
triggered segfaults and/or bugs.


I know this change comes really late for 2.0.
I am open to other ideas but I don't want to see more #ifdef <some feature>
in eal.c (especially for a pmd), this is a non sense.

I would say that at least the patch 2 is needed for 2.0 : it fixes the
static case, but without patch 1 virtio pmd triggers a segfault on
interrupt receipt when built as a dso.


--
David Marchand

      parent reply	other threads:[~2015-03-10  9:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OF1BFC3766.0052894D-ON65257E03.0056F422-65257E03.0056F426@LocalDomain>
     [not found] ` <OF8B2F924F.894C6787-ON65257E03.0016A853-65257E03.0016D247@LocalDomain>
2015-03-09 15:49   ` [dpdk-dev] " Arkajit Ghosh
2015-03-10  3:23   ` [dpdk-dev] #PERSONAL# " Arkajit Ghosh
2015-03-10  4:55     ` Ngo Doan Lap
2015-03-10  5:17     ` Arkajit Ghosh
2015-03-10  8:06       ` Ngo Doan Lap
2015-03-10  9:02       ` Arkajit Ghosh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFBDF470F8.F05D66E3-ON65257E04.0031A555-65257E04.0031A558@tcs.com \
    --to=arkajit.ghosh@tcs.com \
    --cc=dev@dpdk.org \
    --cc=lapngodoan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).