[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20140828103940.Horde.jf6ns7nEwCixTQixlWnCYA6@webmail.df.eu>
Date: Thu, 28 Aug 2014 10:39:40 +0200
From: Sven Bachmann <dev@...achmann.de>
To: netdev@...r.kernel.org
Subject: enhance sendto/recvfrom with Ethernet switch port
Hello,
I tried to ask this question at Stackoverflow but they marked it as question
for Administrators and not for Programmers [1].
So maybe you could enlighten me. I have an AM335x board which uses the
integrated CPSW switch. This switch is supported by the current Linux
tree [2].
Currently, the driver only uses the switch port where the frames are came in
and go out only internally.
My question is: is there already a common way to exchange the information
on which port a frame came in (recvfrom) and should go out (sendto) with a
userspace application which I could adapt for the CPSW driver?
For outgoing frames I'm using raw sockets, but for incoming frames UDP is
needed, so it should be possible to keep the information through the TCP/IP
stack.
Thanks for your hints and help!
[1]
http://stackoverflow.com/questions/25528334/standard-way-under-linux-to-get-set-the-incoming-outgoing-ethernet-port-for-an-i
[2]
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/net/ethernet/ti
Bye
Sven
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists