From: David L Stevens Date: Fri, 25 Jul 2014 14:30:11 +0000 (-0400) Subject: sunvnet: only use connected ports when sending X-Git-Tag: cleanup-for-v3.18~174^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8266f5fcf015101fbeb73cbc152c9d208c2baec0;p=pandora-kernel.git sunvnet: only use connected ports when sending The sunvnet driver doesn't check whether or not a port is connected when transmitting packets, which results in failures if a port fails to connect (e.g., due to a version mismatch). The original code also assumes unnecessarily that the first port is up and a switch, even though there is a flag for switch ports. This patch only matches a port if it is connected, and otherwise uses the switch_port flag to send the packet to a switch port that is up. Signed-off-by: David L Stevens Signed-off-by: David S. Miller --- Reading git-diff-tree failed