Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-19 Thread Darrell Ball


On 9/19/17, 8:48 AM, "Darrell Ball" <db...@vmware.com> wrote:



On 9/19/17, 8:22 AM, "Loftus, Ciara" <ciara.lof...@intel.com> wrote:

> On 09/19/2017 08:58 AM, Loftus, Ciara wrote:

> >> Thanks for confirming Devendra

> >>

> >> Adding Ciara

> >> There have been some offline discussions regarding the issue.

> >

> > The workaround discussed is a patch to enable backwards 
compatibility

> with the old port IDs. Something like the following:

> >

> > – set Interface portX options:dpdk-devargs=dpdkportid0

> >

> > Looking for input.

> >

> 

> Seems like a good idea to take in the port number as a workaround. If

> it's just temporary because there will be a fix in DPDK sometime, then

> perhaps a new experimental option could be introduced  (e.g.

> dpdk-legacyname or dpdk-dpdkportnum) and removed in time. Otherwise

> dpdk-devargs usage will be changing between releases, break backwards

> compatibility and probably confuse people migrating from  having two ways to use it.

> 

> Maybe =dpdk0 is better than =dpdkportid0 as it's closer to the old

> behavior you are trying to replicate?

> 

> set Interface mydpdkport options:dpdk-legacyname=dpdk0



I think that's a good approach.


Seems fine to me
One alternative since I remember there was some confusion about the portid 
context before.

dpdk-dpdkportid=dpdk0  ?


That is probably to many ‘dpdk’s; let me change the alternative to

options:dpdk-dpdkportid=0  ?



> 

> Do you know if the required API will be implemented in DPDK sometime?



There was no response when I cross-posted to DPDK users mailing list, 
so I can't confirm.



Thanks,

Ciara



> 

> > Thanks,

> > Ciara

> >

> >>

> >>

> >> From: devendra rawat <devendra.rawat.si...@gmail.com>

> >> Date: Monday, September 18, 2017 at 4:27 AM

> >> To: Kevin Traynor <ktray...@redhat.com>
    
    > >> Cc: Darrel Ball <db...@vmware.com>, "ovs-dev@openvswitch.org"  >> d...@openvswitch.org>, "disc...@openvswitch.org"

> >> <disc...@openvswitch.org>

> >> Subject: Re: [ovs-dev] adding dpdk ports sharing same pci address 
to ovs-

> >> dpdk bridge

> >>

> >> Hi Kevin,

> >>

> >> On Fri, Sep 8, 2017 at 12:24 AM, Kevin Traynor 
<ktray...@redhat.com>

> >> wrote:

> >> On 09/07/2017 06:47 PM, Darrell Ball wrote:

> >>> Adding disc...@openvswitch.org

> >>>

> >>> The related changes went into 2.7

> >>>

> >>>

> >>>

> >>> On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of

> >> devendra rawat" <ovs-dev-boun...@openvswitch.org on behalf of

> >> devendra.rawat.si...@gmail.com> wrote:

> >>>

> >>>  Hi,

> >>>

> >>>  I have compiled and built ovs-dpdk using DPDK v17.08 and OVS 
v2.8.0.

> >> The

> >>>  NIC that I am using is Mellanox ConnectX-3 Pro, which is a 
dual port

> 10G

> >>>  NIC. The problem with this NIC is that it provides only one 
PCI address

> for

> >>>  both the 10G ports.

> >>>

> >>>  So when I am trying to add the two DPDK ports to my br0 
bridge

> >>>

> >>>  # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface 
dpdk0

> >> typ

Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-19 Thread Darrell Ball


On 9/19/17, 8:22 AM, "Loftus, Ciara" <ciara.lof...@intel.com> wrote:

> On 09/19/2017 08:58 AM, Loftus, Ciara wrote:

> >> Thanks for confirming Devendra

> >>

> >> Adding Ciara

> >> There have been some offline discussions regarding the issue.

> >

> > The workaround discussed is a patch to enable backwards compatibility

> with the old port IDs. Something like the following:

> >

> > – set Interface portX options:dpdk-devargs=dpdkportid0

> >

> > Looking for input.

> >

> 

> Seems like a good idea to take in the port number as a workaround. If

> it's just temporary because there will be a fix in DPDK sometime, then

> perhaps a new experimental option could be introduced  (e.g.

> dpdk-legacyname or dpdk-dpdkportnum) and removed in time. Otherwise

