Re: cascaded switch

2018-05-18 Thread Ran Shalit
On Fri, May 18, 2018 at 11:29 PM, Andrew Lunn wrote: >> Hi, >> >> I mean the same terminology used in marvell's switch.(I don't think >> there is more than one terminology for this, please correct me if >> wrong). >> Anyway, I can see examples how it is done, but I don't

Re: cascaded switch

2018-05-18 Thread Ran Shalit
On Fri, May 18, 2018 at 10:13 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Fri, May 18, 2018 at 09:35:38PM +0300, Ran Shalit wrote: >> Hello, >> >> I am trying to understand the concept of cascaded switch. >> I haven't find much information on this topic

cascaded switch

2018-05-18 Thread Ran Shalit
Hello, I am trying to understand the concept of cascaded switch. I haven't find much information on this topic. Can anyone please explain the general concept, when is it used, and why does the device tree need to know about cascaded switch ? Thank you, ranran

Re: DSA switch

2018-05-04 Thread Ran Shalit
On Fri, May 4, 2018 at 9:59 AM, Ran Shalit <ransha...@gmail.com> wrote: > On Fri, May 4, 2018 at 12:05 AM, Andrew Lunn <and...@lunn.ch> wrote: >>> I am using kernel 2.6.37, but I think it is not kernel issue, but more >>> bad patches done on kernel. >>>

Re: DSA switch

2018-05-04 Thread Ran Shalit
On Fri, May 4, 2018 at 12:05 AM, Andrew Lunn wrote: >> I am using kernel 2.6.37, but I think it is not kernel issue, but more >> bad patches done on kernel. >> It is based on TI's kernel, but with some custom modifications on >> driver's switch, to make it work with TI's cpsw

Re: DSA switch

2018-05-03 Thread Ran Shalit
On Thu, May 3, 2018 at 11:41 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Thu, May 03, 2018 at 11:35:08PM +0300, Ran Shalit wrote: >> On Wed, May 2, 2018 at 11:56 PM, Andrew Lunn <and...@lunn.ch> wrote: >> > On Wed, May 02, 2018 at 11:20:05PM +0300,

Re: DSA switch

2018-05-03 Thread Ran Shalit
On Wed, May 2, 2018 at 11:56 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Wed, May 02, 2018 at 11:20:05PM +0300, Ran Shalit wrote: >> Hello, >> >> Is it possible to use switch just like external real switch, >> connecting all ports to the same subnet ? > >

Re: DSA switch

2018-05-03 Thread Ran Shalit
On Thu, May 3, 2018 at 10:11 AM, Jiri Pirko <j...@resnulli.us> wrote: > Thu, May 03, 2018 at 08:50:52AM CEST, ransha...@gmail.com wrote: >>On Wed, May 2, 2018 at 11:56 PM, Andrew Lunn <and...@lunn.ch> wrote: >>> On Wed, May 02, 2018 at 11:20:05PM +0300

Re: DSA switch

2018-05-03 Thread Ran Shalit
On Thu, May 3, 2018 at 10:11 AM, Jiri Pirko <j...@resnulli.us> wrote: > Thu, May 03, 2018 at 08:50:52AM CEST, ransha...@gmail.com wrote: >>On Wed, May 2, 2018 at 11:56 PM, Andrew Lunn <and...@lunn.ch> wrote: >>> On Wed, May 02, 2018 at 11:20:05PM +0300

Re: DSA switch

2018-05-03 Thread Ran Shalit
On Wed, May 2, 2018 at 11:56 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Wed, May 02, 2018 at 11:20:05PM +0300, Ran Shalit wrote: >> Hello, >> >> Is it possible to use switch just like external real switch, >> connecting all ports to the same subnet ? > >

DSA switch

2018-05-02 Thread Ran Shalit
Hello, Is it possible to use switch just like external real switch, connecting all ports to the same subnet ? In our architecture, we prefer that all IPs connected to board shall be in the same subnet. Yet, I am not sure if it is possible with dsa switch, because in dsa the ports are seen in

Re: Q: force netif ON even when there is no real link ?

2018-04-20 Thread Ran Shalit
On Fri, Apr 20, 2018 at 3:14 PM, Ran Shalit <ransha...@gmail.com> wrote: > On Fri, Apr 20, 2018 at 3:05 PM, Andrew Lunn <and...@lunn.ch> wrote: >> On Fri, Apr 20, 2018 at 03:01:09PM +0300, Ran Shalit wrote: >>> On Fri, Apr 20, 2018 at 2:55 PM, Andrew Lunn <and...@

Re: Q: force netif ON even when there is no real link ?

2018-04-20 Thread Ran Shalit
On Fri, Apr 20, 2018 at 3:05 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Fri, Apr 20, 2018 at 03:01:09PM +0300, Ran Shalit wrote: >> On Fri, Apr 20, 2018 at 2:55 PM, Andrew Lunn <and...@lunn.ch> wrote: >> > On Fri, Apr 20, 2018 at 11:44:14AM +0300, Ran Shalit wrot

