mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-29 21:00:24 +00:00
[fcoe] Use only the first instance of a FIP descriptor
Almost all FIP packets contain at most one instance of each descriptor. A VLAN notification may contain multiple VLAN descriptors. The FCoE specification does not provide any guidance regarding prioritisation of VLANs, so we may choose to arbitrarily choose the first listed VLAN. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
c5c0a27b68
commit
54ec712ebe
@ -533,7 +533,9 @@ static int fcoe_fip_parse ( struct fcoe_port *fcoe, struct fip_header *fiphdr,
|
||||
/* Handle descriptors that we understand */
|
||||
if ( ( desc_type > FIP_RESERVED ) &&
|
||||
( desc_type < FIP_NUM_DESCRIPTOR_TYPES ) ) {
|
||||
descs->desc[desc_type] = desc;
|
||||
/* Use only the first instance of a descriptor */
|
||||
if ( descs->desc[desc_type] == NULL )
|
||||
descs->desc[desc_type] = desc;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user