mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 20:10:18 +03:00
[netdevice] Allow link layer to report broadcast/multicast packets via pull()
Allow the link layer to directly report whether or not a packet is multicast or broadcast at the time of calling pull(), rather than relying on heuristics to determine this at a later stage. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -906,13 +906,14 @@ static int aoedev_open ( struct interface *parent, struct net_device *netdev,
|
||||
* @v netdev Network device
|
||||
* @v ll_dest Link-layer destination address
|
||||
* @v ll_source Link-layer source address
|
||||
* @v flags Packet flags
|
||||
* @ret rc Return status code
|
||||
*
|
||||
*/
|
||||
static int aoe_rx ( struct io_buffer *iobuf,
|
||||
struct net_device *netdev __unused,
|
||||
const void *ll_dest __unused,
|
||||
const void *ll_source ) {
|
||||
const void *ll_source,
|
||||
unsigned int flags __unused ) {
|
||||
struct aoehdr *aoehdr = iobuf->data;
|
||||
struct aoe_command *aoecmd;
|
||||
int rc;
|
||||
|
||||
Reference in New Issue
Block a user