File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
drivers/infiniband/sw/siw Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ static int siw_dev_qualified(struct net_device *netdev)
119
119
* <linux/if_arp.h> for type identifiers.
120
120
*/
121
121
if (netdev -> type == ARPHRD_ETHER || netdev -> type == ARPHRD_IEEE802 ||
122
+ netdev -> type == ARPHRD_NONE ||
122
123
(netdev -> type == ARPHRD_LOOPBACK && loopback_enabled ))
123
124
return 1 ;
124
125
@@ -315,12 +316,12 @@ static struct siw_device *siw_device_create(struct net_device *netdev)
315
316
316
317
sdev -> netdev = netdev ;
317
318
318
- if (netdev -> type != ARPHRD_LOOPBACK ) {
319
+ if (netdev -> type != ARPHRD_LOOPBACK && netdev -> type != ARPHRD_NONE ) {
319
320
addrconf_addr_eui48 ((unsigned char * )& base_dev -> node_guid ,
320
321
netdev -> dev_addr );
321
322
} else {
322
323
/*
323
- * The loopback device does not have a HW address,
324
+ * This device does not have a HW address,
324
325
* but connection mangagement lib expects gid != 0
325
326
*/
326
327
size_t len = min_t (size_t , strlen (base_dev -> name ), 6 );
You can’t perform that action at this time.
0 commit comments