[ovs-discuss] Open V Switch module

2024-05-03 Thread Abu Rasheda via discuss
Since the OVS kernel code has moved to the Linux kernel tree since the
3.0 release. I did not find the module in /lib/module on Redhat 9.3,
but I did find it in

./modules/6.2.0-39-generic/kernel/net/openvswitch/openvswitch.ko (For Ubuntu 22)

Can someone guide me on how to obtain vendor (Redhat) provided OVS
kernel modules for distribution based on Linux kernel within kernel
tree OVS?

Thanks.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] OVS setup on Winodws

2023-04-20 Thread Abu Rasheda via discuss
It worked! I can ping from both sides.

Thanks a lot, Alin! I really appreciate your guidance.

On Thu, Apr 20, 2023 at 5:21 PM Abu Rasheda  wrote:

> I was able to change the name
>
> On Thu, Apr 20, 2023 at 4:35 PM Abu Rasheda  wrote:
>
>> PS C:\OVS-Compiled> Get-VMNetworkAdapterWithOVSPort left| grep ElementName
>> ElementName : ovs-port-a
>> PS C:\OVS-Compiled> Get-VMNetworkAdapterWithOVSPort right| grep
>> ElementName
>> ElementName : Dynamic Ethernet Switch Port
>>
>>
>> On Thu, Apr 20, 2023 at 4:09 PM Alin Serdean 
>> wrote:
>>
>>> You are correct. My memory was fuzzy around it.
>>>
>>> Can you please this function + vmname
>>>
>>>
>>> https://github.com/openvswitch/ovs/blob/master/datapath-windows/misc/OVS.psm1#L120
>>>
>>> This should give you the elementname. And that can be used inside ovs.
>>>
>>> There are also setters and getters in that cmdlet.
>>>
>>> Sent from phone
>>>
>>> On 21 Apr 2023, at 00:46, Abu Rasheda  wrote:
>>>
>>> 
>>> There is no column with ElementName. I am attaching the full output. I
>>> probably missed something in the configuration.
>>>
>>> Thanks!
>>>
>>> On Thu, Apr 20, 2023 at 3:30 PM Alin Serdean 
>>> wrote:
>>>
>>>> Can you provide the output of
>>>>
>>>>
>>>> Get-VMNetworkAdapter left | fl
>>>>
>>>>
>>>> Get-VMNetworkAdapter right | fl
>>>>
>>>>
>>>> The above command will dump the whole object.
>>>> I’m interested in looking at their ElementName
>>>>
>>>> That string will be used to match ports on the OVS side (
>>>> https://docs.openvswitch.org/en/latest/topics/windows/?highlight=Windows%20#port-management
>>>> )
>>>>
>>>> Sent from phone
>>>>
>>>> On 21 Apr 2023, at 00:15, Abu Rasheda  wrote:
>>>>
>>>> 
>>>> On Thu, Apr 20, 2023 at 6:17 AM Alin Serdean 
>>>> wrote:
>>>>
>>>>> PS C:\OVS-Compiled> ovs-vsctl.exe show
>>>>> ca9219b1-ceca-435e-b42a-b3e094237045
>>>>> Bridge br-int
>>>>> Port ovs-port-a
>>>>> Interface ovs-port-a
>>>>> Port br-int
>>>>> Interface br-int
>>>>> type: internal
>>>>> Bridge br-pif
>>>>> Port NIC1
>>>>> Interface NIC1
>>>>> Port br-pif
>>>>> Interface br-pif
>>>>> type: internal
>>>>>
>>>>
>>>> This is part of my confusion and likely the issue I am facing!
>>>>
>>>> In Linux, I can add ports of the VMs to the same bridge and traffic
>>>> will flow between the VMs!
>>>>
>>>> However, in Windows, I don't know how to do this!
>>>>
>>>> PS C:\OVS-Compiled> Get-VMSwitch
>>>>
>>>> NameSwitchType NetAdapterInterfaceDescription
>>>> -- --
>>>> OVS Extended Switch External   Broadcom NetXtreme Gigabit Ethernet #2
>>>>
>>>> Broadcom NetXtreme Gigabit Ethernet #2 is an alias for NIC1
>>>>
>>>> PS C:\OVS-Compiled> Get-VMNetworkAdapter left
>>>>
>>>> NameIsManagementOs VMName SwitchName  MacAddress
>>>> Status IPAddresses
>>>>     ------ -- --  --
>>>> -- ---
>>>> Network Adapter False  left   OVS Extended Switch 00155D727601
>>>> {Ok}   {}
>>>>
>>>>
>>>> PS C:\OVS-Compiled> Get-VMNetworkAdapter right
>>>>
>>>> NameIsManagementOs VMName SwitchName  MacAddress
>>>> Status IPAddresses
>>>> -- -- --  --
>>>> -- ---
>>>> Network Adapter False  right  OVS Extended Switch 00155D727602
>>>> {Ok}   {}
>>>>
>>>>
>>>> So, I only have a choice to either connect the VM to "OVS Extended
>>>> Switch" or not connect at all.
>>>>
>>>> I have one working NIC1 which Is associated to th

Re: [ovs-discuss] OVS setup on Winodws

2023-04-20 Thread Abu Rasheda via discuss
I was able to change the name

On Thu, Apr 20, 2023 at 4:35 PM Abu Rasheda  wrote:

> PS C:\OVS-Compiled> Get-VMNetworkAdapterWithOVSPort left| grep ElementName
> ElementName : ovs-port-a
> PS C:\OVS-Compiled> Get-VMNetworkAdapterWithOVSPort right| grep ElementName
> ElementName : Dynamic Ethernet Switch Port
>
>
> On Thu, Apr 20, 2023 at 4:09 PM Alin Serdean 
> wrote:
>
>> You are correct. My memory was fuzzy around it.
>>
>> Can you please this function + vmname
>>
>>
>> https://github.com/openvswitch/ovs/blob/master/datapath-windows/misc/OVS.psm1#L120
>>
>> This should give you the elementname. And that can be used inside ovs.
>>
>> There are also setters and getters in that cmdlet.
>>
>> Sent from phone
>>
>> On 21 Apr 2023, at 00:46, Abu Rasheda  wrote:
>>
>> 
>> There is no column with ElementName. I am attaching the full output. I
>> probably missed something in the configuration.
>>
>> Thanks!
>>
>> On Thu, Apr 20, 2023 at 3:30 PM Alin Serdean 
>> wrote:
>>
>>> Can you provide the output of
>>>
>>>
>>> Get-VMNetworkAdapter left | fl
>>>
>>>
>>> Get-VMNetworkAdapter right | fl
>>>
>>>
>>> The above command will dump the whole object.
>>> I’m interested in looking at their ElementName
>>>
>>> That string will be used to match ports on the OVS side (
>>> https://docs.openvswitch.org/en/latest/topics/windows/?highlight=Windows%20#port-management
>>> )
>>>
>>> Sent from phone
>>>
>>> On 21 Apr 2023, at 00:15, Abu Rasheda  wrote:
>>>
>>> 
>>> On Thu, Apr 20, 2023 at 6:17 AM Alin Serdean 
>>> wrote:
>>>
>>>> PS C:\OVS-Compiled> ovs-vsctl.exe show
>>>> ca9219b1-ceca-435e-b42a-b3e094237045
>>>> Bridge br-int
>>>> Port ovs-port-a
>>>> Interface ovs-port-a
>>>> Port br-int
>>>> Interface br-int
>>>> type: internal
>>>> Bridge br-pif
>>>> Port NIC1
>>>> Interface NIC1
>>>> Port br-pif
>>>> Interface br-pif
>>>> type: internal
>>>>
>>>
>>> This is part of my confusion and likely the issue I am facing!
>>>
>>> In Linux, I can add ports of the VMs to the same bridge and traffic will
>>> flow between the VMs!
>>>
>>> However, in Windows, I don't know how to do this!
>>>
>>> PS C:\OVS-Compiled> Get-VMSwitch
>>>
>>> NameSwitchType NetAdapterInterfaceDescription
>>> -- --
>>> OVS Extended Switch External   Broadcom NetXtreme Gigabit Ethernet #2
>>>
>>> Broadcom NetXtreme Gigabit Ethernet #2 is an alias for NIC1
>>>
>>> PS C:\OVS-Compiled> Get-VMNetworkAdapter left
>>>
>>> NameIsManagementOs VMName SwitchName  MacAddress
>>> Status IPAddresses
>>> -- -- --  --
>>> -- ---
>>> Network Adapter False  left   OVS Extended Switch 00155D727601
>>> {Ok}   {}
>>>
>>>
>>> PS C:\OVS-Compiled> Get-VMNetworkAdapter right
>>>
>>> NameIsManagementOs VMName SwitchName  MacAddress
>>> Status IPAddresses
>>> -- -- --  --
>>> -- ---
>>> Network Adapter False  right  OVS Extended Switch 00155D727602
>>> {Ok}   {}
>>>
>>>
>>> So, I only have a choice to either connect the VM to "OVS Extended
>>> Switch" or not connect at all.
>>>
>>> I have one working NIC1 which Is associated to the OVS, the other NIC is
>>> not configured.
>>>
>>> What I am missing?
>>>
>>> Thanks for the support.
>>>
>>>
>>>>
>>>> From your config I’m not sure which adapter corresponds to which VM.
>>>>
>>>> Ca you please clarify the target and destination port you want to ping?
>>>>
>>>> Alin.
>>>>
>>>> Sent from phone
>>>>
>>>> On 20 Apr 2023, at 11:43, Abu Rasheda  wrote:
>>>>
>>>> 
>>>> On Mon, Apr 17, 202

Re: [ovs-discuss] OVS setup on Winodws

2023-04-20 Thread Abu Rasheda via discuss
How do I rename it? or just create a new one

On Thu, Apr 20, 2023 at 5:15 PM Alin Serdean  wrote:

> I suggest to rename the adapter of the VM “right “to something more simple
> (i.e. ovs-port-b) using
> https://github.com/openvswitch/ovs/blob/master/datapath-windows/misc/OVS.psm1#L184
>
> After add you can add it to the  br-int bridge using that name.
>
> Sent from phone
>
> On 21 Apr 2023, at 01:36, Abu Rasheda  wrote:
>
> 
> PS C:\OVS-Compiled> Get-VMNetworkAdapterWithOVSPort left| grep ElementName
> ElementName : ovs-port-a
> PS C:\OVS-Compiled> Get-VMNetworkAdapterWithOVSPort right| grep ElementName
> ElementName : Dynamic Ethernet Switch Port
>
>
> On Thu, Apr 20, 2023 at 4:09 PM Alin Serdean 
> wrote:
>
>> You are correct. My memory was fuzzy around it.
>>
>> Can you please this function + vmname
>>
>>
>> https://github.com/openvswitch/ovs/blob/master/datapath-windows/misc/OVS.psm1#L120
>>
>> This should give you the elementname. And that can be used inside ovs.
>>
>> There are also setters and getters in that cmdlet.
>>
>> Sent from phone
>>
>> On 21 Apr 2023, at 00:46, Abu Rasheda  wrote:
>>
>> 
>> There is no column with ElementName. I am attaching the full output. I
>> probably missed something in the configuration.
>>
>> Thanks!
>>
>> On Thu, Apr 20, 2023 at 3:30 PM Alin Serdean 
>> wrote:
>>
>>> Can you provide the output of
>>>
>>>
>>> Get-VMNetworkAdapter left | fl
>>>
>>>
>>> Get-VMNetworkAdapter right | fl
>>>
>>>
>>> The above command will dump the whole object.
>>> I’m interested in looking at their ElementName
>>>
>>> That string will be used to match ports on the OVS side (
>>> https://docs.openvswitch.org/en/latest/topics/windows/?highlight=Windows%20#port-management
>>> )
>>>
>>> Sent from phone
>>>
>>> On 21 Apr 2023, at 00:15, Abu Rasheda  wrote:
>>>
>>> 
>>> On Thu, Apr 20, 2023 at 6:17 AM Alin Serdean 
>>> wrote:
>>>
>>>> PS C:\OVS-Compiled> ovs-vsctl.exe show
>>>> ca9219b1-ceca-435e-b42a-b3e094237045
>>>> Bridge br-int
>>>> Port ovs-port-a
>>>> Interface ovs-port-a
>>>> Port br-int
>>>> Interface br-int
>>>> type: internal
>>>> Bridge br-pif
>>>> Port NIC1
>>>> Interface NIC1
>>>> Port br-pif
>>>> Interface br-pif
>>>> type: internal
>>>>
>>>
>>> This is part of my confusion and likely the issue I am facing!
>>>
>>> In Linux, I can add ports of the VMs to the same bridge and traffic will
>>> flow between the VMs!
>>>
>>> However, in Windows, I don't know how to do this!
>>>
>>> PS C:\OVS-Compiled> Get-VMSwitch
>>>
>>> NameSwitchType NetAdapterInterfaceDescription
>>> -- --
>>> OVS Extended Switch External   Broadcom NetXtreme Gigabit Ethernet #2
>>>
>>> Broadcom NetXtreme Gigabit Ethernet #2 is an alias for NIC1
>>>
>>> PS C:\OVS-Compiled> Get-VMNetworkAdapter left
>>>
>>> NameIsManagementOs VMName SwitchName  MacAddress
>>> Status IPAddresses
>>> -- -- --  --
>>> -- ---
>>> Network Adapter False  left   OVS Extended Switch 00155D727601
>>> {Ok}   {}
>>>
>>>
>>> PS C:\OVS-Compiled> Get-VMNetworkAdapter right
>>>
>>> NameIsManagementOs VMName SwitchName  MacAddress
>>> Status IPAddresses
>>> -- -- --  --
>>> -- ---
>>> Network Adapter False  right  OVS Extended Switch 00155D727602
>>> {Ok}   {}
>>>
>>>
>>> So, I only have a choice to either connect the VM to "OVS Extended
>>> Switch" or not connect at all.
>>>
>>> I have one working NIC1 which Is associated to the OVS, the other NIC is
>>> not configured.
>>>
>>> What I am missing?
>>>
>>> Thanks for the support.
>>>
>>>
>>>>
>>>> From your config I’m not sure which

Re: [ovs-discuss] OVS setup on Winodws

2023-04-20 Thread Abu Rasheda via discuss
PS C:\OVS-Compiled> Get-VMNetworkAdapterWithOVSPort left| grep ElementName
ElementName : ovs-port-a
PS C:\OVS-Compiled> Get-VMNetworkAdapterWithOVSPort right| grep ElementName
ElementName : Dynamic Ethernet Switch Port


On Thu, Apr 20, 2023 at 4:09 PM Alin Serdean  wrote:

> You are correct. My memory was fuzzy around it.
>
> Can you please this function + vmname
>
>
> https://github.com/openvswitch/ovs/blob/master/datapath-windows/misc/OVS.psm1#L120
>
> This should give you the elementname. And that can be used inside ovs.
>
> There are also setters and getters in that cmdlet.
>
> Sent from phone
>
> On 21 Apr 2023, at 00:46, Abu Rasheda  wrote:
>
> 
> There is no column with ElementName. I am attaching the full output. I
> probably missed something in the configuration.
>
> Thanks!
>
> On Thu, Apr 20, 2023 at 3:30 PM Alin Serdean 
> wrote:
>
>> Can you provide the output of
>>
>>
>> Get-VMNetworkAdapter left | fl
>>
>>
>> Get-VMNetworkAdapter right | fl
>>
>>
>> The above command will dump the whole object.
>> I’m interested in looking at their ElementName
>>
>> That string will be used to match ports on the OVS side (
>> https://docs.openvswitch.org/en/latest/topics/windows/?highlight=Windows%20#port-management
>> )
>>
>> Sent from phone
>>
>> On 21 Apr 2023, at 00:15, Abu Rasheda  wrote:
>>
>> 
>> On Thu, Apr 20, 2023 at 6:17 AM Alin Serdean 
>> wrote:
>>
>>> PS C:\OVS-Compiled> ovs-vsctl.exe show
>>> ca9219b1-ceca-435e-b42a-b3e094237045
>>> Bridge br-int
>>> Port ovs-port-a
>>> Interface ovs-port-a
>>> Port br-int
>>> Interface br-int
>>> type: internal
>>> Bridge br-pif
>>> Port NIC1
>>> Interface NIC1
>>> Port br-pif
>>> Interface br-pif
>>> type: internal
>>>
>>
>> This is part of my confusion and likely the issue I am facing!
>>
>> In Linux, I can add ports of the VMs to the same bridge and traffic will
>> flow between the VMs!
>>
>> However, in Windows, I don't know how to do this!
>>
>> PS C:\OVS-Compiled> Get-VMSwitch
>>
>> NameSwitchType NetAdapterInterfaceDescription
>> -- --
>> OVS Extended Switch External   Broadcom NetXtreme Gigabit Ethernet #2
>>
>> Broadcom NetXtreme Gigabit Ethernet #2 is an alias for NIC1
>>
>> PS C:\OVS-Compiled> Get-VMNetworkAdapter left
>>
>> NameIsManagementOs VMName SwitchName  MacAddress
>> Status IPAddresses
>> -- -- --  --
>> -- ---
>> Network Adapter False  left   OVS Extended Switch 00155D727601
>> {Ok}   {}
>>
>>
>> PS C:\OVS-Compiled> Get-VMNetworkAdapter right
>>
>> NameIsManagementOs VMName SwitchName  MacAddress
>> Status IPAddresses
>> -- -- --  --
>> -- ---
>> Network Adapter False  right  OVS Extended Switch 00155D727602
>> {Ok}   {}
>>
>>
>> So, I only have a choice to either connect the VM to "OVS Extended
>> Switch" or not connect at all.
>>
>> I have one working NIC1 which Is associated to the OVS, the other NIC is
>> not configured.
>>
>> What I am missing?
>>
>> Thanks for the support.
>>
>>
>>>
>>> From your config I’m not sure which adapter corresponds to which VM.
>>>
>>> Ca you please clarify the target and destination port you want to ping?
>>>
>>> Alin.
>>>
>>> Sent from phone
>>>
>>> On 20 Apr 2023, at 11:43, Abu Rasheda  wrote:
>>>
>>> 
>>> On Mon, Apr 17, 2023 at 1:44 PM Alin Serdean 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> The issue you are facing might be because the name of the network
>>>> adapters is the same.
>>>>
>>>> I wanted to emphasize the importance of the following step:
>>>> https://docs.openvswitch.org/en/latest/intro/install/windows/#add-virtual-interfaces-vifs
>>>>
>>>
>>> I followed your advice! I am able to add both Ubuntus to the bridge.
>>> However, the ping does. not work. (The details are attached to

Re: [ovs-discuss] OVS setup on Winodws

2023-04-20 Thread Abu Rasheda via discuss
There is no column with ElementName. I am attaching the full output. I
probably missed something in the configuration.

Thanks!

On Thu, Apr 20, 2023 at 3:30 PM Alin Serdean  wrote:

> Can you provide the output of
>
>
> Get-VMNetworkAdapter left | fl
>
>
> Get-VMNetworkAdapter right | fl
>
>
> The above command will dump the whole object.
> I’m interested in looking at their ElementName
>
> That string will be used to match ports on the OVS side (
> https://docs.openvswitch.org/en/latest/topics/windows/?highlight=Windows%20#port-management
> )
>
> Sent from phone
>
> On 21 Apr 2023, at 00:15, Abu Rasheda  wrote:
>
> 
> On Thu, Apr 20, 2023 at 6:17 AM Alin Serdean 
> wrote:
>
>> PS C:\OVS-Compiled> ovs-vsctl.exe show
>> ca9219b1-ceca-435e-b42a-b3e094237045
>> Bridge br-int
>> Port ovs-port-a
>> Interface ovs-port-a
>> Port br-int
>> Interface br-int
>> type: internal
>> Bridge br-pif
>> Port NIC1
>> Interface NIC1
>> Port br-pif
>> Interface br-pif
>> type: internal
>>
>
> This is part of my confusion and likely the issue I am facing!
>
> In Linux, I can add ports of the VMs to the same bridge and traffic will
> flow between the VMs!
>
> However, in Windows, I don't know how to do this!
>
> PS C:\OVS-Compiled> Get-VMSwitch
>
> NameSwitchType NetAdapterInterfaceDescription
> -- --
> OVS Extended Switch External   Broadcom NetXtreme Gigabit Ethernet #2
>
> Broadcom NetXtreme Gigabit Ethernet #2 is an alias for NIC1
>
> PS C:\OVS-Compiled> Get-VMNetworkAdapter left
>
> NameIsManagementOs VMName SwitchName  MacAddress
> Status IPAddresses
> -- -- --  --
> -- ---
> Network Adapter False  left   OVS Extended Switch 00155D727601
> {Ok}   {}
>
>
> PS C:\OVS-Compiled> Get-VMNetworkAdapter right
>
> NameIsManagementOs VMName SwitchName  MacAddress
> Status IPAddresses
> -- -- --  --
> -- ---
> Network Adapter False  right  OVS Extended Switch 00155D727602
> {Ok}   {}
>
>
> So, I only have a choice to either connect the VM to "OVS Extended Switch"
> or not connect at all.
>
> I have one working NIC1 which Is associated to the OVS, the other NIC is
> not configured.
>
> What I am missing?
>
> Thanks for the support.
>
>
>>
>> From your config I’m not sure which adapter corresponds to which VM.
>>
>> Ca you please clarify the target and destination port you want to ping?
>>
>> Alin.
>>
>> Sent from phone
>>
>> On 20 Apr 2023, at 11:43, Abu Rasheda  wrote:
>>
>> 
>> On Mon, Apr 17, 2023 at 1:44 PM Alin Serdean 
>> wrote:
>>
>>> Hi,
>>>
>>> The issue you are facing might be because the name of the network
>>> adapters is the same.
>>>
>>> I wanted to emphasize the importance of the following step:
>>> https://docs.openvswitch.org/en/latest/intro/install/windows/#add-virtual-interfaces-vifs
>>>
>>
>> I followed your advice! I am able to add both Ubuntus to the bridge.
>> However, the ping does. not work. (The details are attached to this email).
>> I think the issue is attaching the correct VM ports? Am I missing something?
>>
>> Abu Rasheda
>>
>> This is something particularly important for Windows and not the same
>>> under other OS.
>>>
>>> Alin.
>>>
>>> Sent from phone
>>>
>>> On 17 Apr 2023, at 20:33, Abu Rasheda via discuss <
>>> ovs-discuss@openvswitch.org> wrote:
>>>
>>> 
>>> Do you have any ideas, or if this is the wrong list, the recommendation
>>> for another one?
>>>
>>> On Thu, Apr 13, 2023 at 7:14 PM Abu Rasheda via discuss <
>>> ovs-discuss@openvswitch.org> wrote:
>>>
>>>> Hello!
>>>>
>>>> On Windows Server 2019, compiled, and loaded OVS kernel module.
>>>> Commands like ovs-vsctl & ovs-dpctl are running fine.
>>>>
>>>> I have two VMs (both running Ubuntu) under Hyper-V and have OVS
>>>> extended switch setup as described in
>>>> https://docs.openvswitch.org/en/latest/intro/install/windows/
>>>>
>>>> I can connect one Ubuntu 

Re: [ovs-discuss] OVS setup on Winodws

2023-04-20 Thread Abu Rasheda via discuss
On Thu, Apr 20, 2023 at 6:17 AM Alin Serdean  wrote:

> PS C:\OVS-Compiled> ovs-vsctl.exe show
> ca9219b1-ceca-435e-b42a-b3e094237045
> Bridge br-int
> Port ovs-port-a
> Interface ovs-port-a
> Port br-int
> Interface br-int
> type: internal
> Bridge br-pif
> Port NIC1
> Interface NIC1
> Port br-pif
> Interface br-pif
> type: internal
>

This is part of my confusion and likely the issue I am facing!

In Linux, I can add ports of the VMs to the same bridge and traffic will
flow between the VMs!

However, in Windows, I don't know how to do this!

PS C:\OVS-Compiled> Get-VMSwitch

NameSwitchType NetAdapterInterfaceDescription
-- --
OVS Extended Switch External   Broadcom NetXtreme Gigabit Ethernet #2

Broadcom NetXtreme Gigabit Ethernet #2 is an alias for NIC1

PS C:\OVS-Compiled> Get-VMNetworkAdapter left

NameIsManagementOs VMName SwitchName  MacAddress
Status IPAddresses
-- -- --  --
-- ---
Network Adapter False  left   OVS Extended Switch 00155D727601 {Ok}
  {}


PS C:\OVS-Compiled> Get-VMNetworkAdapter right

NameIsManagementOs VMName SwitchName  MacAddress
Status IPAddresses
-- -- --  --
-- ---
Network Adapter False  right  OVS Extended Switch 00155D727602 {Ok}
  {}


So, I only have a choice to either connect the VM to "OVS Extended Switch"
or not connect at all.

I have one working NIC1 which Is associated to the OVS, the other NIC is
not configured.

What I am missing?

Thanks for the support.


>
> From your config I’m not sure which adapter corresponds to which VM.
>
> Ca you please clarify the target and destination port you want to ping?
>
> Alin.
>
> Sent from phone
>
> On 20 Apr 2023, at 11:43, Abu Rasheda  wrote:
>
> 
> On Mon, Apr 17, 2023 at 1:44 PM Alin Serdean 
> wrote:
>
>> Hi,
>>
>> The issue you are facing might be because the name of the network
>> adapters is the same.
>>
>> I wanted to emphasize the importance of the following step:
>> https://docs.openvswitch.org/en/latest/intro/install/windows/#add-virtual-interfaces-vifs
>>
>
> I followed your advice! I am able to add both Ubuntus to the bridge.
> However, the ping does. not work. (The details are attached to this email).
> I think the issue is attaching the correct VM ports? Am I missing something?
>
> Abu Rasheda
>
> This is something particularly important for Windows and not the same
>> under other OS.
>>
>> Alin.
>>
>> Sent from phone
>>
>> On 17 Apr 2023, at 20:33, Abu Rasheda via discuss <
>> ovs-discuss@openvswitch.org> wrote:
>>
>> 
>> Do you have any ideas, or if this is the wrong list, the recommendation
>> for another one?
>>
>> On Thu, Apr 13, 2023 at 7:14 PM Abu Rasheda via discuss <
>> ovs-discuss@openvswitch.org> wrote:
>>
>>> Hello!
>>>
>>> On Windows Server 2019, compiled, and loaded OVS kernel module.
>>> Commands like ovs-vsctl & ovs-dpctl are running fine.
>>>
>>> I have two VMs (both running Ubuntu) under Hyper-V and have OVS
>>> extended switch setup as described in
>>> https://docs.openvswitch.org/en/latest/intro/install/windows/
>>>
>>> I can connect one Ubuntu VM to the OVS switch, under the "Network
>>> Adaptor" setting for the virtual machine. When I try to ping an IP
>>> address get prints from the OVS datapath in the kernel! This led me to
>>> believe that OVS is installed and configured (I am from a Linux
>>> background and Windows is new for me :)).
>>>
>>> However, when I try to add another Ubuntu VM to the OVS switch, I get
>>> the following error:
>>>
>>> Synthetic Ethernet Port (Instance ID ..): Error '{Data Not Accepted}
>>> The TDI client could not handle the data received during an
>>> indication.'
>>>
>>> Failed to allocate resources while connecting to a virtual network.
>>> The Ethernet switch may not exit.
>>>
>>> Can OVS Extended switch only connect to a single VM? (on the same host),
>>>
>>> I can connect these two machines to Windows virtual switch and ping
>>> them. So either my setup has issues for OVS or there is a limitation
>>> on OVS.
>>> ___
>>> discuss mailing list
>>> disc...@openvswitch.org
>>> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>>>
>> ___
>> discuss mailing list
>> disc...@openvswitch.org
>> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>>
>> 
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] OVS setup on Winodws