> dpdk-devargs usage will be changing between releases, break backwards

> compatibility and probably confuse people migrating from  having two ways to use it.

> 

> Maybe =dpdk0 is better than =dpdkportid0 as it's closer to the old

> behavior you are trying to replicate?

> 

> set Interface mydpdkport options:dpdk-legacyname=dpdk0



I think that's a good approach.


Seems fine to me
One alternative since I remember there was some confusion about the portid 
context before.

dpdk-dpdkportid=dpdk0  ?


> 

> Do you know if the required API will be implemented in DPDK sometime?



There was no response when I cross-posted to DPDK users mailing list, so I 
can't confirm.



Thanks,

Ciara



> 

> > Thanks,

> > Ciara

> >

> >>

> >>

> >> From: devendra rawat <devendra.rawat.si...@gmail.com>

> >> Date: Monday, September 18, 2017 at 4:27 AM

> >> To: Kevin Traynor <ktray...@redhat.com>
    
> >> Cc: Darrel Ball <db...@vmware.com>, "ovs-dev@openvswitch.org"  >> d...@openvswitch.org>, "disc...@openvswitch.org"

> >> <disc...@openvswitch.org>

> >> Subject: Re: [ovs-dev] adding dpdk ports sharing same pci address to 
ovs-

> >> dpdk bridge

> >>

> >> Hi Kevin,

> >>

> >> On Fri, Sep 8, 2017 at 12:24 AM, Kevin Traynor <ktray...@redhat.com>

> >> wrote:

> >> On 09/07/2017 06:47 PM, Darrell Ball wrote:

> >>> Adding disc...@openvswitch.org

> >>>

> >>> The related changes went into 2.7

> >>>

> >>>

> >>>

> >>> On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of

> >> devendra rawat" <ovs-dev-boun...@openvswitch.org on behalf of

> >> devendra.rawat.si...@gmail.com> wrote:

> >>>

> >>>  Hi,

> >>>

> >>>  I have compiled and built ovs-dpdk using DPDK v17.08 and OVS 
v2.8.0.

> >> The

> >>>  NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual 
port

> 10G

> >>>  NIC. The problem with this NIC is that it provides only one PCI 
address

> for

> >>>  both the 10G ports.

> >>>

> >>>  So when I am trying to add the two DPDK ports to my br0 bridge

> >>>

> >>>  # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0

> >> type=dpdk

> >>>  options:dpdk-devargs=0002:01:00.0

> >>>

> >>>  # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1

> >> type=dpdk

> >>>  options:dpdk-devargs=0002:01:00.0

> >>>

> >>

> >> Were you able to confirm those addresses by running ./dpdk-devbind.py

> -s

> >> in your /tools dir?

> >>

> >> On running dpdk-devbind.py --status , I can see the ConnectX-3 pro NIC,

> >> having only one PCI address.

> >>

> >> Network devices using DPDK-compatible driver

> >> 

> 

Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-19 Thread Kevin Traynor
On 09/19/2017 08:58 AM, Loftus, Ciara wrote:
>> Thanks for confirming Devendra
>>
>> Adding Ciara
>> There have been some offline discussions regarding the issue.
> 
> The workaround discussed is a patch to enable backwards compatibility with 
> the old port IDs. Something like the following:
> 
> – set Interface portX options:dpdk-devargs=dpdkportid0
> 
> Looking for input.
> 

Seems like a good idea to take in the port number as a workaround. If
it's just temporary because there will be a fix in DPDK sometime, then
perhaps a new experimental option could be introduced  (e.g.
dpdk-legacyname or dpdk-dpdkportnum) and removed in time. Otherwise
dpdk-devargs usage will be changing between releases, break backwards
compatibility and probably confuse people migrating from  Thanks,
> Ciara
> 
>>
>>
>> From: devendra rawat <devendra.rawat.si...@gmail.com>
>> Date: Monday, September 18, 2017 at 4:27 AM
>> To: Kevin Traynor <ktray...@redhat.com>
>> Cc: Darrel Ball <db...@vmware.com>, "ovs-dev@openvswitch.org" > d...@openvswitch.org>, "disc...@openvswitch.org"
>> <disc...@openvswitch.org>
>> Subject: Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-
>> dpdk bridge
>>
>> Hi Kevin,
>>
>> On Fri, Sep 8, 2017 at 12:24 AM, Kevin Traynor <ktray...@redhat.com>
>> wrote:
>> On 09/07/2017 06:47 PM, Darrell Ball wrote:
>>> Adding disc...@openvswitch.org
>>>
>>> The related changes went into 2.7
>>>
>>>
>>>
>>> On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of
>> devendra rawat" <ovs-dev-boun...@openvswitch.org on behalf of
>> devendra.rawat.si...@gmail.com> wrote:
>>>
>>>  Hi,
>>>
>>>  I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0.
>> The
>>>  NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port 
>>> 10G
>>>  NIC. The problem with this NIC is that it provides only one PCI 
>>> address for
>>>  both the 10G ports.
>>>
>>>  So when I am trying to add the two DPDK ports to my br0 bridge
>>>
>>>  # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0
>> type=dpdk
>>>  options:dpdk-devargs=0002:01:00.0
>>>
>>>  # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1
>> type=dpdk
>>>  options:dpdk-devargs=0002:01:00.0
>>>
>>
>> Were you able to confirm those addresses by running ./dpdk-devbind.py -s
>> in your /tools dir?
>>
>> On running dpdk-devbind.py --status , I can see the ConnectX-3 pro NIC,
>> having only one PCI address.
>>
>> Network devices using DPDK-compatible driver
>> 
>> 
>>
>> Network devices using kernel driver
>> ===
>> 0002:01:00.0 'MT27520 Family [ConnectX-3 Pro] 1007'
>> if=enP4p1s0d1,enP4p1s0 drv=mlx4_core unused=
>> 0006:01:00.0 'I210 Gigabit Network Connection 1533' if=enP6p1s0 drv=igb
>> unused= *Active*
>>
>>>  The port dpdk1 is added successfully and able to transfer data, but 
>>> adding
>>>  dpdk0 to br0 fails:
>>>
>>>  2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0:
>> e4:1d:2d:4f:78:60
>>>  2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface
>> dpdk1 on
>>>  port 1
>>>  2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface
>> br0 on
>>>  port 65534
>>>  2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
>>>  'ovs_datapath' does not exist. The Open vSwitch kernel module is
>> probably
>>>  not loaded.
>>>  2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to
>> use device
>>>  '0002:01:00.0' which is already in use by 'dpdk1'
>>>  2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set
>> configuration
>>>  (Address already in use)
>>>  2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
>>>  e41d2d4f7860
>>>
>>>
>>>  With OVS v2.6.1 I never had this problem as dpdk-devargs was not
>> mandatory
>>>  and just specifying port name was enough to add that port to bridge.
>>>
>>>  Is there a way to add port both ports to bridge ?
>>>
>>>  Thanks,
>>>  Devendra
>>>  ___
>>>  dev mailing list
>>>  d...@openvswitch.org
>>>  https://urldefense.proofpoint.com/v2/url?u=https-
>> 3A__mail.openvswitch.org_mailman_listinfo_ovs-
>> 2Ddev=DwICAg=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-
>> uZnsw=qO7NdgrrorJhievOguQLmsfEFuBcPfz9NfQX7UME1-
>> 8=ZKHbYlaTjm8VFj6Rggmcb2gw6s3xW4PxEtUy4YFG1VA=
>>>
>>>
>>> ___
>>> dev mailing list
>>> d...@openvswitch.org
>>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>>>
> 

___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-19 Thread Loftus, Ciara
> Thanks for confirming Devendra
> 
> Adding Ciara
> There have been some offline discussions regarding the issue.

The workaround discussed is a patch to enable backwards compatibility with the 
old port IDs. Something like the following:

– set Interface portX options:dpdk-devargs=dpdkportid0

Looking for input.

Thanks,
Ciara