Re: Q: force netif ON even when there is no real link ?

2018-04-20 Thread Ran Shalit
On Fri, Apr 20, 2018 at 2:55 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Fri, Apr 20, 2018 at 11:44:14AM +0300, Ran Shalit wrote: >> Hello, >> >> We configure external switch in u-boot. >> The configuration is through mdio (cpu is mac and switch is phy). >>

Q: force netif ON even when there is no real link ?

2018-04-20 Thread Ran Shalit
Hello, We configure external switch in u-boot. The configuration is through mdio (cpu is mac and switch is phy). But in Linux we rather not implement any communication in mdio to switch, but it means that we then don't have the information of link state. Is it possible to force in Linux (by

Re: marvell switch

2018-04-10 Thread Ran Shalit
On Thu, Apr 5, 2018 at 11:46 PM, Andrew Lunn wrote: >> > Hi Ran >> > >> > The Marvell driver makes each port act like a normal Linux network >> > interface. So if you want to enable a port, do >> > >> > ip link set lan0 up >> > >> > Want to add an ip address to a port >> > >> > ip

Re: marvell switch

2018-04-06 Thread Ran Shalit
On Thu, Apr 5, 2018 at 11:46 PM, Andrew Lunn wrote: >> > Hi Ran >> > >> > The Marvell driver makes each port act like a normal Linux network >> > interface. So if you want to enable a port, do >> > >> > ip link set lan0 up >> > >> > Want to add an ip address to a port >> > >> > ip

Re: marvell switch

2018-04-05 Thread Ran Shalit
On Thu, Apr 5, 2018 at 3:22 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Thu, Apr 05, 2018 at 05:47:24AM +0300, Ran Shalit wrote: >> Hello, >> >> I am trying to use marvell switch in linux, >> Is it that the kernel drivers from marvell switch are used just to >

marvell switch

2018-04-04 Thread Ran Shalit
Hello, I am trying to use marvell switch in linux, Is it that the kernel drivers from marvell switch are used just to enable all ports, or do they also provide APIs to userspace to enable specific ports only. I have not find examples or wiki for marvell switch, so I am not too sure as what are

Reduce boot time till ping

2018-03-29 Thread Ran Shalit
Hello, I'm struggling to understand why it takes a lot of time to boot till we get ping success. We use system with i210 , and igb driver. I use dmesg for time measurement( and gpios to sync dmesg timing with board power time) This is dmesg with added prints for each IGB function enter and exit

Re: switchdev and dsa

2018-03-24 Thread Ran Shalit
On Sat, Mar 24, 2018 at 11:51 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Sat, Mar 24, 2018 at 11:35:38PM +0300, Ran Shalit wrote: >> On Sat, Mar 24, 2018 at 10:02 PM, Andrew Lunn <and...@lunn.ch> wrote: >> > On Sat, Mar 24, 2018 at 07:12:15PM +0300, Ran Shalit wro

Re: switchdev and dsa

2018-03-24 Thread Ran Shalit
On Sat, Mar 24, 2018 at 10:02 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Sat, Mar 24, 2018 at 07:12:15PM +0300, Ran Shalit wrote: >> Hello, >> >> I am new with switchdev and dsa. >> I would please like to ask if configuring a device tree/board file >> wi

switchdev and dsa

2018-03-24 Thread Ran Shalit
Hello, I am new with switchdev and dsa. I would please like to ask if configuring a device tree/board file with a switch (for example marvell switch) will provide all ports behins the switch as valid interface (ethX) ports in userspace ifconfig command ? Thank you, ranran

Re: Q: How to disable vlan strip in Intel igb driver ?

2016-05-01 Thread Ran Shalit
On Sun, May 1, 2016 at 11:51 PM, Peter PalĂșch wrote: > Hi Ran, > > >> Alex, >> I don't see rx-vlan-offload option in my ethtool. strange, maybe it is >> not available in all ethtool versions ? > > > According to my manpage for ethtool v4.5, the relevant -K option is >

Re: Q: How to disable vlan strip in Intel igb driver ?

2016-05-01 Thread Ran Shalit
ut this is not exactly what I need, I need the header AS-IS with the original (extended) ethernet header. Thanks. Ran > > On 01.05.2016 15:13, Ran Shalit wrote: >> >> Hello, >> >> >> I am using intel igb driver in Linux. >> >> The driver strip the packet f

Q: How to disable vlan strip in Intel igb driver ?

2016-05-01 Thread Ran Shalit
Hello, I am using intel igb driver in Linux. The driver strip the packet from vlan inofmation. But we need this information in the packet. We tried to change build flag, or see if there is any feature with ethtool that can disable this feature, but nothing helps. Is there any way to achive

smc911 vs smsc911

2016-04-23 Thread Ran Shalit
Hello, Does anyone can say what's the difference between smc911 and smsc911 ? On reading the first comments in each file it seems that there is overlapping between them: smc911x.c * This is a driver for SMSC's LAN911{5,6,7,8} single-chip Ethernet devices. smsc911x.c === *