2023-04-20 Thread Abu Rasheda via discuss
On Mon, Apr 17, 2023 at 1:44 PM Alin Serdean  wrote:

> Hi,
>
> The issue you are facing might be because the name of the network adapters
> is the same.
>
> I wanted to emphasize the importance of the following step:
> https://docs.openvswitch.org/en/latest/intro/install/windows/#add-virtual-interfaces-vifs
>

I followed your advice! I am able to add both Ubuntus to the bridge.
However, the ping does. not work. (The details are attached to this email).
I think the issue is attaching the correct VM ports? Am I missing something?

Abu Rasheda

This is something particularly important for Windows and not the same under
> other OS.
>
> Alin.
>
> Sent from phone
>
> On 17 Apr 2023, at 20:33, Abu Rasheda via discuss <
> ovs-discuss@openvswitch.org> wrote:
>
> 
> Do you have any ideas, or if this is the wrong list, the recommendation
> for another one?
>
> On Thu, Apr 13, 2023 at 7:14 PM Abu Rasheda via discuss <
> ovs-discuss@openvswitch.org> wrote:
>
>> Hello!
>>
>> On Windows Server 2019, compiled, and loaded OVS kernel module.
>> Commands like ovs-vsctl & ovs-dpctl are running fine.
>>
>> I have two VMs (both running Ubuntu) under Hyper-V and have OVS
>> extended switch setup as described in
>> https://docs.openvswitch.org/en/latest/intro/install/windows/
>>
>> I can connect one Ubuntu VM to the OVS switch, under the "Network
>> Adaptor" setting for the virtual machine. When I try to ping an IP
>> address get prints from the OVS datapath in the kernel! This led me to
>> believe that OVS is installed and configured (I am from a Linux
>> background and Windows is new for me :)).
>>
>> However, when I try to add another Ubuntu VM to the OVS switch, I get
>> the following error:
>>
>> Synthetic Ethernet Port (Instance ID ..): Error '{Data Not Accepted}
>> The TDI client could not handle the data received during an
>> indication.'
>>
>> Failed to allocate resources while connecting to a virtual network.
>> The Ethernet switch may not exit.
>>
>> Can OVS Extended switch only connect to a single VM? (on the same host),
>>
>> I can connect these two machines to Windows virtual switch and ping
>> them. So either my setup has issues for OVS or there is a limitation
>> on OVS.
>> ___
>> discuss mailing list
>> disc...@openvswitch.org
>> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>>
> ___
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
>
==
PS C:\OVS-Compiled> Get-NetAdapter

Name  InterfaceDescriptionifIndex 
Status   MacAddress LinkSpeed
  --- 
--   -- -
NIC1  Broadcom NetXtreme Gigabit Ethernet #2   17 Up
   18-66-DA-A2-62-6C 1 Gbps
br-intHyper-V Virtual Ethernet Adapter #2  32 
Disabled 00-15-5D-72-76-09 1 Gbps
vEthernet (OVS Extende... Hyper-V Virtual Ethernet Adapter 30 Up
   18-66-DA-A2-62-6C 1 Gbps
NIC2  Broadcom NetXtreme Gigabit Ethernet  11 
Disconnected 18-66-DA-A2-62-6D  0 bps
br-pifHyper-V Virtual Ethernet Adapter #3  34 
Disabled 00-15-5D-72-76-0A 1 Gbps

==
PS C:\OVS-Compiled> ovs-vsctl.exe show
ca9219b1-ceca-435e-b42a-b3e094237045
Bridge br-int
Port ovs-port-a
Interface ovs-port-a
Port br-int
Interface br-int
type: internal
Bridge br-pif
Port NIC1
Interface NIC1
Port br-pif
Interface br-pif
type: internal

==
PS C:\OVS-Compiled> ovs-dpctl.exe show
2023-04-20T00:21:40Z|1|dpif_netlink|INFO|The kernel module does not support 
meters.
2023-04-20T00:21:40Z|2|dpif_netlink|INFO|Kernel does not correctly support 
feature negotiation. Using standard features.
system@ovs-system:
  lookups: hit:54 missed:381697 lost:0
  flows: 1
  port 1: br-int (internal)
  port 2: br-pif (internal)
  port 3: NIC1
  port 4: ovs-port-a

==

Re: [ovs-discuss] OVS setup on Winodws

2023-04-17 Thread Abu Rasheda via discuss
Thanks! Let me try this.

On Mon, Apr 17, 2023 at 1:44 PM Alin Serdean  wrote:

> Hi,
>
> The issue you are facing might be because the name of the network adapters
> is the same.
>
> I wanted to emphasize the importance of the following step:
> https://docs.openvswitch.org/en/latest/intro/install/windows/#add-virtual-interfaces-vifs
>
> This is something particularly important for Windows and not the same
> under other OS.
>
> Alin.
>
> Sent from phone
>
> On 17 Apr 2023, at 20:33, Abu Rasheda via discuss <
> ovs-discuss@openvswitch.org> wrote:
>
> 
> Do you have any ideas, or if this is the wrong list, the recommendation
> for another one?
>
> On Thu, Apr 13, 2023 at 7:14 PM Abu Rasheda via discuss <
> ovs-discuss@openvswitch.org> wrote:
>
>> Hello!
>>
>> On Windows Server 2019, compiled, and loaded OVS kernel module.
>> Commands like ovs-vsctl & ovs-dpctl are running fine.
>>
>> I have two VMs (both running Ubuntu) under Hyper-V and have OVS
>> extended switch setup as described in
>> https://docs.openvswitch.org/en/latest/intro/install/windows/
>>
>> I can connect one Ubuntu VM to the OVS switch, under the "Network
>> Adaptor" setting for the virtual machine. When I try to ping an IP
>> address get prints from the OVS datapath in the kernel! This led me to
>> believe that OVS is installed and configured (I am from a Linux
>> background and Windows is new for me :)).
>>
>> However, when I try to add another Ubuntu VM to the OVS switch, I get
>> the following error:
>>
>> Synthetic Ethernet Port (Instance ID ..): Error '{Data Not Accepted}
>> The TDI client could not handle the data received during an
>> indication.'
>>
>> Failed to allocate resources while connecting to a virtual network.
>> The Ethernet switch may not exit.
>>
>> Can OVS Extended switch only connect to a single VM? (on the same host),
>>
>> I can connect these two machines to Windows virtual switch and ping
>> them. So either my setup has issues for OVS or there is a limitation
>> on OVS.
>> ___
>> discuss mailing list
>> disc...@openvswitch.org
>> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>>
> ___
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] OVS setup on Winodws

2023-04-17 Thread Abu Rasheda via discuss
Do you have any ideas, or if this is the wrong list, the recommendation for
another one?

On Thu, Apr 13, 2023 at 7:14 PM Abu Rasheda via discuss <
ovs-discuss@openvswitch.org> wrote:

> Hello!
>
> On Windows Server 2019, compiled, and loaded OVS kernel module.
> Commands like ovs-vsctl & ovs-dpctl are running fine.
>
> I have two VMs (both running Ubuntu) under Hyper-V and have OVS
> extended switch setup as described in
> https://docs.openvswitch.org/en/latest/intro/install/windows/
>
> I can connect one Ubuntu VM to the OVS switch, under the "Network
> Adaptor" setting for the virtual machine. When I try to ping an IP
> address get prints from the OVS datapath in the kernel! This led me to
> believe that OVS is installed and configured (I am from a Linux
> background and Windows is new for me :)).
>
> However, when I try to add another Ubuntu VM to the OVS switch, I get
> the following error:
>
> Synthetic Ethernet Port (Instance ID ..): Error '{Data Not Accepted}
> The TDI client could not handle the data received during an
> indication.'
>
> Failed to allocate resources while connecting to a virtual network.
> The Ethernet switch may not exit.
>
> Can OVS Extended switch only connect to a single VM? (on the same host),
>
> I can connect these two machines to Windows virtual switch and ping
> them. So either my setup has issues for OVS or there is a limitation
> on OVS.
> ___
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] OVS setup on Winodws

2023-04-13 Thread Abu Rasheda via discuss
Hello!

On Windows Server 2019, compiled, and loaded OVS kernel module.
Commands like ovs-vsctl & ovs-dpctl are running fine.

I have two VMs (both running Ubuntu) under Hyper-V and have OVS
extended switch setup as described in
https://docs.openvswitch.org/en/latest/intro/install/windows/

I can connect one Ubuntu VM to the OVS switch, under the "Network
Adaptor" setting for the virtual machine. When I try to ping an IP
address get prints from the OVS datapath in the kernel! This led me to
believe that OVS is installed and configured (I am from a Linux
background and Windows is new for me :)).

However, when I try to add another Ubuntu VM to the OVS switch, I get
the following error:

Synthetic Ethernet Port (Instance ID ..): Error '{Data Not Accepted}
The TDI client could not handle the data received during an
indication.'

Failed to allocate resources while connecting to a virtual network.
The Ethernet switch may not exit.

Can OVS Extended switch only connect to a single VM? (on the same host),

I can connect these two machines to Windows virtual switch and ping
them. So either my setup has issues for OVS or there is a limitation
on OVS.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: Replace two ioread32 with ioread64_lo_hi non_atomic

2022-04-25 Thread Abu Rasheda
On Mon, Apr 25, 2022 at 1:32 PM Philipp Hortmann <
philipp.g.hortm...@gmail.com> wrote:

> Hi,
>
> in this patch:
> [PATCH 4/5] staging: vt6655: Replace two VNSvInPortD with ioread64_lo_hi
>
> I tried to combine two reads in one.
>
> if (ww == W_MAX_TIMEOUT)
> return false;
> -   VNSvInPortD(iobase + MAC_REG_TSFCNTR, (u32 *)pqwCurrTSF);
> -   VNSvInPortD(iobase + MAC_REG_TSFCNTR + 4, (u32 *)pqwCurrTSF + 1);
> +   *pqwCurrTSF = ioread64_lo_hi(iobase + MAC_REG_TSFCNTR);
>
> return true;
>   }
>
> works fine on 64 bit machines but fails on 32 bit machines.
>
> Which of the following ways is the preferred one:
>
>
How about #ifdef for 32/64 bit CPU.


> Adding
> #include 
> before #include "asm/io.h"
> But it seems that this has never been used in a driver before?
>
> Switch back to two reads with ioread32?
>
> Or another proposal?
>
> Thanks for your support.
>
> Bye Philipp
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: nm-openvswitch on debian/ubuntu

2021-07-28 Thread Abu Rasheda via networkmanager-list
First, make sure that ovs is installed correctly, e.g.

E.g. make sure something like this works
ovs-vsctl add-br MyBridge

if this is working, you would need the following three commands to create a
bridge and should in ovs-vsctl output

nmcli conn add type ovs-bridge conn.interface MyBridge
nmcli conn add type ovs-port conn.interface MyBridge master MyBridge
nmcli conn add type ovs-interface slave-type ovs-port conn.interface
MyBridge master nsx-switch0 ipv4.method disabled

NM does not create a port & an interface when you create a bridge, and the
bridge will not should in the output until app three are created. But you
will see connection profiles in the /etc/NetworkManager/systemXXX (forgot
full directory name)

On Wed, Jul 28, 2021 at 7:54 AM Thomas Haller via networkmanager-list <
networkmanager-list@gnome.org> wrote:

> On Wed, 2021-07-28 at 15:14 +0200, Sohaib E. wrote:
> > I found this error in the logs : ovsdb: Could not connect: No such
> > file or directory
> >
> > My ovsdb's unix socket is in /var/run/openvswitch. I don't think
> > Network Manager is expecting another path but if it is, where do I
> > change that ?
>
> it's not configurable, it's a compile time constant.
>
> Grep the source for "/db.sock".
>
> But that should be correct already. Did you `systemctl start
> openvswitch.sevice`?
>
> Where is your db.sock file exactly?
>
>
> best,
> Thomas
>
>
> >
> > Thanks.
> >
> >
> > Le mer. 28 juil. 2021 à 12:57, Thomas Haller  a
> > écrit :
> > > Hi,
> > >
> > > On Wed, 2021-07-28 at 12:41 +0200, Sohaib E. wrote:
> > > > Thank you for your quick answer.
> > > >
> > > > I have compiled NetworkManager's package myself but I still faced
> > > some
> > > > issues deploying an ovs bridge.
> > > >
> > > > Besides the NetworkManager-ovs.conf (openvswitch-switch.service
> > > instead
> > > > of openvswitch.service), what other settings must be modified for
> > > this
> > > > to work ?
> > >
> > >
> > > I don't think anything else is missing.
> > >
> > > Obviously, you need to create connection profiles, read `man nm-
> > > openvswitch` about that ([1]). And, you'd activate the right
> > > profiles
> > > (`nmcli connection up` and watch current setup with `nmcli device`
> > > and
> > > `nmcli connection`).
> > >
> > > Other than that, nothing comes to mind. As always when debugging
> > > NetworkManager, enable level=TRACE logging and read the log. See
> > > [2]
> > > for hints about logging.
> > >
> > > Maybe the path to ovsdb's unix socket is different on the system?
> > > That
> > > is currently a compile time constant. You should see that in the
> > > logs...
> > >
> > >
> > > [1]
> > >
> https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nm-openvswitch.html
> > > [2]
> > >
> https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/2d879c1ac5d907fe184898b23693fb8148363645/contrib/fedora/rpm/NetworkManager.conf#L27
> > >
> > >
> > > best,
> > > Thomas
> > >
> > >
> > > >
> > > > Thank you for your time,
> > > > Sohaib
> > > >
> > > > Le mer. 28 juil. 2021 à 10:39, Thomas Haller 
> > > > a
> > > > écrit :
> > > > > On Tue, 2021-07-27 at 18:39 +0200, Sohaib E. via
> > > > > networkmanager-
> > > list
> > > > > wrote:
> > > > > > Hello,
> > > > > >
> > > > > > I'm trying to use Network Manager to deploy ovs bridges on
> > > > > > debian/ubuntu.
> > > > > >
> > > > > > I understand that Network Manager itself do not have such a
> > > feature
> > > > > > and needs an additional plugin called nm-openvswitch.
> > > Nevertheless,
> > > > > > this plugin is not available on debian/ubuntu and, therefore,
> > > > > > I
> > > was
> > > > > > wondering if there was any workaround to deploy ovs bridges
> > > using
> > > > > > nmcli on ubuntu/debian or to install nm-openvswitch on
> > > > > ubuntu/debian.
> > > > >
> > > > > nm-openvswitch is part of NetworkManager, but
> > > > >
> > > > > - it can be disabled/enabled at compile time
> > > > >
> > > > > - it is loaded from a shared library (dlopen), so it can be
> > > packaged
> > > > > separately (as done on Fedora, with NetworkManager-openvswitch
> > > > > package). But it doesn't have to be packaged separately, Debian
> > > tends
> > > > > to put all these device plugins in the same "network-manager"
> > > > > package,
> > > > > while Fedora tends to split them (NetworkManager-
> > > > > {wifi,team,wwan,...}).
> > > > >
> > > > >
> > > > > Debian builds with this code disabled. You would either have to
> > > > > convince the debian maintainers to package this, or build
> > > > > NetworkManager yourself. In the latter case, you could just
> > > rebuild
> > > > > the
> > > > > debian package with minor changes to the build settings.
> > > > >
> > > > >
> > > > > best,
> > > > > Thomas
> > > > >
> > >
> > >
>
>
> ___
> networkmanager-list mailing list
> networkmanager-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/networkmanager-list
>

Change OVS bonding type using nmcli

2021-07-13 Thread Abu Rasheda via networkmanager-list
I have a bond, and running

ovs-appctl bond/list
bond type recircID slaves
MyBond active-backup 0 enp0s8, enp0s9

If I run:

nmcli connection modify ovs-slave-MyBond ovs-port.bond-mode balance-tcp

ovs-appctl bond/list
bond type recircID slaves
MyBond active-backup 0 enp0s8, enp0s9

nmcli conn reload does not help either

What is proper way to change bond type:

Please help;
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


LACP settings using nmcli

2021-07-13 Thread Abu Rasheda via networkmanager-list
I am using following command to select LACP and active mode (for OVS bond),

nmcli conn add type ovs-port conn.interface MyBond master MyBridge
ovs-port.bond-mode balance-tcp ovs-port.lacp active

ovs-appctl bond/show
 MyBond 
bond_mode: balance-tcp
bond may use recirculation: yes, Recirc-ID : 32
bond-hash-basis: 0
lb_output action: disabled, bond-id: -1
updelay: 0 ms
downdelay: 0 ms
next rebalance: 4892 ms
lacp_status: configured
lacp_fallback_ab: false
active-backup primary: 
active slave mac: 00:00:00:00:00:00(none)

slave enp0s8: disabled
  may_enable: false

slave enp0s9: disabled
  may_enable: false


I cannot figure out how to specify these options:

other_config:lacp-fallback-ab=true
other_config:lacp-time=lacp_time;

Please help!
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Bonding using nmcli for OVS

2021-06-03 Thread Abu Rasheda via networkmanager-list
I have created an active-backup bond using nmcli under OVS.

nmcli conn add type ovs-bridge conn.interface Bridge0
nmcli conn add type ovs-port conn.interface Bond0 master Bridge0
ovs-port.bond-mode active-backup
nmcli conn add type ethernet conn.interface enp0s9 master Bond0
nmcli conn add type ethernet conn.interface enp0s10 master Bond0

0613ae9c-8647-416f-8044-409f5931f299
Manager "unix:/var/run/vmware/nsx-agent/nsxagent_ovsdb.sock"
is_connected: true
Bridge Bridge0
Port Bond0
Interface enp0s10
type: system
Interface enp0s9
type: system
ovs_version: "2.14.1.rhel82.17993018"

[root@rhel82 system-connections]# ovs-appctl bond/show
 Bond0 
bond_mode: active-backup
bond may use recirculation: no, Recirc-ID : -1
bond-hash-basis: 0
lb_output action: disabled, bond-id: -1
updelay: 0 ms
downdelay: 0 ms
lacp_status: off
lacp_fallback_ab: false
active-backup primary: 
active slave mac: 08:00:27:d1:ec:a0(enp0s9)

slave enp0s10: enabled
  may_enable: true

slave enp0s9: enabled
  active slave
  may_enable: true

 - How can I change the active slave?
   Something like this does not work (saw this as for non-OVS bond)
   nmcli connection modify Bond0 ovs-port.bond-options primary=enp0s10

   I don't see "options"

   [root@rhel82 system-connections]# nmcli device modify Bond0 ovs-port.
   ovs-port.bond-downdelay  ovs-port.bond-updelayovs-port.tag

   ovs-port.bond-mode   ovs-port.lacpovs-port.vlan-mode


Also, I need to modify options, such as

  active
  passive
  timeout

How can I modify these values after the bond is already created?

Thanks

Abu Rasheda
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Network Manager + ovsdb issues

2021-05-25 Thread Abu Rasheda via networkmanager-list
see inline

On Tue, May 25, 2021 at 12:24 AM Thomas Haller  wrote:

