diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-10-07 16:03:16 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-10-07 19:15:04 +0100 |
commit | 88dd921e24af0893734d4e197d646cfc7732ed54 (patch) | |
tree | 8ecbe7ef1e5d84b2243894769a9ab1251d5c56de /src/include/ipxe/netdevice.h | |
parent | d57d49942a9482880bc619c2e7607b2c2f3d36a4 (diff) | |
download | ipxe-88dd921e24af0893734d4e197d646cfc7732ed54.tar.gz |
[netdevice] Pass both link-layer addresses in net_tx() and net_rx()
FCoE requires the use of fabric-provided MAC addresses, which breaks
the assumption that the net device's MAC address is implicitly the
source address for net_tx() and the (unicast) destination address for
net_rx().
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/netdevice.h')
-rw-r--r-- | src/include/ipxe/netdevice.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/ipxe/netdevice.h b/src/include/ipxe/netdevice.h index 80bc1c6e2..8cec33eee 100644 --- a/src/include/ipxe/netdevice.h +++ b/src/include/ipxe/netdevice.h @@ -57,12 +57,13 @@ struct net_protocol { * * @v iobuf I/O buffer * @v netdev Network device + * @v ll_dest Link-layer destination address * @v ll_source Link-layer source address * * This method takes ownership of the I/O buffer. */ int ( * rx ) ( struct io_buffer *iobuf, struct net_device *netdev, - const void *ll_source ); + const void *ll_dest, const void *ll_source ); /** * Transcribe network-layer address * @@ -534,9 +535,11 @@ extern struct net_device * find_netdev_by_location ( unsigned int bus_type, unsigned int location ); extern struct net_device * last_opened_netdev ( void ); extern int net_tx ( struct io_buffer *iobuf, struct net_device *netdev, - struct net_protocol *net_protocol, const void *ll_dest ); + struct net_protocol *net_protocol, const void *ll_dest, + const void *ll_source ); extern int net_rx ( struct io_buffer *iobuf, struct net_device *netdev, - uint16_t net_proto, const void *ll_source ); + uint16_t net_proto, const void *ll_dest, + const void *ll_source ); /** * Complete network transmission |