Browse Source

qeth: remove header_ops bug

Remove qeth bug caused by commit:
[NET]: Move hardware header operations out of netdevice.

Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Ursula Braun 56 years ago
parent
commit
224426f168
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/s390/net/qeth_main.c

+ 2 - 1
drivers/s390/net/qeth_main.c

@@ -6643,7 +6643,8 @@ qeth_netdev_init(struct net_device *dev)
 	dev->vlan_rx_kill_vid = qeth_vlan_rx_kill_vid;
 	dev->vlan_rx_kill_vid = qeth_vlan_rx_kill_vid;
 	dev->vlan_rx_add_vid = qeth_vlan_rx_add_vid;
 	dev->vlan_rx_add_vid = qeth_vlan_rx_add_vid;
 #endif
 #endif
-	dev->header_ops = &qeth_null_ops;
+	if (qeth_get_netdev_flags(card) & IFF_NOARP)
+		dev->header_ops = &qeth_null_ops;
 
 
 #ifdef CONFIG_QETH_IPV6
 #ifdef CONFIG_QETH_IPV6
 	/*IPv6 address autoconfiguration stuff*/
 	/*IPv6 address autoconfiguration stuff*/