> Hi,
>
>
> On Mon, 2021-05-24 at 14:35 -0700, Abu Rasheda via networkmanager-list
> wrote:
> > Hello,
> >
> > I am seeing two issues with NM and ovsdb. Issue # 2 is more critical.
> >
> > In my configuration, I have two bridges in OVS. On one of the bridge,
> > the interface needs to be under Network Manager, so I have changed
> > commands to:
> >
> > nmcli conn add type ovs-bridge conn.interface
> > nmcli conn add type ovs-port conn.interface
> > nmcli conn add type ovs-interface slave-type ovs-port conn.interface
> > nmcli conn add type ethernet conn.interface
>
> these commands are not complete and not working. Could you share the
> full commands?
>
> I can share in the morning, just wanted to reply before I go to bed :)


> also, after you created the profiles (an activate them), what gives
> `nmcli connection`, `nmcli device` and `ovs-vsctl show` ?
>
Again these work perfectly fine.


>
> > On the other bridge, I am still using, e.g.
> >
> > ovs-vsctl --timeout=5 add-br
> >
> > Also, there are a bunch of places where ovs-vsctl is used for reading,
> > e.g.
> >
> > ovs-vsctl list-ports
> >
> >
> >
> > The issues I am seeing are:
> >
> > (1) For Interface/ports created via nmcli, sometimes I have issue
> > deleting them:
> >
> > I see the config file in /etc/NetworkManager/system-connections/ovs-
> > slave-port1
> >
> > nmcli c delete ovs-slave-port1
> >
> > I get something like, this device does not exist (I have seen this
> > error once)
>
> This merely deletes a profile in NetworkManager. This always should
> succeed, and there is no reason why it can fail (except bugs). But
> there is not enough information provided, to understand what exactly
> fails. The message "device does not exist" doesn't make sense for this
> command. Please share the literal error messages by quoting them, not
> paraphrasing.
>
Understand, just wanted to mention this. if it happens again, I will
capture the whole message.

>
> Also, please always collect `level=TRACE` logs of NetworkManager. See
>
> https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/9eac9c846c6bb7b0baa77b72638aaf79df4a5ca6/contrib/fedora/rpm/NetworkManager.conf#L29
> for hints about logging.
>
> Okay.


> >
> > Following is a more important issue
> >
> > (2) In some situations, commands like the following would timeout:
> >
> > ovs-vsctl --timeout=5 add-port bridge1 port1
> >
> > If I run the above command without --timeout, this will never return.
> > However, if I let it timeout or ctrl-c and use ovs-vsctl show, it
> > shows that port1 is created.
>
> Are "bridge1" and "port1" the actual names, or is this an example?
>
> example

>
> >
> > I ran this under strace and saw ovs-vsctl is stuck at poll call. I
> > have also seen
> >
> > cat ovsdb-server.log
> > 2021-05-
> > 24T14:13:11.930Z|3|reconnect|INFO|unix:/var/run/vmware/nsx-
> > agent/nsxagent_ovsdb.sock: connecting...
> > 2021-05-
> > 24T14:13:11.930Z|4|reconnect|INFO|unix:/var/run/vmware/nsx-
> > agent/nsxagent_ovsdb.sock: connection attempt failed (No such file or
> > directory)
>
> I am no tfamiliar with OVS, but this doesn't seem relevant. Is
> something else in those logs?
>
> >
> > It connects fine when using ovs-vsctl show
> >
> > Question:
> >
> > 1. Is it okay to use both nmcli and ovs-vsctl to create
> > bridges/ports/interfaces (when they are under different bridges)?
>
> yes (presumably)
>
>
> did you test that not using NetworkManager in parallel avoids the
> problem?
>

the whole system works perfectly fine without NM and has been using it for
years :)


> NetworkManager talks directly to ovsdb, like ovsvs-ctl does. Deactivate
> all OVS profiles in NetworkManager (check `nmcli connnection` and
> `nmcli conneciton down "$PROFILE"`). Then also check that nothing is
> left over in ovsdb from NetworkManager (with `ovs-vsctl show`). Then
> perform the steps on the other bridge. Do they work?
>

I have not tried this.

Even now   `ovs-vsctl show` output is correct. The issue is ovs-vsctl
del-port does not return. Seems like db is not responding. I wanted to
check if anyone has seen this before.

Just thinking out loud, Did NM put db in such a state?

Any ideas? otherwise need to debug what is going on

>
> >
> > 2. Have anyone seen these errors?
> >
>
> I didn't.
>
>
>
>
> best,
> Thomas
>
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Network Manager + ovsdb issues

2021-05-24 Thread Abu Rasheda via networkmanager-list
Hello,

I am seeing two issues with NM and ovsdb. Issue # 2 is more critical.

In my configuration, I have two bridges in OVS. On one of the bridge, the
interface needs to be under Network Manager, so I have changed commands to:

nmcli conn add type ovs-bridge conn.interface
nmcli conn add type ovs-port conn.interface
nmcli conn add type ovs-interface slave-type ovs-port conn.interface
nmcli conn add type ethernet conn.interface

On the other bridge, I am still using, e.g.

ovs-vsctl --timeout=5 add-br

Also, there are a bunch of places where ovs-vsctl is used for reading, e.g.

ovs-vsctl list-ports



The issues I am seeing are:

(1) For Interface/ports created via nmcli, sometimes I have issue deleting
them:

I see the config file in
/etc/NetworkManager/system-connections/ovs-slave-port1

nmcli c delete ovs-slave-port1

I get something like, this device does not exist (I have seen this error
once)



Following is a more important issue

(2) In some situations, commands like the following would timeout:

ovs-vsctl --timeout=5 add-port bridge1 port1

If I run the above command without --timeout, this will never return.
However, if I let it timeout or ctrl-c and use ovs-vsctl show, it shows
that port1 is created.

I ran this under strace and saw ovs-vsctl is stuck at poll call. I have
also seen

cat ovsdb-server.log
2021-05-24T14:13:11.930Z|3|reconnect|INFO|unix:/var/run/vmware/nsx-agent/nsxagent_ovsdb.sock:
connecting...
2021-05-24T14:13:11.930Z|4|reconnect|INFO|unix:/var/run/vmware/nsx-agent/nsxagent_ovsdb.sock:
connection attempt failed (No such file or directory)

It connects fine when using ovs-vsctl show

Question:

1. Is it okay to use both nmcli and ovs-vsctl to create
bridges/ports/interfaces (when they are under different bridges)?

2. Have anyone seen these errors?

Thanks
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: multiple profiles

2021-04-19 Thread Abu Rasheda via networkmanager-list
Thanks, for the reply!

So I have to check manually? no way nmcli saying file exits and quit.
(because it will still make a file with name ifcfg-xxx-1 if ifcfg-xxx
exist).

On Fri, Apr 16, 2021 at 11:27 PM Thomas Haller  wrote:

> On Fri, 2021-04-16 at 17:57 -0700, Abu Rasheda via networkmanager-list
> wrote:
> > E.g. running the following command multiple times
> >
> > nmcli conn add type ethernet
> >
> > will create multiple files
> >
> > -rw-r--r--. 1 root root 270 Apr 16 20:53 ifcfg-ethernet
> > -rw-r--r--. 1 root root 272 Apr 16 20:54 ifcfg-ethernet-1
> >
> > Is it possible for nmcli to see that ifcfg-ethernet already exist and
> > not create ifcfg-ethernet-1
> >
> > How can I pass this message to nmcli
> >
> > Thanks
>
>
> Hi,
>
>
> The NetworkManager client tool (like nmcli, or a GUI) in general does
> not know which file name will be chosen. In the NetworkManager API you
> can see the file name (like
>
>  - `nmcli -f all connection`
>  - `nmcli connection up filename "$FILENAME"`
>  - `nmcli connection load "$FILENAME"`
>
> but the client tool cannot pre-determine which file name will be used
> when adding a profile.
>
> If you care about the filename, create the file instead of using `nmcli
> connection add` (followed by `nmcli connection reload`)
>
>
> But is your problem really the filename here? It seems, when you add a
> new profile, it would be good to choose a name for it, and don't let
> nmcli automatically choose "ethernet" and "ethernet-1". Just do:
>
>   nmcli connection add type ethernet con-name xxx
>
> "con-name" is an alias for "connection.id", and contrary to what one
> might reasonably expect, the "id" is not enforced to be unique:
>
> $ nmcli connection add type ethernet con-name xxx
> Connection 'xxx' (7f23f5cd-90f3-4cd8-8612-cf5d0856b130) successfully added.
> $ nmcli connection add type ethernet con-name xxx
> Warning: There is another connection with the name 'xxx'. Reference the
> connection by its uuid '8811722f-d662-48c5-9271-c8aa764d8f4a'
> Connection 'xxx' (8811722f-d662-48c5-9271-c8aa764d8f4a) successfully added.
>
> It's a good idea to ensure yourself that the connection.id is unique.
> That means, before you add a new profile, check the existing names in
> `nmcli connection` output and choose a different name.
>
>
> best,
> Thomas
>
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


multiple profiles

2021-04-16 Thread Abu Rasheda via networkmanager-list
E.g. running the following command multiple times

nmcli conn add type ethernet

will create multiple files

-rw-r--r--. 1 root root 270 Apr 16 20:53 ifcfg-ethernet
-rw-r--r--. 1 root root 272 Apr 16 20:54 ifcfg-ethernet-1

Is it possible for nmcli to see that ifcfg-ethernet already exist and not
create ifcfg-ethernet-1

How can I pass this message to nmcli

Thanks
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Output silence!

2021-04-16 Thread Abu Rasheda via networkmanager-list
When a command is executed using nmcli, on the success a line like the
following is printed.

Connection 'eth0-ethernet' (a24480cb-f5d6-40a6-a716-dba09ab53d07)
successfully added.

Is it possible to not have this line go to standard out? without using ">"
operator. May some switch can be passed to nmcli


Thanks.
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: how to debug problem with "failing unmounting"

2020-07-09 Thread Abu Rasheda
On Thu, Jul 9, 2020 at 5:24 AM Tomek The Messenger <
tomekthemessen...@gmail.com> wrote:

> Hi
> On the soc on which I work there is issue with unmouting some
> partitions/directories during /sbin/reboot, here is some example:
>
> [   OK   ]  Stopped target Local File System.
> Unmouting Temporary Directory (/tmp)...
> Unmouting /run/user/0...
> ...
> [   FAILED  ]  Failed unmouting Temporary Directory (/tmp).
> [   FAILED  ]  Failed unmouting  /run/user/0.
> 
>
> Unfortunately like it is typical in kernel information about why
> unmouting failed doesn't appear.  So seems like searching in darkness what
> is going on. Is any way how to search in darkness? Firstly I should make
> sure /tmp or /run/user/0 is really a partition and was mount at linux
> startup. Then maybe I should check access rights if it is rwx. What else
> can be tried here?
> ___
>
> make sure there is no process which has these directories open (cd into it
or open a file), you can I put some printk in the code to debug what leads
to this condition.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel Module with multiple source files not initializing

2019-10-25 Thread Abu Rasheda
On Fri, Oct 25, 2019 at 2:16 AM Irfan Ullah (울라 이르판) 
wrote:

> Dear All,
> I have developed a kernel module consists of one source file that sends
> and receives  message to the user space.  I have spitted the source code in
> two files, and now I  am trying to develop kernel module from these source
> files. After compiling and linking without any problems, I insmod the
> module but I didn’t see any of the printk() I wrote, in fact, the module
> can be inserted and removed, but it does nothing. Code is in the attached
> file zipped file.
> I tried many things , e.g.,  link 1, link2
> ,
> and link3
> 
>  etc.
> but nothings worked out.
> I also used *nm* to inspect the module, but, as expected, there was no
> signs of "__init and __exit" functions can in the output.
>

I assume you have verified that your module is loaded by something like

lsmod | grep your_module_name

and log level allows KERN_ALERT printing.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: WOL from S5 (shutdown)

2019-07-31 Thread Abu Rasheda
any pointers?

On Fri, Jul 26, 2019 at 4:56 PM Abu Rasheda  wrote:

> Hello,
>
> I understand how the computer running Linux would wake up from USB based
> ethernet from S3 (suspend) state. But, I am missing some piece of
> information for WOL on USB ethernet from S5 (shutdown).
>
> My driver is not working on the S5 state.
>
> Can someone help with pointers on the web or point me out a book or
> explain?
>
> Thanks.
>
> Abu Rasheda
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


WOL from S5 (shutdown)

2019-07-26 Thread Abu Rasheda
Hello,

I understand how the computer running Linux would wake up from USB based
ethernet from S3 (suspend) state. But, I am missing some piece of
information for WOL on USB ethernet from S5 (shutdown).

My driver is not working on the S5 state.

Can someone help with pointers on the web or point me out a book or explain?

Thanks.

Abu Rasheda
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: a Linux device driver

2018-06-05 Thread Abu Rasheda
On Tue, Jun 5, 2018 at 1:51 AM, Ozgur Kara  wrote:

>
>
> 05.06.2018, 08:57, "valdis.kletni...@vt.edu" :
> > On Mon, 04 Jun 2018 15:49:37 -0700, Abu Rasheda said:
> >
> >>  Any recommendations what device driver is missing and open source
> >>  community could benefit from a new driver or enhance some existing
> driver?
> >
> > Short answer: One that you have the hardware for so you can actually
> test your code.
> > Nobody wants to see a driver for a Frobnozz 9000 graphics card written
> by somebody who
> > doesn't have access to a Frobmozz 9000 card for testing.
> >
>

wondering which hardware is missing a driver, I can try yo buy/acquire the
hardware

> Long answer: https://lists.kernelnewbies.org/pipermail/kernelnewbies/
> 2017-April/017765.html
>

right now, I am in a mood to write a driver,  not testing :)