> 
> 
> From: devendra rawat <devendra.rawat.si...@gmail.com>
> Date: Monday, September 18, 2017 at 4:27 AM
> To: Kevin Traynor <ktray...@redhat.com>
> Cc: Darrel Ball <db...@vmware.com>, "ovs-dev@openvswitch.org"  d...@openvswitch.org>, "disc...@openvswitch.org"
> <disc...@openvswitch.org>
> Subject: Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-
> dpdk bridge
> 
> Hi Kevin,
> 
> On Fri, Sep 8, 2017 at 12:24 AM, Kevin Traynor <ktray...@redhat.com>
> wrote:
> On 09/07/2017 06:47 PM, Darrell Ball wrote:
> > Adding disc...@openvswitch.org
> >
> > The related changes went into 2.7
> >
> >
> >
> > On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of
> devendra rawat" <ovs-dev-boun...@openvswitch.org on behalf of
> devendra.rawat.si...@gmail.com> wrote:
> >
> >     Hi,
> >
> >     I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0.
> The
> >     NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port 10G
> >     NIC. The problem with this NIC is that it provides only one PCI address 
> >for
> >     both the 10G ports.
> >
> >     So when I am trying to add the two DPDK ports to my br0 bridge
> >
> >     # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0
> type=dpdk
> >     options:dpdk-devargs=0002:01:00.0
> >
> >     # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1
> type=dpdk
> >     options:dpdk-devargs=0002:01:00.0
> >
> 
> Were you able to confirm those addresses by running ./dpdk-devbind.py -s
> in your /tools dir?
> 
> On running dpdk-devbind.py --status , I can see the ConnectX-3 pro NIC,
> having only one PCI address.
> 
> Network devices using DPDK-compatible driver
> 
> 
> 
> Network devices using kernel driver
> ===
> 0002:01:00.0 'MT27520 Family [ConnectX-3 Pro] 1007'
> if=enP4p1s0d1,enP4p1s0 drv=mlx4_core unused=
> 0006:01:00.0 'I210 Gigabit Network Connection 1533' if=enP6p1s0 drv=igb
> unused= *Active*
> 
> >     The port dpdk1 is added successfully and able to transfer data, but 
> >adding
> >     dpdk0 to br0 fails:
> >
> >     2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0:
> e4:1d:2d:4f:78:60
> >     2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface
> dpdk1 on
> >     port 1
> >     2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface
> br0 on
> >     port 65534
> >     2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
> >     'ovs_datapath' does not exist. The Open vSwitch kernel module is
> probably
> >     not loaded.
> >     2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to
> use device
> >     '0002:01:00.0' which is already in use by 'dpdk1'
> >     2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set
> configuration
> >     (Address already in use)
> >     2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
> >     e41d2d4f7860
> >
> >
> >     With OVS v2.6.1 I never had this problem as dpdk-devargs was not
> mandatory
> >     and just specifying port name was enough to add that port to bridge.
> >
> >     Is there a way to add port both ports to bridge ?
> >
> >     Thanks,
> >     Devendra
> >     ___
> >     dev mailing list
> >     d...@openvswitch.org
> >     https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__mail.openvswitch.org_mailman_listinfo_ovs-
> 2Ddev=DwICAg=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-
> uZnsw=qO7NdgrrorJhievOguQLmsfEFuBcPfz9NfQX7UME1-
> 8=ZKHbYlaTjm8VFj6Rggmcb2gw6s3xW4PxEtUy4YFG1VA=
> >
> >
> > ___
> > dev mailing list
> > d...@openvswitch.org
> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
> >

___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-18 Thread Darrell Ball
Thanks for confirming Devendra

Adding Ciara
There have been some offline discussions regarding the issue.


From: devendra rawat <devendra.rawat.si...@gmail.com>
Date: Monday, September 18, 2017 at 4:27 AM
To: Kevin Traynor <ktray...@redhat.com>
Cc: Darrel Ball <db...@vmware.com>, "ovs-dev@openvswitch.org" 
<ovs-dev@openvswitch.org>, "disc...@openvswitch.org" <disc...@openvswitch.org>
Subject: Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk 
bridge

Hi Kevin,

On Fri, Sep 8, 2017 at 12:24 AM, Kevin Traynor 
<ktray...@redhat.com<mailto:ktray...@redhat.com>> wrote:
On 09/07/2017 06:47 PM, Darrell Ball wrote:
> Adding disc...@openvswitch.org<mailto:disc...@openvswitch.org>
>
> The related changes went into 2.7
>
>
>
> On 9/7/17, 3:51 AM, 
> "ovs-dev-boun...@openvswitch.org<mailto:ovs-dev-boun...@openvswitch.org> on 
> behalf of devendra rawat" 
> <ovs-dev-boun...@openvswitch.org<mailto:ovs-dev-boun...@openvswitch.org> on 
> behalf of 
> devendra.rawat.si...@gmail.com<mailto:devendra.rawat.si...@gmail.com>> wrote:
>
> Hi,
>
> I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0. The
> NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port 10G
> NIC. The problem with this NIC is that it provides only one PCI address 
> for
> both the 10G ports.
>
> So when I am trying to add the two DPDK ports to my br0 bridge
>
> # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
> options:dpdk-devargs=0002:01:00.0
>
> # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk
> options:dpdk-devargs=0002:01:00.0
>

