mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 10:02:42 +03:00
[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>
This commit is contained in:
@@ -36,6 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
*
|
||||
* @v iobuf I/O buffer
|
||||
* @v netdev Network device
|
||||
* @v ll_dest Link-layer destination address
|
||||
* @v ll_source Link-layer source address
|
||||
* @ret rc Return status code
|
||||
*
|
||||
@@ -43,6 +44,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
*/
|
||||
static int rarp_rx ( struct io_buffer *iobuf,
|
||||
struct net_device *netdev __unused,
|
||||
const void *ll_dest __unused,
|
||||
const void *ll_source __unused ) {
|
||||
free_iob ( iobuf );
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user