> in addition,
>
> You can browse the staging directory in the kernel source and check.
>
>
will do thanks

Regards
>
> Ozgur
>
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


a Linux device driver

2018-06-04 Thread Abu Rasheda
Hello,

I am an experienced Linux kernel and driver developer and have some time! I
like to develop a driver for Linux open source.

Any recommendations what device driver is missing and open source
community could benefit from a new driver or enhance some existing driver?

Where could I go for such information?
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: using SD card on Broadcom 4709 eval board

2014-11-23 Thread Abu Rasheda
On Sun, Nov 23, 2014 at 3:09 AM, Paul Bolle pebo...@tiscali.nl wrote:
 The depends on line you quoted was added in v2.6.32, which is still
 supported, so the tree you're using might not be seen as extremely old
 by everyone.

I think it i 3.6.3x where x is I think 4

 The above is a verbose way to admit that I don't really know how to
 determine what you need to get SD cards working. MAINTAINERS mentions
 the bcm-kernel-feedback-l...@broadcom.com list. Perhaps that can be of
 help.

Appreciate your verbose thinking, appreciate it

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


using SD card on Broadcom 4709 eval board

2014-11-22 Thread Abu Rasheda
I have been trying to use SD card on Broadcom's 4709 eval board. Linux
kernel tree provided with SDK seems to have few SDIO drivers, but non
of them seems to be working or more accurately, loading them does not
list device in /proc/devices, so I can create block file to mount it.

After googling and searching through Linux kernel tree, it seems like
B43_SDIO is correct option to turn on, since the controller seems to
be on the Broadcom CPU (4709) process itself (am I correct ?).

So if B43_SDIO is correct option, I have not been able to turn it on
(when running make menuconfig). as it is not showing up.

depends on B43  SSB_SDIOHOST_POSSIBLE  EXPERIMENTAL,

off the above B43 is only shows up in arch/ppc, which does not make
sense, as this CPU is arm based.

Any guidance will be appreciated.

Thanks

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: using SD card on Broadcom 4709 eval board

2014-11-22 Thread Abu Rasheda

  depends on B43  SSB_SDIOHOST_POSSIBLE  EXPERIMENTAL,

 EXPERIMENTAL was removed in v3.9. So this concerns a pre-v3.9 tree?


Yes, it is 2.6 kernel. I know this is  extremely old.I just want to have SD
card working, any suggestions ?

 off the above B43 is only shows up in arch/ppc,

 You mean you can only set B43 if configuring for ARCH=ppc?


I did a grep and only found B43 under arch/ppc, so I guess when ARCH=ppc is
selected.


   which does not make
  sense, as this CPU is arm based.
 
  Any guidance will be appreciated.


 Paul Bolle


So what I am missing ?
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[no subject]

2014-09-22 Thread Abu Rasheda
unsubscribe kvm
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Writing kernel in C

2014-05-26 Thread Abu Rasheda


 1.   It called TempOS. It is a kernel for educational purpose too.

 http://tempos-project.org

 The project is listed in OSDev Wiki too  http://wiki.osdev.org/Projects

2. Here's another nice one:
https://fosdem.org/2014/schedule/event/04_uk_escape

3. take a look at that [0], it's a small unix clone designed for learning
purpose. It also comes with a pdf guide which documents the implementation.

[0] http://pdos.csail.mit.edu/6.828/2012/xv6.html

4. http://www.oxkernel.com
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: how tso (tcp segmentation offload) effect TCP bidirectional test sending throughput.

2014-04-11 Thread Abu Rasheda
On Fri, Apr 11, 2014 at 3:10 AM, Varun Sharma vsd...@gmail.com wrote:

 Hi,

 if we off tso (tcp segmentation offload) on sending side ,  *TCP
 Bidirectional* test sending throughput decrease as compare to *TCP
 Unidirectional *test sending throughput .

 whereas if we on tso(tcp segmentation offload) on sending side , both 
 testgive almost same
 sending throughput result.

 is anyone know how tso(tcp segmentation offload) effect TCP Bidirectional
 sending throughput ?

 i am using iperf-2.0.5 for this case.

 There are couple of things here.

1. Depending on the NIC, it could potentially have hardware offload in the
hardware. So offing TSO might not off it.
2. There is Linux kernel offload for receive, so there might be kernel
offload for send also
3. Different cards deal with offloading differently, with very different
result
4. If TSO is actually off, it might mean that eventually acks from remote
side are delayed filling its buffers

So this is very card, kernel version dependent.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Non-consistent CPU usage in IP forwarding test

2014-04-03 Thread Abu Rasheda
On Thursday, April 3, 2014, Oleg A. Arkhangelsky syso...@yandex.ru wrote:

 Hello all,

 We've got very strange behavior when testing IP packet forwarding
 performance
 on Sandy Bridge platform (Supermicro X9DRH with the latest BIOS). This is
 two
 socket E5-2690 CPU system. Using different PC we're generating DDoS-like
 traffic
 with rate of about 4.5 million packets per second. Traffic is receiving by
 two
 Intel 82599 NICs and forwarding using the second port of one of this NICs.
 All
 load is evenly distributed among two nodes, so each of 32 CPUs SI usage is
 virtually equal.

 Now the strangest part. Few moments after pktgen start on traffic
 generator PC,
 average CPU usage on SB system goes to 30-35%. No packet drops,
 no rx_missed_errors, no rx_no_dma_resources. Very nice. But SI usage
 starts to
 decreasing gradually. After about 10 seconds we see ~15% SI average among
 all
 CPUs. Still no packet drops, the same RX rate as in the beginning, RX
 packet
 count is equal to TX packet count. After some time we see that average SI
 usage
 start to go up. Peaked at initial 30-35% it goes down to 15% again. This
 pattern
 is repeated every 80 seconds. Interval is very stable. It is undoubtedly
 bind
 to the test start time, because if we start test, then interrupt it after
 10
 seconds and start it again we see the same 30% SI peak in a few moments.
 Then
 all timings will be the same.

 During the high load time we see this in perf top -e cache-misses:

 14017.00 24.9% __netdev_alloc_skb   [kernel.kallsyms]
  5172.00  9.2% _raw_spin_lock   [kernel.kallsyms]
  4722.00  8.4% build_skb[kernel.kallsyms]
  3603.00  6.4% fib_table_lookup [kernel.kallsyms]

 During the 15% load time top is different:

 11090.00 20.9% build_skb[kernel.kallsyms]
  4879.00  9.2% fib_table_lookup [kernel.kallsyms]
  4756.00  9.0% ipt_do_table
 /lib/modules/3.12.15-BUILD-g2e94e30-dirty/kernel/net/ipv4/netfilter/ip_tables.ko
  3042.00  5.7% nf_iterate   [kernel.kallsyms]

 And __netdev_alloc_skb is at the end of list:

   911.00  0.5% __netdev_alloc_skb [kernel.kallsyms]

 Some info from perf stat -a sleep 2:

 15% SI:
28640006291 cycles#0.447 GHz
   [83.23%]
38764605205 instructions  #1.35  insns per cycle

 30% SI:
56225552442 cycles#0.877 GHz
   [83.23%]
39718182298 instructions  #0.71  insns per cycle

 CPUs never go above C1 state, all cores speed from /proc/cpuinfo is
 constant at
 2899.942 MHz. ASPM is disabled.

 All non-essential userspace apps was explicitly killed for test time, there
 was no active cron jobs too. So we should assume no interference with
 userspace.

 Kernel version is 3.12.15 (ixgbe 3.21.2), but we have the same behavior
 with
 ancient 2.6.35 (ixgbe 3.10.16). Although on 2.6.35 we sometimes get 160-170
 seconds interval and different symbols at the perf top output (especially
 local_bh_enable() which is completely blows my mind).

 Does anybody have some thoughts about the reasons of this kind of behavior?
 Sandy Bridge CPU has many uncore/offcore events, which I can sample, maybe
 some of them can shed some light on such behavior?


Is it NUMA system ? This happens when node tries to access memory connected
to other CPU.

Abu Raheda
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: using perf tool

2013-12-08 Thread Abu Rasheda
I figure out, it quite simple. Writing steps here, so it may be useful
for someone in future.

perf record -a
ctrl-C when done collecting data
copy kernel_module.ko to
/lib/modules/2.6.32-71.el6.x86_64/kernel/net/ipv4/kernel_module.ko
perf annotate function_name_in_kernel_module

Since you compiled kernel module on this machine, perf can get path
from the binary and locate the source. enjoy.

On Fri, Dec 6, 2013 at 7:14 PM, Abu Rasheda rcpilot2...@gmail.com wrote:
 Guys,

 I want to annotate Linux kernel module with c-source using perf tool.
 Is it possible ? can someone points me to the instructions how to do
 this ?

 Thanks

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: module vs main kernel

2013-12-04 Thread Abu Rasheda
rcpilot2...@gmail.com wrote:
 I have my implementation of socket APIs,

 I sock_unregister(AF_INET);  sock_register(inet_family_ops), this 
 replaces
 kernel resident socket related calls with my socket related calls. My code
 is loaded as kernel module.

 My question, is Linux kernel able to call its own socket call more
 efficiently (less overhead, fewer CPU cycles) than mine ? code is running 
 on
 Intel x86_64 arch.

 Any pointer is appreciated.


 IMHO, strictly from module vs core kernel code perspective, there is
 no speed difference.

 The reason is, once the kernel is loaded, it is the kernel itself. So
 it is not separated into isolated segment or something like that. Yes
 module is loaded into vmalloc-ed memory area, but that's it.

 Is it possible that since my code of socket API is located in
 different part of memory, so that it needs to make a long jump
 (results in d-cache miss) ?

 here is statistics: from per stats tool:

 Linux code:
 112,880,163,053 instructions:HG   #0.72  insns per cycle

 My code:
 32,074,097,170 instructions:HG   #0.34  insns per cycle

 Hi...

 please Cc: to kernelnewbies as well.

Sorry about this, I thought I did.

 as for d-cache miss, I think that's not due to long jump, but
 accessing something not cache aligned.

