mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[SK_BUFF]: Introduce ipip_hdr(), remove skb->h.ipiph
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
aa8223c7bb
commit
b0061ce49c
7 changed files with 15 additions and 11 deletions
|
|
@ -1565,7 +1565,7 @@ struct sk_buff *pMessage) /* pointer to send-message */
|
|||
u16 hdrlen = skb_transport_offset(pMessage);
|
||||
u16 offset = hdrlen + pMessage->csum_offset;
|
||||
|
||||
if ((pMessage->h.ipiph->protocol == IPPROTO_UDP ) &&
|
||||
if ((ipip_hdr(pMessage)->protocol == IPPROTO_UDP) &&
|
||||
(pAC->GIni.GIChipRev == 0) &&
|
||||
(pAC->GIni.GIChipId == CHIP_ID_YUKON)) {
|
||||
pTxd->TBControl = BMU_TCP_CHECK;
|
||||
|
|
@ -1691,7 +1691,7 @@ struct sk_buff *pMessage) /* pointer to send-message */
|
|||
** opcode for udp is not working in the hardware yet
|
||||
** (Revision 2.0)
|
||||
*/
|
||||
if ((pMessage->h.ipiph->protocol == IPPROTO_UDP ) &&
|
||||
if ((ipip_hdr(pMessage)->protocol == IPPROTO_UDP) &&
|
||||
(pAC->GIni.GIChipRev == 0) &&
|
||||
(pAC->GIni.GIChipId == CHIP_ID_YUKON)) {
|
||||
Control |= BMU_TCP_CHECK;
|
||||
|
|
|
|||
|
|
@ -2659,7 +2659,7 @@ static int skge_xmit_frame(struct sk_buff *skb, struct net_device *dev)
|
|||
/* This seems backwards, but it is what the sk98lin
|
||||
* does. Looks like hardware is wrong?
|
||||
*/
|
||||
if (skb->h.ipiph->protocol == IPPROTO_UDP
|
||||
if (ipip_hdr(skb)->protocol == IPPROTO_UDP
|
||||
&& hw->chip_rev == 0 && hw->chip_id == CHIP_ID_YUKON)
|
||||
control = BMU_TCP_CHECK;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue