2003-11-19 13:45:28

by Madhavi

[permalink] [raw]
Subject: Switching packets from netif_rx()

************************************************************************

SASKEN BUSINESS DISCLAIMER



This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.

***********************************************************************


Attachments:
(No filename) (982.00 B)

2003-11-19 14:10:43

by Jeff Garzik

[permalink] [raw]
Subject: Re: Switching packets from netif_rx()

Madhavi wrote:
> The setup is -
>
> +-----------+ +------------+ +------+
> | Streamer |-----------| Switch |----------| Host |
> +-----------+ +------------+ +------+
>
> The switching functionality is implemented in function netif_rx(). Based
> on the list of outgoing interfaces, I am doing the following things.
>
> * Cloning the packets.
> * Obtaining outgoing device from outgoing interface index.
> * Calling dev_queue_xmit() to send the packet on outgoing device.


As a tangent, this is pretty much what CONFIG_NET_FASTROUTE does...

Jeff