Skip to contentSkip to conversation

s390: qeth build fix for 2.6.27

PATCH Superseded [email protected] 2 participants 3 messages Jul 21, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover s390: qeth build fix for 2.6.27

Hi Jeff,

here is a patch to fix the broken s390 qeth build

shortlog:
Frank Blaschka (1)
qeth: fix 2.6.27 build

Thanks,
Frank

#1 lore raw

PATCH 1/1 qeth: fix 2.6.27 build

From: Frank Blaschka <[email protected]>

Remove obsolete setting of the VLAN magic. This will fix the build error introduced by Commit 6aa895b047720f71ec4eb11452f7c3ce8426941f (vlan: Don't store VLAN tag in cb)

---
 drivers/s390/net/qeth_l3_main.c |    1 -
 1 file changed, 1 deletion(-)
drivers/s390/net/qeth_l3_main.c +0 -1
Index: git_linus/drivers/s390/net/qeth_l3_main.c
===================================================================
@@ -2651,7 +2651,6 @@
 			tag = (u16 *)(new_skb->data + 12);
 			*tag = __constant_htons(ETH_P_8021Q);
 			*(tag + 1) = htons(vlan_tx_tag_get(new_skb));
-			VLAN_TX_SKB_CB(new_skb)->magic = 0;
 		}
 	}
 
#2 lore raw

Re: [patch 1/1] qeth: fix 2.6.27 build

Quoted 4 lines · [email protected] wrote:
                       tag = (u16 *)(new_skb->data + 12);
                       *tag = __constant_htons(ETH_P_8021Q);
                       *(tag + 1) = htons(vlan_tx_tag_get(new_skb));

- VLAN_TX_SKB_CB(new_skb)->magic = 0;

The intention appears to be to invalidate the tag (its used later on again if present), so that doesn't look correct.

qeth: fix build error caused by VLAN changes

Adrian Bunk reports this build error:

CC drivers/s390/net/qeth_l3_main.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/s390/net/qeth_l3_main.c: In function 'qeth_l3_hard_start_xmit':
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/s390/net/qeth_l3_main.c:2654: error: implicit declaration of function 'VLAN_TX_SKB_CB' /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/s390/net/qeth_l3_main.c:2654: error: invalid type argument of '->' (have 'int') make[3]: *** [drivers/s390/net/qeth_l3_main.o] Error 1

The intention of the driver appears to be to invalidate the VLAN tag. Change it to set skb->vlan_tci to zero, which has the same effect.

drivers/s390/net/qeth_l3_main.c +1 -1
index b29afef..38de31b 100644
@@ -2651,7 +2651,7 @@ static int qeth_l3_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
 			tag = (u16 *)(new_skb->data + 12);
 			*tag = __constant_htons(ETH_P_8021Q);
 			*(tag + 1) = htons(vlan_tx_tag_get(new_skb));
-			VLAN_TX_SKB_CB(new_skb)->magic = 0;
+			new_skb->vlan_tci = 0;
 		}
 	}