Included change:
- fix the Bridge Loop Avoidance component by marking the variables containing the VLAN ID with the HAS_TAG flag when needed. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAABCAAGBQJSOKw8AAoJEADl0hg6qKeOVkQP/2kTHSfxe/jUBD5Jzk1wtxhi 1aJ2ihqPErYrjE6biY36e0S+ioIzWd44t/nwn1N8LCaxnHi+dhMwyKkqGCTXXmgT NPgdgYfE1zqvsNN8CoETpbxpic21lpXI8HBJ1jMu6yF8vWFRO2ZEXC/h72/bxUM4 sV07n5irn9ssbNhthQbIvoPagHm+Kpr4BRTpqZ0pPyA93GfpKLHTZX67Wi/pftC4 HVapzduObkliqxGJ/Xk8Ng6wNe4XnMuCWotdjaq0Bnff4AvVNoxYwZfpvfgJA8TT /Lttx0bgjLwGLpm3sjfD9b7IcshOFmhiGWuVUUFmlUFBU0gFtlevOEkjAh4bZeHS F8pVXJFBFec7GVBSYnWWRzGte1rYSAMD4kCgOyLjruRf2PhmenqRIQGiIbsjKk2a CU/hfJP4DpM5yDQ+typOrq3j2I4gb9JF7dTv1J7RSXjpxwFwlQeUfttiuLQGltkP WFREgKoikF/MFr2NwoVsckWLDx7+77hFBtdTnnlybtiviO87sEXSfFSS35M8PBnU tbAW5Sj3mD5r6GwQDtwEOhhETWdNtgJNFl4wLmOXl01KFgM9G2FzxUpsHULI2u5H vGdTTer4a482n1y1m8NEJPeo27SMgX2bW7IooTy4qjtSFD/+Bo7ThlVexQmzaYK6 OwqW2nRa4S13MQCPbmAQ =ipxk -----END PGP SIGNATURE----- Merge tag 'batman-adv-fix-for-davem' of git://git.open-mesh.org/linux-merge Included change: - fix the Bridge Loop Avoidance component by marking the variables containing the VLAN ID with the HAS_TAG flag when needed.
This commit is contained in:
Коммит
4bdc944729
|
@ -168,6 +168,7 @@ static int batadv_interface_tx(struct sk_buff *skb,
|
||||||
case ETH_P_8021Q:
|
case ETH_P_8021Q:
|
||||||
vhdr = (struct vlan_ethhdr *)skb->data;
|
vhdr = (struct vlan_ethhdr *)skb->data;
|
||||||
vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK;
|
vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK;
|
||||||
|
vid |= BATADV_VLAN_HAS_TAG;
|
||||||
|
|
||||||
if (vhdr->h_vlan_encapsulated_proto != ethertype)
|
if (vhdr->h_vlan_encapsulated_proto != ethertype)
|
||||||
break;
|
break;
|
||||||
|
@ -331,6 +332,7 @@ void batadv_interface_rx(struct net_device *soft_iface,
|
||||||
case ETH_P_8021Q:
|
case ETH_P_8021Q:
|
||||||
vhdr = (struct vlan_ethhdr *)skb->data;
|
vhdr = (struct vlan_ethhdr *)skb->data;
|
||||||
vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK;
|
vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK;
|
||||||
|
vid |= BATADV_VLAN_HAS_TAG;
|
||||||
|
|
||||||
if (vhdr->h_vlan_encapsulated_proto != ethertype)
|
if (vhdr->h_vlan_encapsulated_proto != ethertype)
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче