Skip to contentSkip to conversation

Don't use netdev for FCoE if pause is not correctly set, even for VLANs.

PATCH New Joe Eykholt 1 participant 1 message Dec 5, 2007 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Don't use netdev for FCoE if pause is not correctly set, even for VLANs.

Don't use netdev for FCoE if pause is not correctly set, even for VLANs.

This modifies the previous tests to require that the underlying net-dev supports the ethtool get_pauseparam operation.

NICs that are 10/100/1000 must have pause autonegotiation turned on. All NICs must have RX and TX pause on. If not, they are treated as if there is no link.

---
 drivers/scsi/ofc/fcoe/fcoe_def.h |    1 
 drivers/scsi/ofc/fcoe/fcoe_if.c  |   90 ++++++++++++++++++++++----------------
 drivers/scsi/ofc/fcoe/fcoeinit.c |   66 ++++++++--------------------
 3 files changed, 71 insertions(+), 86 deletions(-)
drivers/scsi/ofc/fcoe/fcoe_def.h +1 -0
index 0c71dc7..6550c73 100644
@@ -109,6 +109,7 @@ int		fcoe_create_interface(struct fcoe_info *, void *);
 int		fcoe_xmit(struct fcdev *, struct fc_frame *);
 int		fcoe_rcv(struct sk_buff *, struct net_device *,
 			 struct packet_type *, struct net_device *);
+int		fcoe_link_ok(struct fcdev *);
 struct fc_frame *fcoe_frame_alloc(size_t);
 void fcoe_put_dev(struct fcdev *dev);
 struct fcoe_softc *fcoe_find_fcdev(char *);
drivers/scsi/ofc/fcoe/fcoe_if.c +51 -39

115 lines not on this page · raw message

drivers/scsi/ofc/fcoe/fcoeinit.c +19 -47

100 lines not on this page · raw message