You mean cache aligned or alignment of address to 4 or 8 bytes ? even
data alignment have much effect of the performance on Intel ?

 Or maybe you can think something that can be pref etched. That way, you
 utilize the processor pipeline better, but use it wisely

How about TLB misses, as I understand main kernel is stored in
permanently mapped area while module is stored in dynamically mapped
area

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


module vs main kernel

2013-12-02 Thread Abu Rasheda
I have my implementation of socket APIs,

I sock_unregister(AF_INET);  sock_register(inet_family_ops), this
replaces kernel resident socket related calls with my socket related calls.
My code is loaded as kernel module.

My question, is Linux kernel able to call its own socket call more
efficiently (less overhead, fewer CPU cycles) than mine ? code is running
on Intel x86_64 arch.

Any pointer is appreciated.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to avoid packet drop

2013-10-04 Thread Abu Rasheda
 I am running a tool that is a packet generator.
 With that tool i am able to achieve line/link rate on my 1Gbps network.
 I have two queries

 Query 1) When i run the same tool on 10Gbps network i am able to achieve
 only 5Gbps rate.( by network i mean i have two machines with Centos 6.4
 connected back to back.)


If your question is why you are not able to get line rate on 10 Gb
interface, try faster machines. Dell T110 can do line rate easily and Dell
T620 can do 2 line rates (for 10 Gb) simultaneously

Query 2) When i run the packet generator on the 1Gbps link or 10Gbps link i
 see a packet drop by kernel ( result of tcpdump -i eth2).How can i minimize
 the packet drop?


If you are referring to packet drop by tcpdump (when you ctrl-c it), this
packet is not dropped by kernel stack, but by tcpdump filter. For packets
dropped by stack you can look at sats in /proc or look in ifconfig for
packets dropped by the hardware.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: valid address space ?

2013-02-25 Thread Abu Rasheda
On Sun, Feb 24, 2013 at 11:23 PM, valdis.kletni...@vt.edu wrote:

 On Sun, 24 Feb 2013 21:37:48 -0800, Abu Rasheda said:

 tmp_long_ptr = ((long_ptr  0x8000) ? (long_ptr |
  0x8000) : (long_ptr  0x));

 This will not do what you think it does when compiled for a 32-bit
 system.


This code will never run on 32 bit system, but on 64 bit Intel. So does
this cover all possible valid addresses where kernel data structure can
reside ? here is the expression again:

 if (long_ptr  0x1000)
  {
   tmp_long_ptr = ((long_ptr  0x8000) ? (long_ptr |
0x8000) : (long_ptr  0x));
printf(tmp_long_ptr :0x%llx\n, (long long int) tmp_long_ptr);
   if ((long_ptr == tmp_long_ptr)  (long_ptr = 0x3000))
  printf(valid 64 addr\n);
  }
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


valid address space ?

2013-02-24 Thread Abu Rasheda
I am trying to dump some kernel data structure (walk e.g. task or file
data structure  on x86_64 arch). Sometime accessing through a pointer,
pointer may not be NULL, but pointing to invalid address due to garbage
value.

What I am looking for is range of address which are valid for kernel
data structure. Is it correct to say following address are valid ?

- Bit 0 - 47 are considered
- Between 8000' through '
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: valid address space ?

2013-02-24 Thread Abu Rasheda
On Sunday, February 24, 2013, Abu Rasheda wrote:

 I am trying to dump some kernel data structure (walk e.g. task or file
 data structure  on x86_64 arch). Sometime accessing through a pointer,
 pointer may not be NULL, but pointing to invalid address due to garbage
 value.

 What I am looking for is range of address which are valid for kernel
 data structure. Is it correct to say following address are valid ?

 - Bit 0 - 47 are considered
 - Between 8000' through '


Will this cover all situations

 if (long_ptr  0x1000)
  {
   tmp_long_ptr = ((long_ptr  0x8000) ? (long_ptr |
0x8000) : (long_ptr  0x));
printf(tmp_long_ptr :0x%llx\n, (long long int) tmp_long_ptr);
   if ((long_ptr == tmp_long_ptr)  (long_ptr = 0x3000))
  printf(valid 64 addr\n);
  }
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How the follow Starts in Android-Kernel

2013-02-07 Thread Abu Rasheda
On Tue, Feb 5, 2013 ...

http://www.linux-arm.org/LinuxBootLoader/SMPBoot

  http://duartes.org/gustavo/blog/post/how-computers-boot-up


for i86
http://duartes.org/gustavo/blog/post/how-computers-boot-up


Does something similar exist for MIPS ?

Thanks
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Any way to do time keeping during kernel uncompression[ARM architecture]

2013-02-06 Thread Abu Rasheda
On Wed, Feb 6, 2013 at 3:53 AM, sandeep kumar coolsandyfor...@gmail.comwrote:

 Dear All
 FYI:
 I got the below data in my board...
 For Zimage:
 Copy from eMMC to RAM(bootloader)  other stuff in bootloader -- 200msec
 Kernel relocation --- 1msec
 Kernel uncompression -- 700msec
 Total time taken --- 900msec approx

 For Image:
 Copy from eMMC to RAM(bootloader)  other stuff in bootloader -- 1400msec

 So in case of Uncompressed kernel image.. even though it doesnt need
 kernel uncompression, it is taking 500msec more in bootloader.


 Thanks
 Sandeep


How did you measure these times ?

On Thu, Jan 31, 2013 at 12:46 PM, Dave Hylands dhyla...@gmail.com wrote:

 Hi Sandeep



 On Wed, Jan 30, 2013 at 6:35 PM, sandeep kumar coolsandyfor...@gmail.com
 wrote:
 
  Hi Dave.
  Ok
  Can you tell me which thing runs faster ?
  1)Copy zImage(compressed kernel) from flash to Ram, jump to start,
 Relocate compress kernel, uncompress it...
  2)Copy Image(uncompressed one) from flash to RAM and run it right
 away...
 
  My gut feeling says second one is better, thats what i m trying to
 prove here... :)

 It depends on numerous factors:
 1 - Your flash speed
 2 - Your RAM speed
 3 - Your CPU speed
 4 - Whether you have code and/or data caches enabled

 If you enable the caches, use DMA from NAND (so make your NAND as fast as
 possible), then option 1 usually blows away option 2, but your mileage may
 vary.

 Dave Hylands




 --
 With regards,
 Sandeep Kumar Anantapalli,

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module vs Kernel main performacne

2012-06-08 Thread Abu Rasheda
I modified my module (m.c). Still sending buffer from user space using
ioctl, but instead of copying data from buffer provided by user, I have
allocated (kmalloc) a buffer and I copy from this buffer to another kernel
buffer which is allocated each time this module ioclt is invoked.

copy_from_user is now replaced with memcpy. I still see processor stall.
This means the buffer allocated per call is the cause.

Abu
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module vs Kernel main performacne

2012-06-07 Thread Abu Rasheda

 Hello Abu,

 I had to include linux/module.h or an error was issued about
 THIS_MODULE.


I am running this tool on Scientific Linux 6.0, which is 2.6.32 kernel. I
know this is old but this is what I have for my product.


 What Kernel version are you using? I'm trying to compile it and I'm
 getting the error:

 [peter@ace m]$ make
 make -C /lib/modules/3.3.7-1.fc17.x86_64/build SUBDIRS=`pwd` modules
 make[1]: Entering directory `/usr/src/kernels/3.3.7-1.fc17.x86_64'
  CC [M]  /tmp/m/m.o
 /tmp/m/m.c:36:2: error: unknown field ‘ioctl’ specified in initializer
 /tmp/m/m.c:36:2: warning: initialization from incompatible pointer
 type [enabled by default]
 /tmp/m/m.c:36:2: warning: (near initialization for ‘m_fops.llseek’)
 [enabled by default]
 make[2]: *** [/tmp/m/m.o] Error 1
 make[1]: *** [_module_/tmp/m] Error 2
 make[1]: Leaving directory `/usr/src/kernels/3.3.7-1.fc17.x86_64'
 make: *** [module] Error 2

 According to:
 http://lxr.linux.no/linux+v3.4.1/include/linux/fs.h#L1609

 There is no .ioctl at struct file_operations...

 Can you share how you've used perf/oprofile on your module/Kernel code?

 []'s

 Peter


for perf:

perf stat -e
cpu-cycles,stalled-cycles-frontend,stalled-cycles-backend,instructions,cache-references,cache-misses,branch-instructions,branch-misses,bus-cycles,cpu-clock,task-clock,page-faults,minor-faults,major-faults,context-switches,cpu-migrations,alignment-faults,emulation-faults,L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores,L1-dcache-store-misses,L1-dcache-prefetches,L1-dcache-prefetch-misses,L1-icache-loads,L1-icache-load-misses,L1-icache-prefetches,L1-icache-prefetch-misses,LLC-loads,LLC-load-misses,LLC-stores,LLC-store-misses,LLC-prefetches,LLC-prefetch-misses,dTLB-loads,dTLB-load-misses,dTLB-stores,dTLB-store-misses,dTLB-prefetches,dTLB-prefetch-misses,iTLB-loads,iTLB-load-misses,branch-loads,branch-load-misses,syscalls:sys_enter_sendmsg,syscalls:sys_exit_sendmsg,sched:sched_wakeup,sched:sched_stat_sleep
./prog

for oprofile:

# opcontrol --reset
# opcontrol --vmlinux=/boot/vmlinux.64
# opcontrol --start
# ./a.out
# opcontrol --shutdown
# opreport -l -p
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module vs Kernel main performacne

2012-06-07 Thread Abu Rasheda
peter.se...@gmail.com wrote:

 Hi again!


Hi


 How did you call from Kernel module?


In original code, copied data is dmaed and in experimental code data is
dropped.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module vs Kernel main performacne

2012-06-01 Thread Abu Rasheda

 If the buffer at user side is more then a page, then it may be that
 complete user space buffer is not available in memory and kernel spend time
 in processing page fault


I have attached code for module and user program. If anyone is bored over
the weekend they are welcome to try and explain the behavior.

Abu Rasheda


m.tgz
Description: GNU Zip compressed data
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module vs Kernel main performacne

2012-05-31 Thread Abu Rasheda
On Wed, May 30, 2012 at 10:35 PM, Mulyadi Santosa
mulyadi.sant...@gmail.com wrote:
 Hi...

 On Thu, May 31, 2012 at 4:44 AM, Abu Rasheda rcpilot2...@gmail.com wrote:
 as I increase size of buffer, insns per cycle keep decreasing. Here is the 
 data:

    1k 0.90  insns per cycle
    8k 0.43  insns per cycle
  43k 0.18  insns per cycle
 100k 0.08  insns per cycle

 Showing that copy_from_user is more efficient when copy data is small,
 why it is so ?

 you meant, the bigger the buffer, the fewer the instructions, right?

yes


 Not sure why, but I am sure it will reach some peak point.

 Anyway, you did kmalloc and then kfree()? I think that's why...bigger
 buffer will grab large chunk from slab...and again likely it's
 physically contigous. Also, it will be placed in the same cache line.

 Whereas the smaller onewill hit allocate/free cycle more...thus
 flushing the L1/L2 cache even more.

It seems to be doing opposite, bigger the allocation / copy longer stall is.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module vs Kernel main performacne

2012-05-30 Thread Abu Rasheda
I did another experiment.

Wrote a stand alone module and user program which does ioctl and pass
buffer to kernel module.

User program passes a buffer through ioctl and kernel module does
kmalloc on it and calls copy_from_user, kfree and return. Test program
send 120 gigabyte data to module.

If I pass 1k buffer per call, I get

115,396,349,819 instructions  #0.90  insns per cycle
  [95.00%]

as I increase size of buffer, insns per cycle keep decreasing. Here is the data:

1k 0.90  insns per cycle
8k 0.43  insns per cycle
  43k 0.18  insns per cycle
100k 0.08  insns per cycle

