logo       

pci-skeleton duplex check: msg#00074

Subject: pci-skeleton duplex check
pci-skeleton (and some other net drivers) figure out the duplex setting
like this (leaving duplex locks out here):

int duplex = (lpar & 0x0100) || (lpar & 0x01C0) == 0x0040;

If we get past the first condition, we already know bit 8 must be 0. Why do
we check again in the second condition?

Roger





<Prev in Thread] Current Thread [Next in Thread>