mirror of
https://github.com/ipxe/ipxe
synced 2026-01-03 10:23:00 +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:
@@ -331,10 +331,12 @@ static struct io_buffer * fcoe_alloc_iob ( struct fcoe_port *fcoe __unused,
|
||||
* @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 fcoe_rx ( struct io_buffer *iobuf, struct net_device *netdev,
|
||||
const void *ll_dest, const void *ll_source ) {
|
||||
const void *ll_dest, const void *ll_source,
|
||||
unsigned int flags __unused ) {
|
||||
struct fcoe_header *fcoehdr;
|
||||
struct fcoe_footer *fcoeftr;
|
||||
struct fcoe_port *fcoe;
|
||||
@@ -924,12 +926,14 @@ static struct fip_handler fip_handlers[] = {
|
||||
* @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 fcoe_fip_rx ( struct io_buffer *iobuf,
|
||||
struct net_device *netdev,
|
||||
const void *ll_dest,
|
||||
const void *ll_source __unused ) {
|
||||
const void *ll_source __unused,
|
||||
unsigned int flags __unused ) {
|
||||
struct fip_header *fiphdr = iobuf->data;
|
||||
struct fip_descriptors descs;
|
||||
struct fip_handler *handler;
|
||||
|
||||
Reference in New Issue
Block a user