Showing that cop_from_user is more efficient when copy data is small,
why it is so ?

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module vs Kernel main performacne

2012-05-30 Thread Abu Rasheda
On Wed, May 30, 2012 at 2:44 PM, Abu Rasheda rcpilot2...@gmail.com wrote:
 I did another experiment.

 Wrote a stand alone module and user program which does ioctl and pass
 buffer to kernel module.

 User program passes a buffer through ioctl and kernel module does
 kmalloc on it and calls copy_from_user, kfree and return. Test program
 send 120 gigabyte data to module.

 If I pass 1k buffer per call, I get

 115,396,349,819 instructions              #    0.90  insns per cycle
      [95.00%]

 as I increase size of buffer, insns per cycle keep decreasing. Here is the 
 data:

    1k 0.90  insns per cycle
    8k 0.43  insns per cycle
  43k 0.18  insns per cycle
 100k 0.08  insns per cycle

 Showing that cop_from_user is more efficient when copy data is small,
 why it is so ?

Did another experiment:

User program sending 43k and allocating 43k after entering ioctl and
copy_from_user smaller portion in each call to copy_from_user:
--
copy_from_user  0.25k at a time 0.56  insns per cycle
copy_from_user  0.50k at a time 0.42  insns per cycle
copy_from_user  1.00k at a time 0.36  insns per cycle
copy_from_user  2.00k at a time 0.29  insns per cycle
copy_from_user  3.00k at a time 0.26  insns per cycle
copy_from_user  4.00k at a time 0.23  insns per cycle
copy_from_user  8.00k at a time 0.21  insns per cycle
copy_from_user 16.00k at a time 0.19  insns per cycle


User program sending 43k, allocating smaller chunk and sending that
chunk to call to copy_from_user:
--
Allocated 0.25k and copy_from_user  0.25k at a time 1.04 insns per cycle
Allocated 0.50k and copy_from_user  0.50k at a time 0.90 insns per cycle
Allocated 1.00k and copy_from_user  1.00k at a time 0.79 insns per cycle
Allocated 2.00k and copy_from_user  2.00k at a time 0.67 insns per cycle
Allocated 4.00k and copy_from_user  4.00k at a time 0.53 insns per cycle
Allocated 8.00k and copy_from_user  8.00k at a time 0.42 insns per cycle
Allocated 16.00k and copy_from_user 16.00k at a time 0.33 insns per cycle
Allocated 32.00k and copy_from_user 32.00k at a time 0.22 insns per cycle

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Module vs Kernel main performacne

2012-05-29 Thread Abu Rasheda
Hi,

I am working on x8_64 arch. Profiled (oprofile) Linux kernel module
and notice that whole lot of cycles are spent in copy_from_user call.
I compared same flow from kernel proper and noticed that for more data
through put cycles spent in copy_from_user are much less. Kernel
proper has 1/8 cycles compared to module. (There is a user process
which keeps sending data, like iperf)

Used perf tool to gather some statistics and found that call from kernel proper

185,719,857,837 cpu-cycles   #3.318 GHz
 [90.01%]
  99,886,030,243 instructions  #0.54  insns per cycle
   [95.00%]
1,696,072,702 cache-references #   30.297 M/sec
   [94.99%]
   786,929,244 cache-misses   #   46.397 % of all cache
refs [95.00%]
  16,867,747,688 branch-instructions   #  301.307 M/sec
   [95.03%]
 86,752,646 branch-misses  #0.51% of all branches
   [95.00%]
5,482,768,332 bus-cycles#   97.938 M/sec
[20.08%]
55967.269801 cpu-clock
55981.842225 task-clock #0.933 CPUs utilized

and call from kernel module

 9,388,787,678 cpu-cycles   #1.527 GHz
[89.77%]
 1,706,203,221 instructions #0.18  insns per cycle
[94.59%]
551,010,961 cache-references#   89.588 M/sec   [94.73%]
   369,632,492 cache-misses   #   67.083 % of all cache refs
  [95.18%]
   291,358,658 branch-instructions   #   47.372 M/sec   [94.68%]
10,291,678 branch-misses   #3.53% of all branches
   [95.01%]
  582,651,999 bus-cycles #   94.733 M/sec
 [20.55%]
 6112.471585 cpu-clock
 6150.490210 task-clock #0.102 CPUs utilized
367 page-faults#0.000 M/sec
367 minor-faults#0.000 M/sec
0 major-faults#0.000 M/sec
   25,770 context-switches#0.004 M/sec
 23 cpu-migrations#0.000 M/sec


So obviously, CPU is stalling when it is copying data and there are
more cache misses. My question is, is there a difference calling
copy_from_user from kernel proper compared to calling from LKM ?

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module vs Kernel main performacne

2012-05-29 Thread Abu Rasheda
 What I meant here is, there must be difference speed when you copy
 onto something contigous vs non contigous. IIRC at least it will waste
 some portion of L1/L2 cache.

When you say, LKM area is prepared with vmalloc is it for code /
executable you refering too ? if so will it matter for data copy ?

Point # 2. Some one was saying that on atleast MIPS it takes more
cycle to call kernel main function from module because of log jump.
Does it apply to x86_64 to ?

To teat above two should I make my module part of static kernel ?

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel latency for handling the Network traffic

2012-05-03 Thread Abu Rasheda
On Thu, May 3, 2012 at 6:54 AM,
mic...@michaelblizek.twilightparadox.com wrote:
 Hi!

 On 16:33 Thu 03 May     , Suresh Kumar Subramanian wrote:
 Hi,

 I am building the router based on linux kernel.

 The hardware details are below,
 2 - 64 bit quad core processor (3Ghz core).
 RAM-  24GB RAM.
 PCI express slot- connected with Quad Port 100Mbps Ethernet adapter -2. (so 
 total 8 ethernet interfaces)


 I just want to calculate the maximum traffic the  router can handle..?.

 The maximum traffic could be, also 8  ports(100Mbps) * 2 directions = 
 1600Mbps.

 Can this system(kernel + hardware) handle this much traffic. (Assume the 
 best case)?

 Yes, it can. I have seen a benchmark which basically said that a single quad
 core cpu with ~3GHz was enough for about 4 links with 10 *gigabit* each.

What is the packet size ?

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Linux kernel networking stack

2011-10-11 Thread Abu Rasheda
I want to embark on journey of learning Linux networking stack. I want
suggestions, what is best way to do this. Any book recommendation, any
documentation which might exist.

Thanks.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Debugging IP packet through Linux stack

2011-09-21 Thread Abu Rasheda
I am inserting packets into Linux stack and they are accepted by net_rx
function, but are latter dropped. What tools are available in Linux kernel
to for debugging this issue.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Debugging IP packet through Linux stack

2011-09-21 Thread Abu Rasheda

 On Wed, Sep 21, 2011 at 10:26 PM, Abu Rasheda rcpilot2...@gmail.com
 wrote:
 I am inserting packets into Linux stack and they are accepted by
 net_rx function, but are latter dropped. What tools are available in Linux
 kernel to for debugging this issue.


I discovered that /proc/net/snmp files provides stats about packet
processing. This show stats for IP, ICMP, UDP and TCP. It is possible to map
stats from this file to actual kernel code and pinpoint where error is
happening.

Thanks

Abu Rasheda
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Compiling kernel module ...

2011-08-06 Thread Abu Rasheda
On Fri, Aug 5, 2011 at 5:10 PM, Akash email2akashj...@gmail.com wrote:

 Use #if like
 *
 *#define KERNEL_VERSION(a,b,c) (((a)  16) + ((b)  8) + (c))

 #if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 33)
// New socket create function
 #else
// Old socket create function
 #endif

 LINUX_VERSION_CODE is defined somewhere in the kernel and you should get to
 use it easily.


 HTH

 Akash


I do this in many parts of my code. Issue in this particular case is
different. In Vanila kernel this change appears in 2.6.33 and in Scientific
Linux this change appears in 2.6.32. So in addition to LINUX_KERNEL_VERSION,
I have to use some distribution specific #if.

I was wondwring what is general practice in this regard.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Compiling kernel module ...

2011-08-05 Thread Abu Rasheda
I am compiling my driver and have run into following scenario.

Socket create function got a new parameter in Vanila kenrel 2.6.33. while
Scientific Linux has it back ported to 2.6.32. How do I handle this kind of
situation ? so that my driver compiles for both kernel versions.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linux kernel test suites

2011-05-23 Thread Abu Rasheda
Thank to all of you who replied. I will check these out.

Abu Rasheda

On Sun, May 22, 2011 at 9:40 PM, sanjeev sharma
sanjeevsharmae...@gmail.com wrote:
 Hey,

 You can refer Autotest.

 Thanks
 Sanjeev sharma

 On Sat, May 21, 2011 at 5:03 AM, Abu Rasheda rcpilot2...@gmail.com wrote:

 Can someone pass me pointer to Linux kernel test suite ? I am
 specially interested in iptables (netfilter) and socket APIs.

 Thanks

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Fwd: Sleep and Wake up

2011-05-02 Thread Abu Rasheda
  I am testing my driver on much faster host processor and facing
  following issues:
 
  My host is too powerful and it can fill up device buffer queue very fast.
 
  What kind of device is this?

 its a networking device

It sounds like a broken device, you need to be able to handle large data
streams, right?  Are you running Linux in this device and that is the
issue you are having?

I am not running Linux on the device. As a said, if remote host does
not send syn for TCP packets, my device queue will continue to grow.

My question is simple, what would be correct way of handling things in
this situation in software or if device is broken how would device
behave differently ?

I am here to learn.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Learning hardware ...

2010-10-19 Thread Abu Rasheda
Subject: Re: Learning hardware ...
To: rcpilot2...@gmail.com
Cc: Linux Kernel List kernelnewbies@nl.linux.org
Date: Sunday, October 17, 2010, 11:59 PM

Thanks to all those who replied to my question.

To answer some of the queries in the replies.

I am a software guy, who feel quite confident in writing C, (have not done 
assembly in a while) and kernel programming.

I have major holes in my knowledge of how hardware works and how different 
components interact with each other.

For this, I want to send some of my time (apart from work) to fill this gap. I 
think Stephen has goo suggestion to start with simple SBC and program.

Do you guys suggest, to read some text book etc before this to have correct 
context ?

At work, we are mostly involved with x86 and MIPS, this is why I am interested 
in this.

Thanks

Abu Rasheda


--
To unsubscribe from this list: send an email with
unsubscribe kernelnewbies to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: Learning hardware ...

2010-10-19 Thread Abu Rasheda
 Get some related documentation and start reading

I am ready to spend time and money. Any suggestions what can I read ? At this 
point I am looking for something which will lay foundation in general for a 
software guy, who needs to understand hardware in order to write efficient 
code, etc.

You can assume minimal knowledge. I can skip what I already know.



--
To unsubscribe from this list: send an email with
unsubscribe kernelnewbies to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: Learning hardware ...

2010-10-19 Thread Abu Rasheda
 Any suggestions what can I read ? 
 
 
 Is your list ready ?        :o)
 
 1. User Guide - Data Sheet
 2. Application Notes
 3. Code examples
 
 4. Use Wikipedia to get quick answers and directions.

Thanks for your suggestions. This is something I can start with.

Victor, I am going to checkout book you suggested.

--
To unsubscribe from this list: send an email with
unsubscribe kernelnewbies to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Learning harware ...

2010-10-16 Thread Abu Rasheda
Trying once more. It did not show up in my mail box. Any suggestions ?

Kernel newbies list has seen hardware related questions and good explanation by 
Dave, Stephan  Greg.

What I want is some directions. I know C well and have done kernel programming 
and feel comfortable with many of kernel concepts and sub systems.

I want to learn hardware intimately. I am interested in MIPS and Intel (i386) 
platforms. What would be a good way to start ?



--
To unsubscribe from this list: send an email with
unsubscribe kernelnewbies to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