Were you able to confirm those addresses by running ./dpdk-devbind.py -s
in your /tools dir?

On running dpdk-devbind.py --status , I can see the ConnectX-3 pro NIC, having 
only one PCI address.

Network devices using DPDK-compatible driver



Network devices using kernel driver
===
0002:01:00.0 'MT27520 Family [ConnectX-3 Pro] 1007' if=enP4p1s0d1,enP4p1s0 
drv=mlx4_core unused=
0006:01:00.0 'I210 Gigabit Network Connection 1533' if=enP6p1s0 drv=igb unused= 
*Active*


> The port dpdk1 is added successfully and able to transfer data, but adding
> dpdk0 to br0 fails:
>
> 2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0: e4:1d:2d:4f:78:60
> 2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface dpdk1 
> on
> port 1
> 2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface br0 on
> port 65534
> 2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
> 'ovs_datapath' does not exist. The Open vSwitch kernel module is probably
> not loaded.
> 2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to use 
> device
> '0002:01:00.0' which is already in use by 'dpdk1'
> 2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set configuration
> (Address already in use)
> 2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
> e41d2d4f7860
>
>
> With OVS v2.6.1 I never had this problem as dpdk-devargs was not mandatory
> and just specifying port name was enough to add that port to bridge.
>
> Is there a way to add port both ports to bridge ?
>
> Thanks,
> Devendra
> ___
> dev mailing list
> d...@openvswitch.org<mailto:d...@openvswitch.org>
> 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev=DwICAg=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=qO7NdgrrorJhievOguQLmsfEFuBcPfz9NfQX7UME1-8=ZKHbYlaTjm8VFj6Rggmcb2gw6s3xW4PxEtUy4YFG1VA=
>
>
> ___
> dev mailing list
> d...@openvswitch.org<mailto:d...@openvswitch.org>
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev=DwMFaQ=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=BJU9Z14XX5XaHpeDdiTDO49xeh-weT6qa80ya-pmmdY=XGrhuWu2leX8KxlES1UqLYrvyX8mOC3ijIxOiOM-c9U=>
>

___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-18 Thread devendra rawat
Hi Kevin,

On Fri, Sep 8, 2017 at 12:24 AM, Kevin Traynor  wrote:

> On 09/07/2017 06:47 PM, Darrell Ball wrote:
> > Adding disc...@openvswitch.org
> >
> > The related changes went into 2.7
> >
> >
> >
> > On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of
> devendra rawat"  devendra.rawat.si...@gmail.com> wrote:
> >
> > Hi,
> >
> > I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0.
> The
> > NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port
> 10G
> > NIC. The problem with this NIC is that it provides only one PCI
> address for
> > both the 10G ports.
> >
> > So when I am trying to add the two DPDK ports to my br0 bridge
> >
> > # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0
> type=dpdk
> > options:dpdk-devargs=0002:01:00.0
> >
> > # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1
> type=dpdk
> > options:dpdk-devargs=0002:01:00.0
> >
>
> Were you able to confirm those addresses by running ./dpdk-devbind.py -s
> in your /tools dir?
>

On running dpdk-devbind.py --status , I can see the ConnectX-3 pro NIC,
having only one PCI address.

Network devices using DPDK-compatible driver



Network devices using kernel driver
===
0002:01:00.0 'MT27520 Family [ConnectX-3 Pro] 1007' if=enP4p1s0d1,enP4p1s0
drv=mlx4_core unused=
0006:01:00.0 'I210 Gigabit Network Connection 1533' if=enP6p1s0 drv=igb
unused= *Active*



