Re: Switching packets from netif_rx()

From: Jeff Garzik
Date: Wed Nov 19 2003 - 09:11:46 EST


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



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/