• Chad Dupuis's avatar
    scsi: qedf: Honor priority from DCBX FCoE App tag · 84b2ba6e
    Chad Dupuis authored
    We currently hard code the priority in the 8021q tag to 3 for FCoE
    traffic.  The vast majority of the time this is fine but if the priority
    is something else besides 3, any VLAN ID comparison either in the
    non-offload path or offload path will fail and cause dropped frames
    where none are expected.
    
    Change the behavior so that the driver default is 3 if we do not get any
    DCBX convergence.
    
    If DCBX does converge, then set the FIP/FCoE priority in the following
    manner:
    
     1. If the qedf_default_prio modparam is set use that
     2. If the DCBX FCoE priority is not in range (0..7) use 3
     3. Use the DCBX FCoE priority we get in the driver's DCBX handler
    Signed-off-by: default avatarChad Dupuis <chad.dupuis@cavium.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    84b2ba6e
qedf.h 15.5 KB