> The port dpdk1 is added successfully and able to transfer data, but
adding
> dpdk0 to br0 fails:
>
> 2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0: e4:1d:2d:4f:78:60
> 2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface
dpdk1 on
> port 1
> 2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface
br0 on
> port 65534
> 2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
> 'ovs_datapath' does not exist. The Open vSwitch kernel module is
probably
> not loaded.
> 2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to use
device
> '0002:01:00.0' which is already in use by 'dpdk1'
> 2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set
configuration
> (Address already in use)
> 2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
> e41d2d4f7860
>
>
> With OVS v2.6.1 I never had this problem as dpdk-devargs was not
mandatory
> and just specifying port name was enough to add that port to bridge.
>
> Is there a way to add port both ports to bridge ?
>
> Thanks,
> Devendra
> ___
> dev mailing list
> d...@openvswitch.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.
openvswitch.org_mailman_listinfo_ovs-2Ddev=DwICAg=
uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=
qO7NdgrrorJhievOguQLmsfEFuBcPfz9NfQX7UME1-8=ZKHbYlaTjm8VFj6Rggmcb2gw6s3xW4
PxEtUy4YFG1VA=
>
>
> ___
> dev mailing list
> d...@openvswitch.org

> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
> >
>
>
___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-12 Thread Darrell Ball
Hi Devendra

Could you please respond to Kevin’s query just to be sure ?

Were you able to confirm those addresses by running ./dpdk-devbind.py -s
in your /tools dir?

Thanks Darrell


On 9/7/17, 11:54 AM, "Kevin Traynor"  wrote:

On 09/07/2017 06:47 PM, Darrell Ball wrote:
> Adding disc...@openvswitch.org
> 
> The related changes went into 2.7
> 
> 
> 
> On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of 
devendra rawat"  wrote:
> 
> Hi,
> 
> I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0. 
The
> NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port 
10G
> NIC. The problem with this NIC is that it provides only one PCI 
address for
> both the 10G ports.
> 
> So when I am trying to add the two DPDK ports to my br0 bridge
> 
> # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0 
type=dpdk
> options:dpdk-devargs=0002:01:00.0
> 
> # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1 
type=dpdk
> options:dpdk-devargs=0002:01:00.0
> 

Were you able to confirm those addresses by running ./dpdk-devbind.py -s
in your /tools dir?

> The port dpdk1 is added successfully and able to transfer data, but 
adding
> dpdk0 to br0 fails:
> 
> 2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0: e4:1d:2d:4f:78:60
> 2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface 
dpdk1 on
> port 1
> 2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface 
br0 on
> port 65534
> 2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
> 'ovs_datapath' does not exist. The Open vSwitch kernel module is 
probably
> not loaded.
> 2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to use 
device
> '0002:01:00.0' which is already in use by 'dpdk1'
> 2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set 
configuration
> (Address already in use)
> 2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
> e41d2d4f7860
> 
> 
> With OVS v2.6.1 I never had this problem as dpdk-devargs was not 
mandatory
> and just specifying port name was enough to add that port to bridge.
> 
> Is there a way to add port both ports to bridge ?
> 
> Thanks,
> Devendra
> ___
> dev mailing list
> d...@openvswitch.org
> 
https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev=DwICAg=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=qO7NdgrrorJhievOguQLmsfEFuBcPfz9NfQX7UME1-8=ZKHbYlaTjm8VFj6Rggmcb2gw6s3xW4PxEtUy4YFG1VA=
 
> 
> 
> ___
> dev mailing list
> d...@openvswitch.org
> 
https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev=DwIC-g=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=SP7c06xdDYsw8FYR-HyGtqE-hTmP0KUKiWhLr-NeyyI=2XcodWmzbMnU56fFummQJpM1PtAlwKe-TrNfrtmomH4=
 
> 



___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-08 Thread Loftus, Ciara
> Hi,
> 
> I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0. The
> NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port 10G
> NIC. The problem with this NIC is that it provides only one PCI address for
> both the 10G ports.
> 
> So when I am trying to add the two DPDK ports to my br0 bridge
> 
> # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
> options:dpdk-devargs=0002:01:00.0
> 
> # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk
> options:dpdk-devargs=0002:01:00.0
> 
> The port dpdk1 is added successfully and able to transfer data, but adding
> dpdk0 to br0 fails:
> 
> 2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0: e4:1d:2d:4f:78:60
> 2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface dpdk1
> on
> port 1
> 2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface br0
> on
> port 65534
> 2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
> 'ovs_datapath' does not exist. The Open vSwitch kernel module is probably
> not loaded.
> 2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to use
> device
> '0002:01:00.0' which is already in use by 'dpdk1'
> 2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set
> configuration
> (Address already in use)
> 2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
> e41d2d4f7860
> 
> 
> With OVS v2.6.1 I never had this problem as dpdk-devargs was not
> mandatory
> and just specifying port name was enough to add that port to bridge.
> 
> Is there a way to add port both ports to bridge ?

