Re: Autoneg off in TI cpsw driver

2017-02-17 Thread Sriram V
/ether c4:be:84:34:af:0b brd ff:ff:ff:ff:ff:ff root@am437xevm:/ # On Fri, Feb 17, 2017 at 12:31 AM, Sriram V wrote: > Hi Andrew, > > 1. run ethtool -s eth1 speed 10 duplex full autoneg off > 2. ethtool eth1 <-- shows link up > > 3. remove cable<--- eth

Re: Autoneg off in TI cpsw driver

2017-02-16 Thread Sriram V
nd get back to you. Thanks, Sriram On Fri, Feb 17, 2017 at 12:27 AM, Andrew Lunn wrote: > On Fri, Feb 17, 2017 at 12:01:32AM +0530, Sriram V wrote: >> Hi, >> >> I am using a Linux Kernel 4.1 Kernel. on AM437X with dual emac configuration. >> >> What i find is

Autoneg off in TI cpsw driver

2017-02-16 Thread Sriram V
Hi, I am using a Linux Kernel 4.1 Kernel. on AM437X with dual emac configuration. What i find is if i do the following the Link does not come up. 1. run ethtool -s eth1 speed 10 duplex full autoneg off 2. remove cable 3. plug it in. With the above sequence. The link does not come up. the plug i

Linux raw socket issue

2017-02-14 Thread Sriram V
Hi, Apologies if this is not the right mailing list. I have 2 network interfaces eth0 and eth1. eth0 is the lan and eth1 is the wlan. I have created a raw socket and bound to eth0 using the below call. setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE, ifName, strlen(ifName) + 1 I am listening for

network status

2017-01-24 Thread Sriram V
Hello, Apologies in case, this is not the right list of this question. I wanted to check, How can i find out if a network status has changed 1. How can the user application find out if the link status has changed? 2. what changes do i need to add in the driver to indicate to the user application