It seems the DPDK function rte_eth_dev_get_port_by_name() will always return 
the port ID of the first port on your NIC, when you specify the single PCI 
address and that's where the problem is. There doesn't seem to be a way 
currently to indicate to the calling application that in fact two (or more) 
port IDs are associated with the one PCI address.

I am cc-ing DPDK users mailing list for hopefully some input. Are there any 
plans for the rte_eth_dev_get_port_by_name function to be compatible with NICs 
with multiple ports under the same PCI address?

Thanks,
Ciara

> 
> Thanks,
> Devendra
> ___
> dev mailing list
> d...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-07 Thread Kevin Traynor
On 09/07/2017 06:47 PM, Darrell Ball wrote:
> Adding disc...@openvswitch.org
> 
> The related changes went into 2.7
> 
> 
> 
> On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of devendra 
> rawat"  devendra.rawat.si...@gmail.com> wrote:
> 
> Hi,
> 
> I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0. The
> NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port 10G
> NIC. The problem with this NIC is that it provides only one PCI address 
> for
> both the 10G ports.
> 
> So when I am trying to add the two DPDK ports to my br0 bridge
> 
> # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
> options:dpdk-devargs=0002:01:00.0
> 
> # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk
> options:dpdk-devargs=0002:01:00.0
> 

Were you able to confirm those addresses by running ./dpdk-devbind.py -s
in your /tools dir?

> The port dpdk1 is added successfully and able to transfer data, but adding
> dpdk0 to br0 fails:
> 
> 2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0: e4:1d:2d:4f:78:60
> 2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface dpdk1 
> on
> port 1
> 2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface br0 on
> port 65534
> 2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
> 'ovs_datapath' does not exist. The Open vSwitch kernel module is probably
> not loaded.
> 2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to use 
> device
> '0002:01:00.0' which is already in use by 'dpdk1'
> 2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set configuration
> (Address already in use)
> 2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
> e41d2d4f7860
> 
> 
> With OVS v2.6.1 I never had this problem as dpdk-devargs was not mandatory
> and just specifying port name was enough to add that port to bridge.
> 
> Is there a way to add port both ports to bridge ?
> 
> Thanks,
> Devendra
> ___
> dev mailing list
> d...@openvswitch.org
> 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev=DwICAg=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=qO7NdgrrorJhievOguQLmsfEFuBcPfz9NfQX7UME1-8=ZKHbYlaTjm8VFj6Rggmcb2gw6s3xW4PxEtUy4YFG1VA=
>  
> 
> 
> ___
> dev mailing list
> d...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
> 

___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


Re: [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-07 Thread Darrell Ball
Adding disc...@openvswitch.org

The related changes went into 2.7



On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of devendra 
rawat"  wrote:

Hi,

I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0. The
NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port 10G
NIC. The problem with this NIC is that it provides only one PCI address for
both the 10G ports.

So when I am trying to add the two DPDK ports to my br0 bridge

# ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
options:dpdk-devargs=0002:01:00.0

# ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk
options:dpdk-devargs=0002:01:00.0

The port dpdk1 is added successfully and able to transfer data, but adding
dpdk0 to br0 fails:

2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0: e4:1d:2d:4f:78:60
2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface dpdk1 on
port 1
2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface br0 on
port 65534
2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
'ovs_datapath' does not exist. The Open vSwitch kernel module is probably
not loaded.
2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to use device
'0002:01:00.0' which is already in use by 'dpdk1'
2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set configuration
(Address already in use)
2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
e41d2d4f7860


With OVS v2.6.1 I never had this problem as dpdk-devargs was not mandatory
and just specifying port name was enough to add that port to bridge.

Is there a way to add port both ports to bridge ?

Thanks,
Devendra
___
dev mailing list
d...@openvswitch.org

https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev=DwICAg=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=qO7NdgrrorJhievOguQLmsfEFuBcPfz9NfQX7UME1-8=ZKHbYlaTjm8VFj6Rggmcb2gw6s3xW4PxEtUy4YFG1VA=
 


___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev